Array variant value (abstract base) More...
#include <ArrayVariant.h>
Public Member Functions | |
virtual void | addMember (const Variant &member)=0 |
Add a member to the array (abstract declaration) | |
virtual void | clear ()=0 |
Clear the array (abstract declaration) | |
Variant | getMember (const std::string &name) const |
Retrieve a member of the variant collection by name (implementation) | |
bool | hasMember (const std::string &name) const |
True, if the variant collection contains the member with the specified name (implementation) | |
virtual void | resize (size_t numMembers)=0 |
Resize the array (abstract declaration) | |
void | setMember (const std::string &name, const Variant &member) |
Set a member of the variant collection by name (implementation) | |
void | setValue (const Variant::Value &value) |
Set the variant's value (implementation) | |
Value () | |
Default constructor. | |
void | writeMember (std::ostream &stream, int index) const |
Write the variant collection member with the specified index to a stream (implementation) | |
virtual | ~Value () |
Destructor. |
Array variant value (abstract base)
Definition at line 86 of file ArrayVariant.h.
Default constructor.
Reimplemented from variant_topic_tools::CollectionVariant::Value.
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.
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] |
Clear the array (abstract declaration)
Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, and variant_topic_tools::ArrayVariant::ValueImplV.
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.