RTI Connext Modern C++ API  Version 6.1.0
rti::flat::PrimitiveConstOffset< T > Struct Template Reference

A const Offset to an optional primitive member. More...

#include <Offset.hpp>

Inheritance diagram for rti::flat::PrimitiveConstOffset< T >:
rti::flat::OffsetBase rti::flat::PrimitiveOffset< T >

Public Member Functions

get () const
 Gets the value of this primitive member. 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>
struct rti::flat::PrimitiveConstOffset< T >

A const Offset to an optional primitive member.

Read-only version of PrimitiveOffset.

If !is_null(), the value can be retrieved with get().

Member Function Documentation

◆ get()

template<typename T>
T rti::flat::PrimitiveConstOffset< T >::get ( ) const
inline

Gets the value of this primitive member.

Precondition
!is_null()