#include <data.h>
Inherited by Array< D, T >, Array< 1, Data >, Array< SM, T >, FloatClass< T, C >, IntegerClass< T, S, C >, Null, String, Symbol, and Token.
Public Member Functions | |
DataClass () | |
DataClass (const DataClass &) | |
DataClass & | operator= (const DataClass &) |
DataClass (const Data &d) | |
virtual | ~DataClass () |
Protected Member Functions | |
virtual DataClass * | shallow_copy () const =0 |
virtual QString | type_name () const =0 |
virtual Data | getField (QString ref) |
virtual void | setField (QString, Data v) |
virtual void | visit (DataVisitor &v)=0 |
Friends | |
class | Data |
class | DataVisitor |
Definition at line 112 of file data.h.
DataClass::DataClass | ( | ) | [inline] |
DataClass::DataClass | ( | const Data & | d | ) |
Data DataClass::getField | ( | QString | ref | ) | [protected, virtual] |
setting and getting of subtrees and values
Reimplemented in Array< D, T >, Token, Array< 1, Data >, and Array< SM, T >.
Definition at line 65 of file data.cpp.
void DataClass::setField | ( | QString | , | |
Data | v | |||
) | [protected, virtual] |
virtual DataClass* DataClass::shallow_copy | ( | ) | const [protected, pure virtual] |
The shallow_copy function should be overridden to return a shallow copy of the own object, but allocated with new.
Implemented in Array< D, T >, String, Token, Null, IntegerClass< T, S, C >, FloatClass< T, C >, Symbol, Array< 1, Data >, and Array< SM, T >.
virtual QString DataClass::type_name | ( | ) | const [protected, pure virtual] |
Implemented in Array< D, T >, String, Token, Null, IntegerClass< T, S, C >, FloatClass< T, C >, Symbol, Array< 1, Data >, and Array< SM, T >.
virtual void DataClass::visit | ( | DataVisitor & | v | ) | [protected, pure virtual] |
Implemented in Array< D, T >, String, Token, Null, IntegerClass< T, S, C >, FloatClass< T, C >, Symbol, Array< 1, Data >, and Array< SM, T >.
friend class DataVisitor [friend] |