Public Member Functions | Public Attributes
variant_topic_tools::ArrayVariant::ValueImplV Class Reference

Array variant value (variant-typed implementation) More...

#include <ArrayVariant.h>

Inheritance diagram for variant_topic_tools::ArrayVariant::ValueImplV:
Inheritance graph
[legend]

List of all members.

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< Variantmembers
 The array members.
DataType memberType
 The array member type.
size_t numMembers
 The number of array members.

Detailed Description

Array variant value (variant-typed implementation)

Definition at line 140 of file ArrayVariant.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Add a member to the array (implementation)

Implements variant_topic_tools::ArrayVariant::Value.

Definition at line 195 of file ArrayVariant.cpp.

Clear the array (implementation)

Implements variant_topic_tools::ArrayVariant::Value.

Definition at line 222 of file ArrayVariant.cpp.

Clone this variant value (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 229 of file ArrayVariant.cpp.

Create a serializer for this variant (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 233 of file ArrayVariant.cpp.

Retrieve a member of the variant collection by index (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 143 of file ArrayVariant.cpp.

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.


Member Data Documentation

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.


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


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Tue Jul 9 2019 03:18:42