RTI Connext Modern C++ API
Version 6.1.2
|
Offset to a sequence of non-primitive elements. More...
#include <SequenceOffsets.hpp>
Public Member Functions | |
ElementOffset | get_element (unsigned int i) |
Gets the Offset to an element. More... | |
unsigned int | element_count () const |
The number of elements. More... | |
![]() | |
iterator | begin () |
Gets an iterator to the first Offset. More... | |
iterator | end () |
Gets an iterator to the past-the-end element. 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... | |
Additional Inherited Members | |
![]() | |
typedef SequenceIterator< ElementOffset, typename ElementOffset::offset_kind > | iterator |
The iterator type, SequenceIterator. More... | |
Offset to a sequence of non-primitive elements.
ElementOffset | The Offset type, for example MyFlatMutableOffset, MyFlatFinalOffset, or StringOffset. |
Represents an Offset to a sequence member and allows getting an Offset to each of its elements.
A SequenceOffset may meet the requirements to be cast to an array of the equivalent plain C++ element type (see rti::flat::plain_cast), if the ElementOffset
is a final type.
|
inline |
Gets the Offset to an element.
i | The zero-based index to the element |
|
inline |
The number of elements.
References rti::flat::SequenceIterator< E, OffsetKind >::advance(), rti::flat::AbstractAlignedList< ElementOffset >::begin(), and rti::flat::SequenceOffset< ElementOffset >::element_count().
Referenced by rti::flat::SequenceOffset< ElementOffset >::element_count().