Token Class Reference

#include <data-token.h>

Inherits DataClass.

Collaboration diagram for Token:

Collaboration graph
[legend]

List of all members.

Classes

struct  TokenContent

Public Member Functions

 Token ()
 Token (const Token &dc)
Tokenoperator= (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)
Dataoperator[] (Symbol s) const
Dataoperator[] (Symbol *s) const
vector< Symbolkeys () const

Static Public Member Functions

static QString type ()

Protected Member Functions

virtual QString type_name () const
virtual DataClassshallow_copy () const
virtual void visit (DataVisitor &v)


Detailed Description

Definition at line 32 of file data-token.h.


Constructor & Destructor Documentation

Token::Token (  ) 

Definition at line 30 of file data-token.cpp.

Here is the caller graph for this function:

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.


Member Function Documentation

int Token::count (  )  const [inline]

Definition at line 63 of file data-token.h.

void Token::define ( Symbol  key,
Data  val 
) [inline]

Definition at line 67 of file data-token.h.

Here is the caller graph for this function:

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 59 of file data-token.cpp.

Here is the caller graph for this function:

Token & Token::operator= ( const Token dc  ) 

Definition at line 47 of file data-token.cpp.

Data& Token::operator[] ( Symbol s  )  const [inline]

Definition at line 83 of file data-token.h.

Data& Token::operator[] ( Symbol  s  )  const [inline]

Definition at line 79 of file data-token.h.

virtual void Token::setField ( QString  s,
Data  d 
) [inline, virtual]

Reimplemented from DataClass.

Definition at line 75 of file data-token.h.

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.

Here is the call graph for this function:

static QString Token::type (  )  [inline, static]

Definition at line 54 of file data-token.h.

Here is the caller graph for this function:

virtual QString Token::type_name (  )  const [inline, protected, virtual]

Implements DataClass.

Definition at line 44 of file data-token.h.

Here is the call graph for this function:

void Token::visit ( DataVisitor v  )  [protected, virtual]

Implements DataClass.

Definition at line 72 of file data-token.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Sat Feb 20 19:04:27 2010 for Data Objects by  doxygen 1.5.9