A template for complex data types. More...
#include <ComplexData.h>
Public Member Functions | |
ComplexData * | clone () const |
It returns a clone of this object. More... | |
ComplexData (const ComplexData &rhs) | |
Copy constructor. More... | |
ComplexData (T value) | |
Constructor. More... | |
virtual int | getTypeCode () const |
It returns the data type code associated to the data value. More... | |
T | getValue () const |
It returns the associated value. More... | |
ComplexData & | operator= (const ComplexData &rhs) |
Copy constructor. More... | |
virtual std::string | toString () const |
It returns the data value in a string representation. More... | |
virtual | ~ComplexData () |
Virtual destructor. More... | |
Private Attributes | |
T | m_val |
The data value. More... | |
A template for complex data types.
Requirements on type T:
Definition at line 52 of file ComplexData.h.
|
inline |
|
inline |
Copy constructor.
rhs | The right-hand-side data. |
Definition at line 71 of file ComplexData.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 77 of file ComplexData.h.
|
inlinevirtual |
It returns a clone of this object.
Implements te::dt::AbstractData.
Definition at line 99 of file ComplexData.h.
|
inlinevirtual |
It returns the data type code associated to the data value.
Implements te::dt::AbstractData.
Definition at line 109 of file ComplexData.h.
References te::dt::UNKNOWN_TYPE.
|
inline |
It returns the associated value.
Definition at line 129 of file ComplexData.h.
References te::vp::ComplexData< T >::m_val.
|
inline |
Copy constructor.
rhs | The right-hand-side data. |
Definition at line 84 of file ComplexData.h.
References te::vp::ComplexData< T >::m_val.
|
inlinevirtual |
It returns the data value in a string representation.
Implements te::dt::AbstractData.
Definition at line 119 of file ComplexData.h.
|
private |
The data value.
Definition at line 136 of file ComplexData.h.
Referenced by te::vp::ComplexData< T >::getValue(), and te::vp::ComplexData< T >::operator=().