Shared pointer. More...
#include <MessageMemberPointer.h>
Classes | |
class | Impl |
Message member pointer implementation. More... | |
Public Types | |
typedef type_traits::DataType < M >::ValueType | MemberValueType |
Definition of the message member value type. | |
typedef type_traits::MessageType< T > ::ValueType | ValueType |
Definition of the message value type. | |
Public Member Functions | |
BOOST_STATIC_ASSERT (type_traits::IsMessage< T >::value) | |
const Pointer< ValueType > & | getMessage () const |
Retrieve the message. | |
size_t | getOffset () const |
Retrieve the message member offset. | |
MessageMemberPointer (ValueType *message=0, size_t offset=0) | |
Default constructor. | |
MessageMemberPointer (const Pointer< ValueType > &message, size_t offset) | |
Constructor (overloaded version taking a message pointer and an offset) | |
MessageMemberPointer (const MessageMemberPointer< T, M > &src) | |
Copy constructor. | |
MessageMemberPointer (const Pointer< MemberValueType > &src) | |
Copy constructor (overloaded version taking a pointer) | |
void | setMessage (const Pointer< ValueType > &message) |
Set the message. | |
void | setOffset (size_t offset) |
Set the message member offset. | |
~MessageMemberPointer () | |
Destructor. |
Shared pointer.
Definition at line 33 of file MessageMemberPointer.h.
typedef type_traits::DataType<M>::ValueType variant_topic_tools::MessageMemberPointer< T, M >::MemberValueType |
Definition of the message member value type.
Definition at line 44 of file MessageMemberPointer.h.
typedef type_traits::MessageType<T>::ValueType variant_topic_tools::MessageMemberPointer< T, M >::ValueType |
Definition of the message value type.
Definition at line 40 of file MessageMemberPointer.h.
variant_topic_tools::MessageMemberPointer< T, M >::MessageMemberPointer | ( | ValueType * | message = 0 , |
size_t | offset = 0 |
||
) |
Default constructor.
variant_topic_tools::MessageMemberPointer< T, M >::MessageMemberPointer | ( | const Pointer< ValueType > & | message, |
size_t | offset | ||
) |
Constructor (overloaded version taking a message pointer and an offset)
variant_topic_tools::MessageMemberPointer< T, M >::MessageMemberPointer | ( | const MessageMemberPointer< T, M > & | src | ) |
Copy constructor.
variant_topic_tools::MessageMemberPointer< T, M >::MessageMemberPointer | ( | const Pointer< MemberValueType > & | src | ) |
Copy constructor (overloaded version taking a pointer)
variant_topic_tools::MessageMemberPointer< T, M >::~MessageMemberPointer | ( | ) |
Destructor.
variant_topic_tools::MessageMemberPointer< T, M >::BOOST_STATIC_ASSERT | ( | type_traits::IsMessage< T >::value | ) |
const Pointer<ValueType>& variant_topic_tools::MessageMemberPointer< T, M >::getMessage | ( | ) | const |
Retrieve the message.
size_t variant_topic_tools::MessageMemberPointer< T, M >::getOffset | ( | ) | const |
Retrieve the message member offset.
void variant_topic_tools::MessageMemberPointer< T, M >::setMessage | ( | const Pointer< ValueType > & | message | ) |
Set the message.
void variant_topic_tools::MessageMemberPointer< T, M >::setOffset | ( | size_t | offset | ) |
Set the message member offset.