RTI Connext DDS Micro  Version 2.4.6
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
FooSeq Struct Reference

<<interface>> <<generic>> <<cert>> A type-safe, ordered collection of elements. The type of these elements is referred to in this documentation as "Foo". More...

#include <dds_c_sequence.h>

Data Fields

Foo * _contiguous_buffer
 Pointer to array of contiguous or discontiguous data. More...
 
DDS_UnsignedLong _maximum
 Maximum size of the sequence. More...
 
DDS_UnsignedLong _length
 Actual length of the sequence that contains data. More...
 
DDS_Long _element_size
 Size of data element in the sequence. More...
 
DDS_Char _flags
 Internal-use flags. More...
 

Detailed Description

<<interface>> <<generic>> <<cert>> A type-safe, ordered collection of elements. The type of these elements is referred to in this documentation as "Foo".

defined by the standard OMG IDL to C++ mapping for sequences.We refer to an IDL sequence<Foo> as FooSeq. The state of a sequence is described by the properties 'maximum', and 'length'.

  • The 'maximum' represents the size of the underlying buffer; this is the maximum number of elements it can possibly hold. It is returned by the FooSeq_get_maximum operation.
  • The 'length' represents the actual number of elements it currently holds. It is returned by the FooSeq_get_length operation.

Field Documentation

Foo* FooSeq::_contiguous_buffer

Pointer to array of contiguous or discontiguous data.

DDS_UnsignedLong FooSeq::_maximum

Maximum size of the sequence.

The allocated length of this sequence. It applies to whichever of the above buffers is non-NULL, if any. If both a NULL, its value must be 0.

If _maximum == 0, _owned == true.

DDS_UnsignedLong FooSeq::_length

Actual length of the sequence that contains data.

The current logical length of this seqeunce, i.e. the number of valid elements it contains. It applies to whichever of the above buffers is non-null, if any. If both are NULL, its value must be 0.

DDS_Long FooSeq::_element_size

Size of data element in the sequence.

Each element in the sequence has this size.

DDS_Char FooSeq::_flags

Internal-use flags.

Reserved for internal-use.


RTI Connext DDS Micro Version 2.4.6 Copyright © Mon Jan 25 2016 Real-Time Innovations, Inc