RTI Connext Modern C++ API
Version 6.1.1
|
Base class of Offsets to sequences and arrays of non-primitive members. More...
#include <SequenceOffsets.hpp>
Public Types | |
typedef SequenceIterator< ElementOffset, typename ElementOffset::offset_kind > | iterator |
The iterator type, SequenceIterator. More... | |
Public Member Functions | |
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... | |
Base class of Offsets to sequences and arrays of non-primitive members.
ElementOffset | The Offset type of the elements |
typedef SequenceIterator<ElementOffset, typename ElementOffset::offset_kind> rti::flat::AbstractAlignedList< ElementOffset >::iterator |
The iterator type, SequenceIterator.
|
inline |
Gets an iterator to the first Offset.
begin() and end() enable the use of range-for loops, for example:
References rti::flat::OffsetBase::get_buffer_size().
Referenced by rti::flat::SequenceOffset< ElementOffset >::element_count().
|
inline |
Gets an iterator to the past-the-end element.
References rti::flat::SequenceIterator< E, OffsetKind >::advance(), and rti::flat::OffsetBase::get_buffer_size().