Message variant value (templated implementation) More...
#include <MessageVariant.h>

Public Types | |
| typedef type_traits::MessageType< T > ::ValueType | ValueType |
| Definition of the value type. | |
Public Member Functions | |
| BOOST_STATIC_ASSERT (type_traits::IsMessage< T >::value) | |
| 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) | |
| Variant | getMember (const std::string &name) const |
| Retrieve a member of the variant collection by name (implementation) | |
| const std::string & | getMemberName (int index) const |
| Retrieve the name of the message member with the specified index (implementation) | |
| size_t | getNumMembers () const |
| Retrieve the number of members of the variant collection (implementation) | |
| ValueType & | getValue () |
| Retrieve the variant's value (implementation of the non-const version) | |
| const ValueType & | getValue () const |
| Retrieve the variant's value (implementation of the const version) | |
| bool | hasMember (const std::string &name) const |
| True, if the variant collection contains the member with the specified name (implementation) | |
| void | set (const Pointer< ValueType > &value) |
| Set the variant's value pointer (implementation) | |
| void | setMember (int index, const Variant &member) |
| Set a member of the variant collection by index (implementation) | |
| void | setMember (const std::string &name, const Variant &member) |
| Set a member of the variant collection by name (implementation) | |
| ValueImplT (const MessageFieldCollection< MessageVariable > &members=MessageFieldCollection< MessageVariable >(), const Pointer< ValueType > &message=Pointer< ValueType >()) | |
| Default constructor. | |
| ValueImplT (const ValueImplT< T > &src) | |
| Copy constructor. | |
| virtual | ~ValueImplT () |
| Destructor. | |
Public Attributes | |
| MessageFieldCollection < MessageVariable > | members |
| The message members. | |
| Pointer< ValueType > | message |
| The strong-typed message. | |
Message variant value (templated implementation)
Definition at line 155 of file MessageVariant.h.
| typedef type_traits::MessageType<T>::ValueType variant_topic_tools::MessageVariant::ValueImplT< T >::ValueType |
Definition of the value type.
Definition at line 163 of file MessageVariant.h.
| variant_topic_tools::MessageVariant::ValueImplT< T >::ValueImplT | ( | const MessageFieldCollection< MessageVariable > & | members = MessageFieldCollection< MessageVariable >(), |
| const Pointer< ValueType > & | message = Pointer< ValueType >() |
||
| ) |
Default constructor.
| variant_topic_tools::MessageVariant::ValueImplT< T >::ValueImplT | ( | const ValueImplT< T > & | src | ) |
Copy constructor.
| virtual variant_topic_tools::MessageVariant::ValueImplT< T >::~ValueImplT | ( | ) | [virtual] |
Destructor.
| variant_topic_tools::MessageVariant::ValueImplT< T >::BOOST_STATIC_ASSERT | ( | type_traits::IsMessage< T >::value | ) |
| ValuePtr variant_topic_tools::MessageVariant::ValueImplT< T >::clone | ( | ) | const [virtual] |
Clone this variant value (implementation)
Implements variant_topic_tools::Variant::Value.
| Serializer variant_topic_tools::MessageVariant::ValueImplT< T >::createSerializer | ( | const DataType & | type | ) | const [virtual] |
Create a serializer for this variant (implementation)
Implements variant_topic_tools::Variant::Value.
| Variant variant_topic_tools::MessageVariant::ValueImplT< T >::getMember | ( | int | index | ) | const [virtual] |
Retrieve a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
| Variant variant_topic_tools::MessageVariant::ValueImplT< T >::getMember | ( | const std::string & | name | ) | const [virtual] |
Retrieve a member of the variant collection by name (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
| const std::string& variant_topic_tools::MessageVariant::ValueImplT< T >::getMemberName | ( | int | index | ) | const [virtual] |
Retrieve the name of the message member with the specified index (implementation)
Implements variant_topic_tools::MessageVariant::Value.
| size_t variant_topic_tools::MessageVariant::ValueImplT< T >::getNumMembers | ( | ) | const [virtual] |
Retrieve the number of members of the variant collection (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
| ValueType& variant_topic_tools::MessageVariant::ValueImplT< T >::getValue | ( | ) | [virtual] |
Retrieve the variant's value (implementation of the non-const version)
Implements variant_topic_tools::Variant::ValueT< type_traits::MessageType< T >::ValueType >.
| const ValueType& variant_topic_tools::MessageVariant::ValueImplT< T >::getValue | ( | ) | const [virtual] |
Retrieve the variant's value (implementation of the const version)
Implements variant_topic_tools::Variant::ValueT< type_traits::MessageType< T >::ValueType >.
| bool variant_topic_tools::MessageVariant::ValueImplT< T >::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.
| void variant_topic_tools::MessageVariant::ValueImplT< T >::set | ( | const Pointer< ValueType > & | value | ) |
Set the variant's value pointer (implementation)
| void variant_topic_tools::MessageVariant::ValueImplT< T >::setMember | ( | int | index, |
| const Variant & | member | ||
| ) | [virtual] |
Set a member of the variant collection by index (implementation)
Implements variant_topic_tools::CollectionVariant::Value.
| void variant_topic_tools::MessageVariant::ValueImplT< T >::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.
| MessageFieldCollection<MessageVariable> variant_topic_tools::MessageVariant::ValueImplT< T >::members |
The message members.
Definition at line 238 of file MessageVariant.h.
Pointer<ValueType> variant_topic_tools::MessageVariant::ValueImplT< T >::message [mutable] |
The strong-typed message.
Definition at line 242 of file MessageVariant.h.