#include <data-token.h>
Inherits DataClass.
Classes | |
struct | TokenContent |
Public Member Functions | |
Token () | |
Token (const Token &dc) | |
Token & | operator= (const Token &dc) |
virtual | ~Token () |
int | count () const |
void | define (Symbol key, Data val) |
virtual Data | getField (QString s) |
virtual void | setField (QString s, Data d) |
Data & | operator[] (Symbol s) const |
Data & | operator[] (Symbol *s) const |
vector< Symbol > | keys () const |
Static Public Member Functions | |
static QString | type () |
Protected Member Functions | |
virtual QString | type_name () const |
virtual DataClass * | shallow_copy () const |
virtual void | visit (DataVisitor &v) |
Definition at line 32 of file data-token.h.
Token::Token | ( | ) |
Token::Token | ( | const Token & | dc | ) |
Definition at line 35 of file data-token.cpp.
Token::~Token | ( | ) | [virtual] |
Definition at line 41 of file data-token.cpp.
int Token::count | ( | ) | const [inline] |
Definition at line 63 of file data-token.h.
virtual Data Token::getField | ( | QString | ref | ) | [inline, virtual] |
setting and getting of subtrees and values
Reimplemented from DataClass.
Definition at line 71 of file data-token.h.
vector< Symbol > Token::keys | ( | ) | const |
Definition at line 47 of file data-token.cpp.
Definition at line 83 of file data-token.h.
Definition at line 79 of file data-token.h.
virtual void Token::setField | ( | QString | s, | |
Data | d | |||
) | [inline, virtual] |
virtual DataClass* Token::shallow_copy | ( | ) | const [inline, protected, virtual] |
The shallow_copy function should be overridden to return a shallow copy of the own object, but allocated with new.
Implements DataClass.
Definition at line 48 of file data-token.h.
static QString Token::type | ( | ) | [inline, static] |
virtual QString Token::type_name | ( | ) | const [inline, protected, virtual] |
Implements DataClass.
Definition at line 44 of file data-token.h.
void Token::visit | ( | DataVisitor & | v | ) | [protected, virtual] |
Implements DataClass.
Definition at line 72 of file data-token.cpp.