obby::serialise::token_list Class Reference

#include <token.hpp>

List of all members.

Public Types

typedef std::list< tokenlist_type
typedef list_type::const_iterator iterator

Public Member Functions

 token_list ()
void serialise (std::string &string) const
void deserialise (const std::string &string)
void add (token::type type, const std::string &text, unsigned int line)
iterator begin () const
iterator end () const
void next_token (iterator &iter) const

Private Attributes

list_type m_list


Detailed Description

Definition at line 60 of file token.hpp.


Member Typedef Documentation

typedef std::list<token> obby::serialise::token_list::list_type

Definition at line 63 of file token.hpp.

typedef list_type::const_iterator obby::serialise::token_list::iterator

Definition at line 64 of file token.hpp.


Constructor & Destructor Documentation

obby::serialise::token_list::token_list (  ) 

Definition at line 352 of file token.cpp.


Member Function Documentation

void obby::serialise::token_list::serialise ( std::string &  string  )  const

Definition at line 356 of file token.cpp.

Referenced by obby::serialise::parser::serialise_memory().

void obby::serialise::token_list::deserialise ( const std::string &  string  ) 

Definition at line 363 of file token.cpp.

Referenced by obby::serialise::parser::deserialise_memory().

void obby::serialise::token_list::add ( token::type  type,
const std::string &  text,
unsigned int  line 
)

Definition at line 370 of file token.cpp.

References m_list.

Referenced by obby::serialise::object::serialise(), obby::serialise::attribute::serialise(), and obby::serialise::parser::serialise_memory().

obby::serialise::token_list::iterator obby::serialise::token_list::begin (  )  const

Definition at line 379 of file token.cpp.

References m_list.

Referenced by obby::serialise::parser::deserialise_memory().

obby::serialise::token_list::iterator obby::serialise::token_list::end (  )  const

Definition at line 384 of file token.cpp.

References m_list.

Referenced by obby::serialise::object::deserialise(), and obby::serialise::parser::deserialise_memory().

void obby::serialise::token_list::next_token ( iterator iter  )  const

Advances to the next token (as with ++ iter) but it throws an error if there is no next token (end of token list). This is used to determinate unexpected end of input while parsing the token list into objects and attributes.

Definition at line 389 of file token.cpp.

References obby::_(), and m_list.

Referenced by obby::serialise::attribute::deserialise(), and obby::serialise::parser::deserialise_memory().


Member Data Documentation

list_type obby::serialise::token_list::m_list [private]

Definition at line 89 of file token.hpp.

Referenced by add(), begin(), end(), and next_token().


The documentation for this class was generated from the following files:
Generated on Fri Jan 11 10:01:33 2008 for obby by  doxygen 1.5.1