Array variant value (variant-typed implementation) More...
#include <ArrayVariant.h>
Public Member Functions | |
void | addMember (const Variant &member) |
Add a member to the array (implementation) | |
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) | |
void | resize (size_t numMembers) |
Resize the array (implementation) | |
void | setMember (int index, const Variant &member) |
Set a member of the variant collection by index (implementation) | |
ValueImplV (const DataType &memberType=DataType(), size_t numMembers=0) | |
Default constructor. | |
ValueImplV (const ValueImplV &src) | |
Copy constructor. | |
virtual | ~ValueImplV () |
Destructor. | |
Public Attributes | |
std::vector< Variant > | members |
The array members. | |
DataType | memberType |
The array member type. | |
size_t | numMembers |
The number of array members. |
Array variant value (variant-typed implementation)
Definition at line 140 of file ArrayVariant.h.
variant_topic_tools::ArrayVariant::ValueImplV::ValueImplV | ( | const DataType & | memberType = DataType() , |
size_t | numMembers = 0 |
||
) |
Default constructor.
Definition at line 59 of file ArrayVariant.cpp.
Copy constructor.
Definition at line 68 of file ArrayVariant.cpp.
Destructor.
Definition at line 74 of file ArrayVariant.cpp.
void variant_topic_tools::ArrayVariant::ValueImplV::addMember | ( | const Variant & | member | ) | [virtual] |
Add a member to the array (implementation)
Implements variant_topic_tools::ArrayVariant::Value.
Definition at line 195 of file ArrayVariant.cpp.
void variant_topic_tools::ArrayVariant::ValueImplV::clear | ( | ) | [virtual] |
Clear the array (implementation)
Implements variant_topic_tools::ArrayVariant::Value.
Definition at line 222 of file ArrayVariant.cpp.
Variant::ValuePtr variant_topic_tools::ArrayVariant::ValueImplV::clone | ( | ) | const [virtual] |
Clone this variant value (implementation)
Implements variant_topic_tools::Variant::Value.
Definition at line 229 of file ArrayVariant.cpp.
Serializer variant_topic_tools::ArrayVariant::ValueImplV::createSerializer | ( | const DataType & | type | ) | const [virtual] |
Create a serializer for this variant (implementation)
Implements variant_topic_tools::Variant::Value.
Definition at line 233 of file ArrayVariant.cpp.
Variant variant_topic_tools::ArrayVariant::ValueImplV::getMember | ( | int | index | ) | const [virtual] |
Retrieve a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 143 of file ArrayVariant.cpp.
size_t variant_topic_tools::ArrayVariant::ValueImplV::getNumMembers | ( | ) | const [virtual] |
Retrieve the number of members of the variant collection (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 131 of file ArrayVariant.cpp.
void variant_topic_tools::ArrayVariant::ValueImplV::resize | ( | size_t | numMembers | ) | [virtual] |
Resize the array (implementation)
Implements variant_topic_tools::ArrayVariant::Value.
Definition at line 207 of file ArrayVariant.cpp.
void variant_topic_tools::ArrayVariant::ValueImplV::setMember | ( | int | index, |
const Variant & | member | ||
) | [virtual] |
Set a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
Definition at line 135 of file ArrayVariant.cpp.
The array members.
Definition at line 201 of file ArrayVariant.h.
The array member type.
Definition at line 193 of file ArrayVariant.h.
The number of array members.
Definition at line 197 of file ArrayVariant.h.