Public Member Functions | |
Constructor / Destructor | |
CP_DataValueHolder () | |
Constructor. | |
CP_DataValueHolder (const CP_DataValueHolder &inDataValueHolder) | |
template<typename T> | |
CP_DataValueHolder (const T &inValue) | |
virtual | ~CP_DataValueHolder () |
Destructor. | |
Getters | |
CP_DataValue * | GetDataValuePtr () const |
template<typename T> | |
bool | Get (T &inDataValue) const |
template<typename T> | |
const T & | Get () const |
const std::type_info & | type () const |
operators | |
CP_DataValueHolder & | operator= (const CP_DataValueHolder &inHolder) |
template<typename T> | |
CP_DataValueHolder & | operator= (const T &inHolder) |
Misc | |
CP_DataValueHolder & | swap (CP_DataValueHolder &inHolder) |
Private Attributes | |
CP_DataValue * | fDataValuePtr |
|
Constructor. |
|
|
|
Constructor from the passed in template value.
|
|
Destructor. |
|
Returns the CP_DataValue pointer to the data value we are holding.
|
|
Returns a bool value if the data value is of type T.
|
|
Returns the data value as a type T. Throws std::bad_cast if the cast was unsuccessful.
|
|
Returns the type of our data value as a std::type_info.
|
|
Assignment operator. Copies the value from the passed in data value holder to this object. Template version.
|
|
Assignment operator. Copies the value from the passed in data value holder to this object. Template version.
|
|
Swaps our data value with that of the passed in data value holder.
|
|
|