Message data type implementation (templated strong-typed version) More...
#include <MessageDataType.h>
Public Member Functions | |
void | addConstantMember (const MessageConstant &member) |
Add a constant member to this message data type (implementation) More... | |
void | addVariableMember (const MessageVariable &member) |
Add a variable member to this message data type (implementation) More... | |
BOOST_STATIC_ASSERT (type_traits::IsMessage< T >::value) | |
Serializer | createSerializer (const DataType &type) const |
Create a serializer for this data type (re-implementation) More... | |
Variant | createVariant (const DataType &type) const |
Create a variant from this data type (re-implementation) More... | |
const std::string & | getDefinition () const |
Retrieve the definition this message data type (implementation) More... | |
const std::string & | getIdentifier () const |
Retrieve the identifier representing this data type (implementation) More... | |
std::string | getMD5Sum () const |
Retrieve the MD5 sum of this message data type (implementation) More... | |
size_t | getSize () const |
Retrieve the size of the instances of this data type (implementation) More... | |
const std::type_info & | getTypeInfo () const |
Retrieve the type information associated with this data type (re-implementation) More... | |
ImplT () | |
Default constructor. More... | |
bool | isFixedSize () const |
True, if this data type represents a fixed-size data type (implementation) More... | |
bool | isSimple () const |
True, if this data type represents a simple data type (implementation) More... | |
template<typename M > | |
void | next (const M &member) |
Process the next variable member to determine its memory offset. More... | |
virtual | ~ImplT () |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::MessageDataType::Impl | |
Impl (const MessageFieldCollection< MessageConstant > &constantMembers, const MessageFieldCollection< MessageVariable > &variableMembers) | |
Constructor (overloaded version taking a collection of constant members and a collection of variable members) More... | |
Impl (const std::string &identifier, const std::string &definition) | |
Constructor (overloaded version taking a definition) More... | |
virtual | ~Impl () |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::DataType::Impl | |
Impl () | |
Constructor. More... | |
Public Attributes | |
size_t | memberIndex |
The index of the currently processed variable member. More... | |
T | message |
The message used to determine the variable member memory offsets. More... | |
Public Attributes inherited from variant_topic_tools::MessageDataType::Impl | |
MessageFieldCollection< MessageConstant > | constantMembers |
The constant members of this message data type. More... | |
MessageFieldCollection< MessageVariable > | variableMembers |
The variable members of this message data type. More... | |
Message data type implementation (templated strong-typed version)
Definition at line 303 of file MessageDataType.h.
variant_topic_tools::MessageDataType::ImplT< T >::ImplT | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Add a constant member to this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
|
virtual |
Add a variable member to this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
variant_topic_tools::MessageDataType::ImplT< T >::BOOST_STATIC_ASSERT | ( | type_traits::IsMessage< T >::value | ) |
|
virtual |
Create a serializer for this data type (re-implementation)
Implements variant_topic_tools::DataType::Impl.
|
virtual |
Create a variant from this data type (re-implementation)
Implements variant_topic_tools::DataType::Impl.
|
virtual |
Retrieve the definition this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
|
virtual |
Retrieve the identifier representing this data type (implementation)
Implements variant_topic_tools::DataType::Impl.
|
virtual |
Retrieve the MD5 sum of this message data type (implementation)
Implements variant_topic_tools::MessageDataType::Impl.
|
virtual |
Retrieve the size of the instances of this data type (implementation)
Implements variant_topic_tools::DataType::Impl.
|
virtual |
Retrieve the type information associated with this data type (re-implementation)
Reimplemented from variant_topic_tools::DataType::Impl.
|
virtual |
True, if this data type represents a fixed-size data type (implementation)
Implements variant_topic_tools::DataType::Impl.
|
virtual |
True, if this data type represents a simple data type (implementation)
Implements variant_topic_tools::DataType::Impl.
void variant_topic_tools::MessageDataType::ImplT< T >::next | ( | const M & | member | ) |
Process the next variable member to determine its memory offset.
size_t variant_topic_tools::MessageDataType::ImplT< T >::memberIndex |
The index of the currently processed variable member.
Definition at line 381 of file MessageDataType.h.
T variant_topic_tools::MessageDataType::ImplT< T >::message |
The message used to determine the variable member memory offsets.
Definition at line 377 of file MessageDataType.h.