RTI Connext Modern C++ API  Version 6.0.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MyFlatMutableOffset Class Reference

Represents the Offset to an arbitrary user-defined FlatData mutable IDL struct. More...

#include <Offset.hpp>

Inheritance diagram for MyFlatMutableOffset:
rti::flat::MutableOffset rti::flat::OffsetBase

Public Types

typedef MyFlatMutableConstOffset ConstOffset
 The equivalent read-only Offset type.
 

Public Member Functions

 MyFlatMutableOffset ()
 Creates a null Offset.
 
int32_t my_primitive () const
 Retrieves the value for a primitive member.
 
rti::flat::PrimitiveConstOffset
< int32_t > 
my_optional_primitive () const
 Retrieves a const Offset to an optional primitive.
 
const
rti::flat::PrimitiveArrayOffset
< int32_t, 10 > 
my_primitive_array () const
 Retrieves a const Offset to a primitive array.
 
const
rti::flat::PrimitiveSequenceOffset
< int32_t > 
my_primitive_seq () const
 Retrieves a const Offset to a primitive sequence.
 
MyFlatFinal::ConstOffset my_final () const
 Retrieves a const Offset to a complex member.
 
rti::flat::FinalAlignedArrayOffset
< MyFlatFinal::ConstOffset, 10 > 
my_final_array () const
 Retrieves a const Offset to a complex array.
 
rti::flat::SequenceOffset
< MyFlatFinal::ConstOffset
my_final_seq () const
 Retrieves a const Offset to a complex sequence.
 
FlatMutableBar::ConstOffset my_mutable () const
 Retrieves a const Offset to a complex member.
 
rti::flat::MutableArrayOffset
< FlatMutableBar::ConstOffset, 10 > 
my_mutable_array () const
 Retrieves a const Offset to a complex array.
 
rti::flat::SequenceOffset
< FlatMutableBar::ConstOffset > 
my_mutable_seq () const
 Retrieves a const Offset to a complex sequence.
 
const rti::flat::StringOffset my_string () const
 Retrieves a const Offset to a string.
 
rti::flat::SequenceOffset
< const
rti::flat::StringOffset
my_string_seq () const
 Retrieves a const Offset to a sequence of strings.
 
bool my_primitive (int32_t value)
 Sets the value of a primitive member.
 
rti::flat::PrimitiveArrayOffset
< int32_t, 10 > 
my_primitive_array ()
 Retrieves a non-const Offset to a primitive array.
 
rti::flat::PrimitiveSequenceOffset
< int32_t > 
my_primitive_seq ()
 Retrieves a non-const Offset to a primitive sequence.
 
MyFlatFinal::Offset my_final ()
 Retrieves a non-const Offset to a complex member.
 
rti::flat::FinalAlignedArrayOffset
< MyFlatFinal::Offset, 10 > 
my_final_array ()
 Retrieves a non-const Offset to a complex array.
 
rti::flat::SequenceOffset
< MyFlatFinal::Offset
my_final_seq ()
 Retrieves a non-const Offset to a complex sequence.
 
FlatMutableBar::Offset my_mutable ()
 Retrieves a non-const Offset to a complex member.
 
rti::flat::MutableArrayOffset
< FlatMutableBar::Offset, 10 > 
my_mutable_array ()
 Retrieves a non-const Offset to a complex array.
 
rti::flat::SequenceOffset
< FlatMutableBar::Offset > 
my_mutable_seq ()
 Retrieves a non-const Offset to a complex sequence.
 
rti::flat::StringOffset my_string ()
 Retrieves a non-const Offset to a string.
 
rti::flat::SequenceOffset
< rti::flat::StringOffset
my_string_seq ()
 Retrieves a non-const Offset to a sequence of strings.
 

Detailed Description

Represents the Offset to an arbitrary user-defined FlatData mutable IDL struct.

This example type represents the Offset type that rtiddsgen would generate for MyFlatMutable.

It provides accessors for each of its members. Accessors can return other Offsets or primitive values.

Member Typedef Documentation

typedef MyFlatMutableConstOffset MyFlatMutableOffset::ConstOffset

The equivalent read-only Offset type.

Each Offset for a user type has an equivalent const Offset that doesn't allow modifying the underlying Sample. For example, when reading data from a dds::sub::DataReader, a const Sample's Sample::root() function returns a const Offset.

Constructor & Destructor Documentation

MyFlatMutableOffset::MyFlatMutableOffset ( )
inline

Creates a null Offset.

Postcondition
is_null()

Member Function Documentation

int32_t MyFlatMutableOffset::my_primitive ( ) const

Retrieves the value for a primitive member.

Returns
The value of the member or its default value if this member doesn't exist in this Sample.
rti::flat::PrimitiveConstOffset<int32_t> MyFlatMutableOffset::my_optional_primitive ( ) const

Retrieves a const Offset to an optional primitive.

Unlike the non-optional my_primitive(), which accesses the integer directly, for an optional primitive it is possible to check whether it exists or not. If it doesn't exist, the Offset this function returns will be null (is_null()).

const rti::flat::PrimitiveArrayOffset<int32_t, 10> MyFlatMutableOffset::my_primitive_array ( ) const

Retrieves a const Offset to a primitive array.

const rti::flat::PrimitiveSequenceOffset<int32_t> MyFlatMutableOffset::my_primitive_seq ( ) const

Retrieves a const Offset to a primitive sequence.

MyFlatFinal::ConstOffset MyFlatMutableOffset::my_final ( ) const

Retrieves a const Offset to a complex member.

rti::flat::FinalAlignedArrayOffset<MyFlatFinal::ConstOffset, 10> MyFlatMutableOffset::my_final_array ( ) const

Retrieves a const Offset to a complex array.

rti::flat::SequenceOffset<MyFlatFinal::ConstOffset> MyFlatMutableOffset::my_final_seq ( ) const

Retrieves a const Offset to a complex sequence.

FlatMutableBar::ConstOffset MyFlatMutableOffset::my_mutable ( ) const

Retrieves a const Offset to a complex member.

FlatMutableBar is another arbitrary user-defined mutable FlatData type.

rti::flat::MutableArrayOffset<FlatMutableBar::ConstOffset, 10> MyFlatMutableOffset::my_mutable_array ( ) const

Retrieves a const Offset to a complex array.

rti::flat::SequenceOffset<FlatMutableBar::ConstOffset> MyFlatMutableOffset::my_mutable_seq ( ) const

Retrieves a const Offset to a complex sequence.

const rti::flat::StringOffset MyFlatMutableOffset::my_string ( ) const

Retrieves a const Offset to a string.

rti::flat::SequenceOffset<const rti::flat::StringOffset> MyFlatMutableOffset::my_string_seq ( ) const

Retrieves a const Offset to a sequence of strings.

bool MyFlatMutableOffset::my_primitive ( int32_t  value)

Sets the value of a primitive member.

rti::flat::PrimitiveArrayOffset<int32_t, 10> MyFlatMutableOffset::my_primitive_array ( )

Retrieves a non-const Offset to a primitive array.

rti::flat::PrimitiveSequenceOffset<int32_t> MyFlatMutableOffset::my_primitive_seq ( )

Retrieves a non-const Offset to a primitive sequence.

MyFlatFinal::Offset MyFlatMutableOffset::my_final ( )

Retrieves a non-const Offset to a complex member.

rti::flat::FinalAlignedArrayOffset<MyFlatFinal::Offset, 10> MyFlatMutableOffset::my_final_array ( )

Retrieves a non-const Offset to a complex array.

rti::flat::SequenceOffset<MyFlatFinal::Offset> MyFlatMutableOffset::my_final_seq ( )

Retrieves a non-const Offset to a complex sequence.

FlatMutableBar::Offset MyFlatMutableOffset::my_mutable ( )

Retrieves a non-const Offset to a complex member.

FlatMutableBar is another arbitrary user-defined mutable FlatData type.

rti::flat::MutableArrayOffset<FlatMutableBar::Offset, 10> MyFlatMutableOffset::my_mutable_array ( )

Retrieves a non-const Offset to a complex array.

rti::flat::SequenceOffset<FlatMutableBar::Offset> MyFlatMutableOffset::my_mutable_seq ( )

Retrieves a non-const Offset to a complex sequence.

rti::flat::StringOffset MyFlatMutableOffset::my_string ( )

Retrieves a non-const Offset to a string.

rti::flat::SequenceOffset<rti::flat::StringOffset> MyFlatMutableOffset::my_string_seq ( )

Retrieves a non-const Offset to a sequence of strings.


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