Public Types | Public Member Functions | Public Attributes | List of all members
variant_topic_tools::BuiltinVariant::ValueImplT< T > Class Template Reference

Built-in variant value (templated implementation) More...

#include <BuiltinVariant.h>

Inheritance diagram for variant_topic_tools::BuiltinVariant::ValueImplT< T >:
Inheritance graph
[legend]

Public Types

typedef type_traits::BuiltinType< T >::ValueType ValueType
 Declaration of the value type. More...
 

Public Member Functions

 BOOST_STATIC_ASSERT (type_traits::IsBuiltin< T >::value)
 
ValuePtr clone () const
 Clone this variant value (implementation) More...
 
Serializer createSerializer (const DataType &type) const
 Create a serializer for this variant (implementation) More...
 
double getNumericValue () const
 Retrieve the built-in variant's numeric value (implementation) More...
 
ValueTypegetValue ()
 Retrieve the variant's value (implementation of the non-const version) More...
 
const ValueTypegetValue () const
 Retrieve the variant's value (implementation of the const version) More...
 
bool isEqual (const Variant::Value &value) const
 True, if this variant value equals another variant value (implementation) More...
 
void read (std::istream &stream)
 Read the variant from a stream (implementation) More...
 
void set (const Pointer< ValueType > &value)
 Set the variant's value pointer (implementation) More...
 
void setValue (const Variant::Value &value)
 Set the variant's value (implementation) More...
 
 ValueImplT (const Pointer< ValueType > &value=Pointer< ValueType >())
 Default constructor. More...
 
 ValueImplT (const ValueImplT< T > &src)
 Copy constructor. More...
 
void write (std::ostream &stream) const
 Write this variant value to a stream (implementation) More...
 
virtual ~ValueImplT ()
 Destructor. More...
 
- Public Member Functions inherited from variant_topic_tools::Variant::ValueT< type_traits::BuiltinType< T >::ValueType >
const std::type_info & getTypeInfo () const
 Retrieve the variant's value type information (re-implementation) More...
 
virtual void set (const Pointer< type_traits::BuiltinType< T >::ValueType > &value)=0
 Set the variant's value pointer (abstract declaration) More...
 
void setValue (const type_traits::BuiltinType< T >::ValueType &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
 Value ()
 Default constructor. More...
 
- Public Member Functions inherited from variant_topic_tools::BuiltinVariant::Value
 Value ()
 Default constructor. More...
 
virtual ~Value ()
 Destructor. More...
 

Public Attributes

Pointer< ValueTypevalue
 The strong-typed value. More...
 

Detailed Description

template<typename T>
class variant_topic_tools::BuiltinVariant::ValueImplT< T >

Built-in variant value (templated implementation)

Definition at line 84 of file BuiltinVariant.h.

Member Typedef Documentation

Declaration of the value type.

Definition at line 92 of file BuiltinVariant.h.

Constructor & Destructor Documentation

template<typename T>
variant_topic_tools::BuiltinVariant::ValueImplT< T >::ValueImplT ( const Pointer< ValueType > &  value = PointerValueType >())

Default constructor.

template<typename T>
variant_topic_tools::BuiltinVariant::ValueImplT< T >::ValueImplT ( const ValueImplT< T > &  src)

Copy constructor.

template<typename T>
virtual variant_topic_tools::BuiltinVariant::ValueImplT< T >::~ValueImplT ( )
virtual

Destructor.

Member Function Documentation

template<typename T>
variant_topic_tools::BuiltinVariant::ValueImplT< T >::BOOST_STATIC_ASSERT ( type_traits::IsBuiltin< T >::value  )
template<typename T>
ValuePtr variant_topic_tools::BuiltinVariant::ValueImplT< T >::clone ( ) const
virtual

Clone this variant value (implementation)

Implements variant_topic_tools::Variant::Value.

template<typename T>
Serializer variant_topic_tools::BuiltinVariant::ValueImplT< T >::createSerializer ( const DataType type) const
virtual

Create a serializer for this variant (implementation)

Implements variant_topic_tools::Variant::Value.

template<typename T>
double variant_topic_tools::BuiltinVariant::ValueImplT< T >::getNumericValue ( ) const
virtual

Retrieve the built-in variant's numeric value (implementation)

Implements variant_topic_tools::BuiltinVariant::Value.

template<typename T>
ValueType& variant_topic_tools::BuiltinVariant::ValueImplT< T >::getValue ( )
virtual

Retrieve the variant's value (implementation of the non-const version)

Implements variant_topic_tools::Variant::ValueT< type_traits::BuiltinType< T >::ValueType >.

template<typename T>
const ValueType& variant_topic_tools::BuiltinVariant::ValueImplT< T >::getValue ( ) const
virtual

Retrieve the variant's value (implementation of the const version)

Implements variant_topic_tools::Variant::ValueT< type_traits::BuiltinType< T >::ValueType >.

template<typename T>
bool variant_topic_tools::BuiltinVariant::ValueImplT< T >::isEqual ( const Variant::Value value) const
virtual

True, if this variant value equals another variant value (implementation)

Implements variant_topic_tools::Variant::Value.

template<typename T>
void variant_topic_tools::BuiltinVariant::ValueImplT< T >::read ( std::istream &  stream)
virtual

Read the variant from a stream (implementation)

Implements variant_topic_tools::Variant::Value.

template<typename T>
void variant_topic_tools::BuiltinVariant::ValueImplT< T >::set ( const Pointer< ValueType > &  value)

Set the variant's value pointer (implementation)

template<typename T>
void variant_topic_tools::BuiltinVariant::ValueImplT< T >::setValue ( const Variant::Value value)
virtual

Set the variant's value (implementation)

Implements variant_topic_tools::Variant::Value.

template<typename T>
void variant_topic_tools::BuiltinVariant::ValueImplT< T >::write ( std::ostream &  stream) const
virtual

Write this variant value to a stream (implementation)

Implements variant_topic_tools::Variant::Value.

Member Data Documentation

The strong-typed value.

Definition at line 152 of file BuiltinVariant.h.


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