Orxonox
0.0.5 Codename: Arcturus
|
MT_ValueBase is an almost pure virtual baseclass of MT_Value<T>, which holds the value of the MultiType. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/util/MultiType.h>
Public Member Functions | |
MT_ValueBase (void *data, Type type) | |
virtual | ~MT_ValueBase () |
virtual MT_ValueBase * | clone () const =0 |
virtual void | exportData (uint8_t *&mem) const =0 |
template<typename T > | |
T | get () const |
virtual uint8_t | getSize () const =0 |
const Type & | getType () const |
Returns the type of the current value. More... | |
virtual bool | getValue (char *value) const =0 |
virtual bool | getValue (unsigned char *value) const =0 |
virtual bool | getValue (short *value) const =0 |
virtual bool | getValue (unsigned short *value) const =0 |
virtual bool | getValue (int *value) const =0 |
virtual bool | getValue (unsigned int *value) const =0 |
virtual bool | getValue (long *value) const =0 |
virtual bool | getValue (unsigned long *value) const =0 |
virtual bool | getValue (long long *value) const =0 |
virtual bool | getValue (unsigned long long *value) const =0 |
virtual bool | getValue (float *value) const =0 |
virtual bool | getValue (double *value) const =0 |
virtual bool | getValue (long double *value) const =0 |
virtual bool | getValue (bool *value) const =0 |
virtual bool | getValue (void **value) const =0 |
virtual bool | getValue (std::string *value) const =0 |
virtual bool | getValue (orxonox::Vector2 *value) const =0 |
virtual bool | getValue (orxonox::Vector3 *value) const =0 |
virtual bool | getValue (orxonox::Vector4 *value) const =0 |
virtual bool | getValue (orxonox::ColourValue *value) const =0 |
virtual bool | getValue (orxonox::Quaternion *value) const =0 |
virtual bool | getValue (orxonox::Radian *value) const =0 |
virtual bool | getValue (orxonox::Degree *value) const =0 |
template<typename T > | |
std::enable_if<!std::is_enum< T >::value, bool >::type | getValue (T *value) const |
template<typename T > | |
std::enable_if< std::is_enum< T >::value, bool >::type | getValue (T *value) const |
virtual void | importData (uint8_t *&mem)=0 |
template<typename T > | |
std::enable_if<!std::is_enum< T >::value, bool >::type | isType () const |
Returns true if the type of the stored value is T. Note: the actual implementations for all supported types are defined outside of the class. More... | |
template<typename T > | |
std::enable_if< std::is_enum< T >::value, bool >::type | isType () const |
Implementation for enum classes: Returns true if the type of the stored value is the underlying type of T. More... | |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
template<> | |
bool | isType () const |
bool | lastConversionSuccessful () const |
Checks whether the value is a default one. More... | |
virtual void | reset ()=0 |
virtual bool | setValue (const char &value)=0 |
virtual bool | setValue (const unsigned char &value)=0 |
virtual bool | setValue (const short &value)=0 |
virtual bool | setValue (const unsigned short &value)=0 |
virtual bool | setValue (const int &value)=0 |
virtual bool | setValue (const unsigned int &value)=0 |
virtual bool | setValue (const long &value)=0 |
virtual bool | setValue (const unsigned long &value)=0 |
virtual bool | setValue (const long long &value)=0 |
virtual bool | setValue (const unsigned long long &value)=0 |
virtual bool | setValue (const float &value)=0 |
virtual bool | setValue (const double &value)=0 |
virtual bool | setValue (const long double &value)=0 |
virtual bool | setValue (const bool &value)=0 |
virtual bool | setValue (void *const &value)=0 |
virtual bool | setValue (const std::string &value)=0 |
virtual bool | setValue (const orxonox::Vector2 &value)=0 |
virtual bool | setValue (const orxonox::Vector3 &value)=0 |
virtual bool | setValue (const orxonox::Vector4 &value)=0 |
virtual bool | setValue (const orxonox::ColourValue &value)=0 |
virtual bool | setValue (const orxonox::Quaternion &value)=0 |
virtual bool | setValue (const orxonox::Radian &value)=0 |
virtual bool | setValue (const orxonox::Degree &value)=0 |
virtual bool | setValue (const MultiType &other)=0 |
template<typename T > | |
std::enable_if<!std::is_enum< T >::value, bool >::type | setValue (const T &value) |
template<typename T > | |
std::enable_if< std::is_enum< T >::value, bool >::type | setValue (const T &value) |
virtual void | toString (std::ostream &outstream) const =0 |
Public Attributes | |
bool | bLastConversionSuccessful |
True if the last conversion was successful. More... | |
void * | data_ |
For direct access to the value if the type is known. More... | |
Type | type_ |
The type of the current value. More... | |
MT_ValueBase is an almost pure virtual baseclass of MT_Value<T>, which holds the value of the MultiType.
This class is only used within the MultiType.
|
inlinevirtual |
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
|
inline |
|
pure virtual |
|
inline |
Returns the type of the current value.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
inline |
|
inline |
|
pure virtual |
|
inline |
Returns true if the type of the stored value is T. Note: the actual implementations for all supported types are defined outside of the class.
|
inline |
Implementation for enum classes: Returns true if the type of the stored value is the underlying type of T.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Checks whether the value is a default one.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
|
inline |
|
inline |
|
pure virtual |
Implemented in orxonox::MT_Value< T >.
bool orxonox::MultiType::MT_ValueBase::bLastConversionSuccessful |
True if the last conversion was successful.
void* orxonox::MultiType::MT_ValueBase::data_ |
For direct access to the value if the type is known.
Type orxonox::MultiType::MT_ValueBase::type_ |
The type of the current value.