rasdaman complete source
Public Member Functions | Protected Attributes | List of all members
QtScalarData Class Reference

#include <qtscalardata.hh>

Inheritance diagram for QtScalarData:
QtData QtAtomicData QtComplexData

Public Member Functions

 QtScalarData ()
 default constructor More...
 
 QtScalarData (const QtScalarData &obj)
 copy constructor More...
 
virtual ~QtScalarData ()
 virtual destructor More...
 
virtual bool equal (const QtData *obj) const
 compares data content More...
 
virtual std::string getSpelling () const
 returns content dependent string representation More...
 
virtual void printStatus (std::ostream &stream=std::cout) const
 print status of the object to the specified stream More...
 
virtual QtDataType getDataType () const
 returns data type More...
 
virtual bool isScalarData () const
 returns true meaning that the data is of type scalar More...
 
const BaseTypegetValueType () const
 returns a pointer to the value type More...
 
void setValueType (const BaseType *newType)
 sets the value type More...
 
const char * getValueBuffer () const
 returns a pointer to the internal character representation More...
 
void setValueBuffer (char *buffer)
 sets the value buffer More...
 
virtual char * getTypeStructure () const
 returns a null-terminated string describing the type structure More...
 
- Public Member Functions inherited from QtData
 QtData ()
 
 QtData (const std::string name)
 
 QtData (const QtData &obj)
 copy constructor More...
 
virtual ~QtData ()
 destructor More...
 
const QtDataoperator= (const QtData &obj)
 assignement operator More...
 
std::string const getIteratorName () const
 get the iterator name More...
 
void setIteratorName (const std::string &iteratorNameNew)
 
QtLifetime const getLifetime () const
 
void setLifetime (QtLifetime flag)
 
unsigned int getRefNo () const
 return number of references to the self object More...
 
void incRef ()
 increases the reference counter by one More...
 
int deleteRef ()
 deletes one reference and the object if it was the last one More...
 
ParseInfo getParseInfo ()
 
void setParseInfo (const ParseInfo &info)
 

Protected Attributes

const BaseTypevalueType
 pointer to the value type More...
 
char * valueBuffer
 pointer to the value buffer More...
 
- Protected Attributes inherited from QtData
ParseInfoparseInfo
 pointer to an optional parser info More...
 

Additional Inherited Members

- Public Types inherited from QtData
enum  QtLifetime { QT_PERSISTENT, QT_TRANSIENT }
 

Constructor & Destructor Documentation

QtScalarData::QtScalarData ( )

default constructor

QtScalarData::QtScalarData ( const QtScalarData obj)

copy constructor

virtual QtScalarData::~QtScalarData ( )
virtual

virtual destructor

Member Function Documentation

virtual bool QtScalarData::equal ( const QtData obj) const
virtual

compares data content

The string pointer has to be free using free() by the caller.

Implements QtData.

virtual QtDataType QtScalarData::getDataType ( ) const
virtual

returns data type

Implements QtData.

virtual std::string QtScalarData::getSpelling ( ) const
virtual

returns content dependent string representation

Implements QtData.

virtual char* QtScalarData::getTypeStructure ( ) const
virtual

returns a null-terminated string describing the type structure

Implements QtData.

const char* QtScalarData::getValueBuffer ( ) const
inline

returns a pointer to the internal character representation

const BaseType* QtScalarData::getValueType ( ) const
inline

returns a pointer to the value type

virtual bool QtScalarData::isScalarData ( ) const
virtual

returns true meaning that the data is of type scalar

Reimplemented from QtData.

virtual void QtScalarData::printStatus ( std::ostream &  stream = std::cout) const
virtual

print status of the object to the specified stream

Reimplemented from QtData.

Reimplemented in QtAtomicData, and QtComplexData.

void QtScalarData::setValueBuffer ( char *  buffer)
inline

sets the value buffer

void QtScalarData::setValueType ( const BaseType newType)
inline

sets the value type

Member Data Documentation

char* QtScalarData::valueBuffer
protected

pointer to the value buffer

const BaseType* QtScalarData::valueType
protected

pointer to the value type


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