RTI Connext Traditional C++ API  Version 6.0.0
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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.
 
- 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>
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

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

Gets the value of this primitive member.

Precondition
!is_null()

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