Public Member Functions | Public Attributes | List of all members
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]

Public Member Functions

void addMember (const Variant &member)
 Add a member to the array (implementation) More...
 
void clear ()
 Clear the array (implementation) More...
 
ValuePtr clone () const
 Clone this variant value (implementation) More...
 
Serializer createSerializer (const DataType &type) const
 Create a serializer for this variant (implementation) More...
 
Variant getMember (int index) const
 Retrieve a member of the variant collection by index (implementation) More...
 
size_t getNumMembers () const
 Retrieve the number of members of the variant collection (implementation) More...
 
void resize (size_t numMembers)
 Resize the array (implementation) More...
 
void setMember (int index, const Variant &member)
 Set a member of the variant collection by index (implementation) More...
 
 ValueImplV (const DataType &memberType=DataType(), size_t numMembers=0)
 Default constructor. More...
 
 ValueImplV (const ValueImplV &src)
 Copy constructor. More...
 
virtual ~ValueImplV ()
 Destructor. More...
 
- Public Member Functions inherited from variant_topic_tools::ArrayVariant::Value
Variant getMember (const std::string &name) const
 Retrieve a member of the variant collection by name (implementation) More...
 
bool hasMember (const std::string &name) const
 True, if the variant collection contains the member with the specified name (implementation) More...
 
void setMember (const std::string &name, const Variant &member)
 Set a member of the variant collection by name (implementation) More...
 
void setValue (const Variant::Value &value)
 Set the variant's value (implementation) More...
 
 Value ()
 Default constructor. More...
 
void writeMember (std::ostream &stream, int index) const
 Write the variant collection member with the specified index to a stream (implementation) More...
 
virtual ~Value ()
 Destructor. More...
 
- Public Member Functions inherited from variant_topic_tools::CollectionVariant::Value
Variant getMember (const std::string &name, size_t pos) const
 Recursively retrieve a member of the collection by name. More...
 
bool hasMember (const std::string &name, size_t pos) const
 True, if the collection or any of its members contains the member with the specified name. 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 setMember (const std::string &name, const Variant &member, size_t pos)
 Recursively set a member of the collection by name. More...
 
 Value ()
 Default constructor. More...
 
void write (std::ostream &stream) const
 Write this variant value to a stream (implementation) More...
 
- Public Member Functions inherited from variant_topic_tools::Variant::Value
virtual const std::type_info & getTypeInfo () const
 Retrieve the variant's value type information. More...
 
 Value ()
 Default constructor. More...
 

Public Attributes

std::vector< Variantmembers
 The array members. More...
 
DataType memberType
 The array member type. More...
 
size_t numMembers
 The number of array members. More...
 

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.

variant_topic_tools::ArrayVariant::ValueImplV::ValueImplV ( const ValueImplV src)

Copy constructor.

Definition at line 68 of file ArrayVariant.cpp.

variant_topic_tools::ArrayVariant::ValueImplV::~ValueImplV ( )
virtual

Destructor.

Definition at line 74 of file ArrayVariant.cpp.

Member Function Documentation

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.

Member Data Documentation

std::vector<Variant> variant_topic_tools::ArrayVariant::ValueImplV::members

The array members.

Definition at line 201 of file ArrayVariant.h.

DataType variant_topic_tools::ArrayVariant::ValueImplV::memberType

The array member type.

Definition at line 193 of file ArrayVariant.h.

size_t variant_topic_tools::ArrayVariant::ValueImplV::numMembers

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 Sat Jan 9 2021 03:56:50