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) More... | |
virtual T & | getValue ()=0 |
Retrieve the variant's value (abstract declaration of the non-const version) More... | |
virtual const T & | getValue () const =0 |
Retrieve the variant's value (abstract declaration of the const version) More... | |
virtual void | set (const Pointer< T > &value)=0 |
Set the variant's value pointer (abstract declaration) More... | |
void | setValue (const T &value) |
Set the variant's value (overloaded version taking a variant value) More... | |
ValueT () | |
Default constructor. More... | |
virtual | ~ValueT () |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::Variant::Value | |
virtual ValuePtr | clone () const =0 |
Clone this variant value (abstract declaration) More... | |
virtual Serializer | createSerializer (const DataType &type) const =0 |
Create a serializer for this variant (abstract declaration) More... | |
virtual bool | isEqual (const Value &value) const =0 |
True, if this variant value equals another variant value (abstract declaration) More... | |
virtual void | read (std::istream &stream)=0 |
Read the variant from a stream (abstract declaration) More... | |
virtual void | setValue (const Value &value)=0 |
Set the variant's value (abstract declaration) More... | |
Value () | |
Default constructor. More... | |
virtual void | write (std::ostream &stream) const =0 |
Write this variant value to a stream (abstract declaration) More... | |
virtual | ~Value () |
Destructor. More... | |
Variant value (templated abstract base)
variant_topic_tools::Variant::ValueT< T >::ValueT | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Retrieve the variant's value type information (re-implementation)
Reimplemented from variant_topic_tools::Variant::Value.
|
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 >.
|
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 >.
|
pure virtual |
Set the variant's value pointer (abstract declaration)
void variant_topic_tools::Variant::ValueT< T >::setValue | ( | const T & | value | ) |
Set the variant's value (overloaded version taking a variant value)