Built-in variant value (templated implementation) More...
#include <BuiltinVariant.h>
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... | |
ValueType & | getValue () |
Retrieve the variant's value (implementation of the non-const version) More... | |
const ValueType & | getValue () 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< ValueType > | value |
The strong-typed value. More... | |
Built-in variant value (templated implementation)
Definition at line 84 of file BuiltinVariant.h.
typedef type_traits::BuiltinType<T>::ValueType variant_topic_tools::BuiltinVariant::ValueImplT< T >::ValueType |
Declaration of the value type.
Definition at line 92 of file BuiltinVariant.h.
variant_topic_tools::BuiltinVariant::ValueImplT< T >::ValueImplT | ( | const Pointer< ValueType > & | value = Pointer< ValueType >() | ) |
Default constructor.
variant_topic_tools::BuiltinVariant::ValueImplT< T >::ValueImplT | ( | const ValueImplT< T > & | src | ) |
Copy constructor.
|
virtual |
Destructor.
variant_topic_tools::BuiltinVariant::ValueImplT< T >::BOOST_STATIC_ASSERT | ( | type_traits::IsBuiltin< T >::value | ) |
|
virtual |
Clone this variant value (implementation)
Implements variant_topic_tools::Variant::Value.
|
virtual |
Create a serializer for this variant (implementation)
Implements variant_topic_tools::Variant::Value.
|
virtual |
Retrieve the built-in variant's numeric value (implementation)
Implements variant_topic_tools::BuiltinVariant::Value.
|
virtual |
Retrieve the variant's value (implementation of the non-const version)
Implements variant_topic_tools::Variant::ValueT< type_traits::BuiltinType< T >::ValueType >.
|
virtual |
Retrieve the variant's value (implementation of the const version)
Implements variant_topic_tools::Variant::ValueT< type_traits::BuiltinType< T >::ValueType >.
|
virtual |
True, if this variant value equals another variant value (implementation)
Implements variant_topic_tools::Variant::Value.
|
virtual |
Read the variant from a stream (implementation)
Implements variant_topic_tools::Variant::Value.
void variant_topic_tools::BuiltinVariant::ValueImplT< T >::set | ( | const Pointer< ValueType > & | value | ) |
Set the variant's value pointer (implementation)
|
virtual |
Set the variant's value (implementation)
Implements variant_topic_tools::Variant::Value.
|
virtual |
Write this variant value to a stream (implementation)
Implements variant_topic_tools::Variant::Value.
Pointer<ValueType> variant_topic_tools::BuiltinVariant::ValueImplT< T >::value |
The strong-typed value.
Definition at line 152 of file BuiltinVariant.h.