Array variant value (templated implementation) More...
#include <ArrayVariant.h>
Public Types | |
typedef type_traits::ArrayType < T >::MemberType | MemberType |
Definition of the member type. | |
typedef type_traits::ArrayType < T >::ValueType | ValueType |
Definition of the value type. | |
Public Member Functions | |
void | addMember (const Variant &member) |
Add a member to the array (implementation) | |
BOOST_STATIC_ASSERT (type_traits::IsArray< T >::value) | |
void | clear () |
Clear the array (implementation) | |
ValuePtr | clone () const |
Clone this variant value (implementation) | |
Serializer | createSerializer (const DataType &type) const |
Create a serializer for this variant (implementation) | |
Variant | getMember (int index) const |
Retrieve a member of the variant collection by index (implementation) | |
size_t | getNumMembers () const |
Retrieve the number of members of the variant collection (implementation) | |
ValueType & | getValue () |
Retrieve the variant's value (implementation of the non-const version) | |
const ValueType & | getValue () const |
Retrieve the variant's value (implementation of the const version) | |
void | resize (size_t numMembers) |
Resize the array (implementation) | |
void | set (const Pointer< ValueType > &value) |
Set the variant's value pointer (implementation) | |
void | setMember (int index, const Variant &member) |
Set a member of the variant collection by index (implementation) | |
ValueImplT (const DataType &memberType=DataType(), const Pointer< ValueType > &array=Pointer< ValueType >()) | |
Default constructor. | |
ValueImplT (const ValueImplT< T > &src) | |
Copy constructor. | |
virtual | ~ValueImplT () |
Destructor. | |
Public Attributes | |
Pointer< ValueType > | array |
The strong-typed array. | |
DataType | memberType |
The array member type. | |
Static Public Attributes | |
static const size_t | NumMembers = type_traits::ArrayType<T>::NumMembers |
Definition of the number of array members. |
Array variant value (templated implementation)
Definition at line 206 of file ArrayVariant.h.
typedef type_traits::ArrayType<T>::MemberType variant_topic_tools::ArrayVariant::ValueImplT< T >::MemberType |
Definition of the member type.
Definition at line 218 of file ArrayVariant.h.
typedef type_traits::ArrayType<T>::ValueType variant_topic_tools::ArrayVariant::ValueImplT< T >::ValueType |
Definition of the value type.
Definition at line 214 of file ArrayVariant.h.
variant_topic_tools::ArrayVariant::ValueImplT< T >::ValueImplT | ( | const DataType & | memberType = DataType() , |
const Pointer< ValueType > & | array = Pointer< ValueType >() |
||
) |
Default constructor.
variant_topic_tools::ArrayVariant::ValueImplT< T >::ValueImplT | ( | const ValueImplT< T > & | src | ) |
Copy constructor.
virtual variant_topic_tools::ArrayVariant::ValueImplT< T >::~ValueImplT | ( | ) | [virtual] |
Destructor.
void variant_topic_tools::ArrayVariant::ValueImplT< T >::addMember | ( | const Variant & | member | ) | [virtual] |
Add a member to the array (implementation)
Implements variant_topic_tools::ArrayVariant::Value.
variant_topic_tools::ArrayVariant::ValueImplT< T >::BOOST_STATIC_ASSERT | ( | type_traits::IsArray< T >::value | ) |
void variant_topic_tools::ArrayVariant::ValueImplT< T >::clear | ( | ) | [virtual] |
Clear the array (implementation)
Implements variant_topic_tools::ArrayVariant::Value.
ValuePtr variant_topic_tools::ArrayVariant::ValueImplT< T >::clone | ( | ) | const [virtual] |
Clone this variant value (implementation)
Implements variant_topic_tools::Variant::Value.
Serializer variant_topic_tools::ArrayVariant::ValueImplT< T >::createSerializer | ( | const DataType & | type | ) | const [virtual] |
Create a serializer for this variant (implementation)
Implements variant_topic_tools::Variant::Value.
Variant variant_topic_tools::ArrayVariant::ValueImplT< T >::getMember | ( | int | index | ) | const [virtual] |
Retrieve a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
size_t variant_topic_tools::ArrayVariant::ValueImplT< T >::getNumMembers | ( | ) | const [virtual] |
Retrieve the number of members of the variant collection (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
ValueType& variant_topic_tools::ArrayVariant::ValueImplT< T >::getValue | ( | ) | [virtual] |
Retrieve the variant's value (implementation of the non-const version)
Implements variant_topic_tools::Variant::ValueT< type_traits::ArrayType< T >::ValueType >.
const ValueType& variant_topic_tools::ArrayVariant::ValueImplT< T >::getValue | ( | ) | const [virtual] |
Retrieve the variant's value (implementation of the const version)
Implements variant_topic_tools::Variant::ValueT< type_traits::ArrayType< T >::ValueType >.
void variant_topic_tools::ArrayVariant::ValueImplT< T >::resize | ( | size_t | numMembers | ) | [virtual] |
Resize the array (implementation)
Implements variant_topic_tools::ArrayVariant::Value.
void variant_topic_tools::ArrayVariant::ValueImplT< T >::set | ( | const Pointer< ValueType > & | value | ) | [virtual] |
Set the variant's value pointer (implementation)
Implements variant_topic_tools::Variant::ValueT< type_traits::ArrayType< T >::ValueType >.
void variant_topic_tools::ArrayVariant::ValueImplT< T >::setMember | ( | int | index, |
const Variant & | member | ||
) | [virtual] |
Set a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Pointer<ValueType> variant_topic_tools::ArrayVariant::ValueImplT< T >::array [mutable] |
The strong-typed array.
Definition at line 292 of file ArrayVariant.h.
DataType variant_topic_tools::ArrayVariant::ValueImplT< T >::memberType |
The array member type.
Definition at line 288 of file ArrayVariant.h.
const size_t variant_topic_tools::ArrayVariant::ValueImplT< T >::NumMembers = type_traits::ArrayType<T>::NumMembers [static] |
Definition of the number of array members.
Definition at line 222 of file ArrayVariant.h.