RTI Connext Modern C++ API Version 7.3.0
rti::flat::PrimitiveSequenceOffset< T > Class Template Reference

Offset to a sequence of primitive elements. More...

#include <SequenceOffsets.hpp>

Inheritance diagram for rti::flat::PrimitiveSequenceOffset< T >:
rti::flat::AbstractPrimitiveList< T > rti::flat::OffsetBase

Public Member Functions

unsigned int element_count () const
 Returns the number of elements. More...
 
- Public Member Functions inherited from rti::flat::AbstractPrimitiveList< T >
get_element (unsigned int i) const
 Returns an element by index. More...
 
bool set_element (unsigned int i, T value)
 Sets an element by index. More...
 
- Public Member Functions inherited from rti::flat::OffsetBase
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...
 

Detailed Description

template<typename T>
class rti::flat::PrimitiveSequenceOffset< T >

Offset to a sequence of primitive elements.

Template Parameters
TThe primitive type

Member Function Documentation

◆ element_count()

template<typename T >
unsigned int rti::flat::PrimitiveSequenceOffset< T >::element_count ( ) const
inline

Returns the number of elements.

Referenced by rti::flat::StringOffset::element_count().