OEBaseDataT

template<class T>
class OEBaseDataT : public OEBaseData

This class represents OEBaseDataT.

The following methods are publicly inherited from OEBaseData:

CreateCopy GetSize  
GetDataType GetTag  

The following specializations exist for this template:

  • OESystem::OEBaseDataT< int >
The following classes derive from this class:

Constructors

OEBaseDataT(unsigned int tag, const T &t)

Constructs an OEBaseDataT object that stores data with T type associated with the given tag identifier.

operator=

OEBaseDataT<T> &operator=(const OEBaseDataT<T> &t)

Assignment operator.

CreateCopy

OEBaseData *CreateCopy() const

Deep copy constructor that returns a copy of the object. The memory for the returned OEBaseDataT object is dynamically allocated and owned by the caller.

The returned copy should be deallocated using C++ delete operator in order to prevent a memory leak.

GetData

T &GetData()
const T &GetData() const

Returns the data stored int the OEBaseDataT object.

GetDataType

const void *GetDataType() const

Returns a unique type identifier for the data type being stored. The return value of the method is equivalent to the return value of OEGetDataType for the stored type.

GetSize

unsigned int GetSize() const

Returns the number of elements stored in the an OEBaseDataT object that is always 1.

Note

The value returned is not the number of bytes occupied by the data.

SetData

  bool SetData(const T &t)

Sets the data stored int the :oe:cls:`OESystem::OEBaseDataT` object.