Public Member Functions | List of all members
variant_topic_tools::ArrayVariant::Value Class Referenceabstract

Array variant value (abstract base) More...

#include <ArrayVariant.h>

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

Public Member Functions

virtual void addMember (const Variant &member)=0
 Add a member to the array (abstract declaration) More...
 
virtual void clear ()=0
 Clear the array (abstract declaration) More...
 
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...
 
virtual void resize (size_t numMembers)=0
 Resize the array (abstract declaration) 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
virtual Variant getMember (int index) const =0
 Retrieve a member of the collection by index (abstract declaration) More...
 
Variant getMember (const std::string &name, size_t pos) const
 Recursively retrieve a member of the collection by name. More...
 
virtual size_t getNumMembers () const =0
 Retrieve the number of members of the collection (abstract declaration) 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...
 
virtual void setMember (int index, const Variant &member)=0
 Set a member of the collection by index (abstract declaration) 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 ValuePtr clone () const =0
 Clone this variant value (abstract declaration) More...
 
virtual Serializer createSerializer (const DataType &type) const =0
 Create a serializer for this variant (abstract declaration) More...
 
virtual const std::type_info & getTypeInfo () const
 Retrieve the variant's value type information. More...
 
 Value ()
 Default constructor. More...
 

Detailed Description

Array variant value (abstract base)

Definition at line 86 of file ArrayVariant.h.

Constructor & Destructor Documentation

variant_topic_tools::ArrayVariant::Value::Value ( )

Default constructor.

Definition at line 53 of file ArrayVariant.cpp.

variant_topic_tools::ArrayVariant::Value::~Value ( )
virtual

Destructor.

Reimplemented from variant_topic_tools::CollectionVariant::Value.

Definition at line 56 of file ArrayVariant.cpp.

Member Function Documentation

virtual void variant_topic_tools::ArrayVariant::Value::addMember ( const Variant member)
pure virtual

Add a member to the array (abstract declaration)

Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, and variant_topic_tools::ArrayVariant::ValueImplV.

virtual void variant_topic_tools::ArrayVariant::Value::clear ( )
pure virtual
Variant variant_topic_tools::ArrayVariant::Value::getMember ( const std::string &  name) const
virtual

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

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 104 of file ArrayVariant.cpp.

bool variant_topic_tools::ArrayVariant::Value::hasMember ( const std::string &  name) const
virtual

True, if the variant collection contains the member with the specified name (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 117 of file ArrayVariant.cpp.

virtual void variant_topic_tools::ArrayVariant::Value::resize ( size_t  numMembers)
pure virtual

Resize the array (abstract declaration)

Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, and variant_topic_tools::ArrayVariant::ValueImplV.

void variant_topic_tools::ArrayVariant::Value::setMember ( const std::string &  name,
const Variant member 
)
virtual

Set a member of the variant collection by name (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 90 of file ArrayVariant.cpp.

void variant_topic_tools::ArrayVariant::Value::setValue ( const Variant::Value value)
virtual

Set the variant's value (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 81 of file ArrayVariant.cpp.

void variant_topic_tools::ArrayVariant::Value::writeMember ( std::ostream &  stream,
int  index 
) const
virtual

Write the variant collection member with the specified index to a stream (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 177 of file ArrayVariant.cpp.


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