#include <token.hpp>
Public Types | |
| typedef std::list< token > | list_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 |
Definition at line 60 of file token.hpp.
| typedef std::list<token> obby::serialise::token_list::list_type |
| typedef list_type::const_iterator obby::serialise::token_list::iterator |
| 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().
list_type obby::serialise::token_list::m_list [private] |
1.5.1