RTI Connext Modern C++ API
Version 6.1.0
|
An Offset to an optional primitive member. More...
#include <Offset.hpp>
Public Member Functions | |
bool | set (T value) |
Sets a value for this primitive member. More... | |
![]() | |
T | get () const |
Gets the value of this primitive member. More... | |
![]() | |
bool | is_null () const |
Indicates whether this Offset doesn't point to a valid element. More... | |
bool | is_cpp_compatible () const |
Indicates whether rti::flat::plain_cast() is possible. More... | |
const unsigned char * | get_buffer () const |
Gets this member's position in the buffer. More... | |
offset_t | get_buffer_size () const |
Gets the size, in bytes, of this member in the buffer. More... | |
An Offset to an optional primitive member.
T | The primitive type |
Non-optional primitive members are accessed directly using its container type's methods; however, since an optional member may not exist, this Offset is returned instead. The only purpose of the type PrimitiveOffset is to provide a way to check for the member's existence.
If !is_null(), the value can be retrieved with get() or set with set().
|
inline |
Sets a value for this primitive member.