Variant value (templated abstract base) More...
#include <Variant.h>
Public Member Functions | |
const std::type_info & | getTypeInfo () const |
Retrieve the variant's value type information (re-implementation) | |
virtual T & | getValue ()=0 |
Retrieve the variant's value (abstract declaration of the non-const version) | |
virtual const T & | getValue () const =0 |
Retrieve the variant's value (abstract declaration of the const version) | |
virtual void | set (const Pointer< T > &value)=0 |
Set the variant's value pointer (abstract declaration) | |
void | setValue (const T &value) |
Set the variant's value (overloaded version taking a variant value) | |
ValueT () | |
Default constructor. | |
virtual | ~ValueT () |
Destructor. |
Variant value (templated abstract base)
variant_topic_tools::Variant::ValueT< T >::ValueT | ( | ) |
Default constructor.
virtual variant_topic_tools::Variant::ValueT< T >::~ValueT | ( | ) | [virtual] |
Destructor.
const std::type_info& variant_topic_tools::Variant::ValueT< T >::getTypeInfo | ( | ) | const [virtual] |
Retrieve the variant's value type information (re-implementation)
Reimplemented from variant_topic_tools::Variant::Value.
virtual T& variant_topic_tools::Variant::ValueT< T >::getValue | ( | ) | [pure virtual] |
Retrieve the variant's value (abstract declaration of the non-const version)
Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, variant_topic_tools::MessageVariant::ValueImplT< T >, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.
virtual const T& variant_topic_tools::Variant::ValueT< T >::getValue | ( | ) | const [pure virtual] |
Retrieve the variant's value (abstract declaration of the const version)
Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, variant_topic_tools::MessageVariant::ValueImplT< T >, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.
virtual void variant_topic_tools::Variant::ValueT< T >::set | ( | const Pointer< T > & | value | ) | [pure virtual] |
Set the variant's value pointer (abstract declaration)
Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >.
void variant_topic_tools::Variant::ValueT< T >::setValue | ( | const T & | value | ) |
Set the variant's value (overloaded version taking a variant value)