10 #include <ospace/string.h>
90 QtData(
const std::string name );
156 inline unsigned int getRefNo()
const;
174 virtual void printStatus( std::ostream& stream = std::cout )
const;
182 inline unsigned int decRef();
185 std::string iteratorName;
194 unsigned int referenceCounter;
198 #include "qlparser/qtdata.icc"
unsigned int getRefNo() const
return number of references to the self object
Definition: qtdata.hh:104
Definition: qtdata.hh:103
Definition: parseinfo.hh:51
void incRef()
increases the reference counter by one
const QtData & operator=(const QtData &obj)
assignement operator
QtLifetime
Definition: qtdata.hh:101
virtual bool equal(const QtData *obj) const =0
compares data content
virtual bool isScalarData() const
determines, if the data is of type scalar
virtual char * getTypeStructure() const =0
returns a null-terminated string describing the type structure
void setLifetime(QtLifetime flag)
ParseInfo * parseInfo
pointer to an optional parser info
Definition: qtdata.hh:178
virtual QtDataType getDataType() const =0
returns type of data represented by the QtData object
QtLifetime const getLifetime() const
void setIteratorName(const std::string &iteratorNameNew)
virtual ~QtData()
destructor
void setParseInfo(const ParseInfo &info)
virtual void printStatus(std::ostream &stream=std::cout) const
print status of the object to the specified stream
QtDataType
Definition: qtdata.hh:48
std::string const getIteratorName() const
get the iterator name
virtual std::string getSpelling() const =0
returns content dependent string representation
int deleteRef()
deletes one reference and the object if it was the last one