Public Member Functions | List of all members
variant_topic_tools::Variant::ValueT< T > Class Template Referenceabstract

Variant value (templated abstract base) More...

#include <Variant.h>

Inheritance diagram for variant_topic_tools::Variant::ValueT< T >:
Inheritance graph
[legend]

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...
 

Detailed Description

template<typename T>
class variant_topic_tools::Variant::ValueT< T >

Variant value (templated abstract base)

Definition at line 209 of file Variant.h.

Constructor & Destructor Documentation

template<typename T>
variant_topic_tools::Variant::ValueT< T >::ValueT ( )

Default constructor.

template<typename T>
virtual variant_topic_tools::Variant::ValueT< T >::~ValueT ( )
virtual

Destructor.

Member Function Documentation

template<typename T>
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.

template<typename T>
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 >.

template<typename T>
virtual const T& variant_topic_tools::Variant::ValueT< T >::getValue ( ) const
pure virtual
template<typename T>
virtual void variant_topic_tools::Variant::ValueT< T >::set ( const Pointer< T > &  value)
pure virtual

Set the variant's value pointer (abstract declaration)

template<typename T>
void variant_topic_tools::Variant::ValueT< T >::setValue ( const T &  value)

Set the variant's value (overloaded version taking a variant value)


The documentation for this class was generated from the following file:


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Sat Jan 9 2021 03:56:50