RTI Connext Modern C++ API  Version 6.0.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rti::flat::PrimitiveArrayOffset< T, N > Class Template Reference

Offset to an array of primitive elements. More...

#include <SequenceOffsets.hpp>

Inheritance diagram for rti::flat::PrimitiveArrayOffset< T, N >:
rti::flat::AbstractPrimitiveList< T > rti::flat::OffsetBase

Public Member Functions

unsigned int element_count () const
 Returns the number of elements, N.
- Public Member Functions inherited from rti::flat::AbstractPrimitiveList< T >
get_element (unsigned int i) const
 Returns an element by index.
bool set_element (unsigned int i, T value)
 Sets an element by index.
- Public Member Functions inherited from rti::flat::OffsetBase
bool is_null () const
 Indicates whether this Offset doesn't point to a valid element.
bool is_cpp_compatible () const
 Indicates whether rti::flat::plain_cast() is possible.
const unsigned char * get_buffer () const
 Gets this member's position in the buffer.
offset_t get_buffer_size () const
 Gets the size, in bytes, of this member in the buffer.

Detailed Description

template<typename T, unsigned int N>
class rti::flat::PrimitiveArrayOffset< T, N >

Offset to an array of primitive elements.

Template Parameters
TThe primitive type
NThe array bound. For multidimensional arrays, N is the product of each dimension bound.

A PrimitiveArrayOffset may meet the requirements to be cast to an array of the equivalent plain C++ element type (see rti::flat::plain_cast()).

Member Function Documentation

template<typename T , unsigned int N>
unsigned int rti::flat::PrimitiveArrayOffset< T, N >::element_count ( ) const

Returns the number of elements, N.

RTI Connext Modern C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc