|
RTI Connext .Net APIs
Version 5.2.0
|
<<interface>> <<generic>> A type-safe, ordered collection of elements. The type of these elements is referred to in this documentation as Foo.
More...
#include <managed_sequence.h>
Public Member Functions | |
| FooSeq () | |
| Create a sequence with a maximum of 0. | |
| FooSeq (System::Int32 new_max) | |
| Create a sequence with the given maximum. | |
| FooSeq (FooSeq^ src) | |
| Create a sequence by copying from an existing sequence. | |
Public Member Functions inherited from DDS::LoanableSequence< E > | |
| virtual E | get_at (System::Int32 i) overridesealed |
Get the i-th element for a const sequence. | |
| virtual System::Boolean | copy_from_no_alloc (Sequence< E >^src) overridesealed |
| Copy elements from another sequence, only if the destination sequence has enough capacity. | |
| virtual void | unloan () overridesealed |
| Return the loaned buffer in the sequence and set the maximum to 0. | |
Public Member Functions inherited from DDS::Sequence< E > | |
| System::Boolean | ensure_length (System::Int32 length, System::Int32 max) |
| Set the sequence to the desired length, and resize the sequence if necessary. | |
| virtual void | set_at (System::Int32 i, Eval) |
Set the i-th element of the sequence. | |
| void | loan (array< E >^buffer, System::Int32 new_length) |
| Loan a contiguous buffer to this sequence. | |
| void | from_array (array< E >^arr) |
| Copy elements from an array of elements, resizing the sequence if necessary. The original contents of the sequence (if any) are replaced. | |
| void | to_array (array< E >^arr) |
| Copy elements to an array of elements. The original contents of the array (if any) are replaced. | |
| System::Boolean | copy_from (Sequence< E >^src_seq) |
| Copy elements from another sequence, resizing the sequence if necessary. | |
Additional Inherited Members | |
Properties inherited from DDS::Sequence< E > | |
| System::Int32 | length [get, set] |
| The logical length of this sequence. | |
| virtual System::Int32 | maximum [get, set] |
| The current maximum number of elements that can be stored in this sequence. | |
| array< E >^ | buffer [get] |
| Return the contiguous buffer of the sequence. | |
| System::Boolean | has_ownership [get] |
| Return the value of the owned flag. | |
<<interface>> <<generic>> A type-safe, ordered collection of elements. The type of these elements is referred to in this documentation as Foo.
For users who define data types in OMG IDL, this type corresponds to the IDL express sequence <Foo>.
For any user-data type Foo that an application defines for the purpose of data-distribution with RTI Connext, a FooSeq is generated. We refer to an IDL sequence <Foo> asFooSeq.
The state of a sequence is described by the properties 'maximum', 'length' and 'owned'.
If owned == true, the sequence has ownership on the buffer. It is then responsible for destroying the buffer when the sequence is destroyed.
If the owned == false, the sequence does not have ownership on the buffer. This implies that the sequence is loaning the buffer. The sequence cannot be destroyed until the loan is returned.
| FooSeq::FooSeq | ( | ) |
Create a sequence with a maximum of 0.
This is a constructor for the sequence. The constructor will allocate no memory.
This constructor will be used when the application creates a sequence using one of the following:
In C#:
In C++/CLI:
| FooSeq::FooSeq | ( | System::Int32 | new_max | ) |
Create a sequence with the given maximum.
This is a constructor for the sequence. The constructor will automatically allocate memory to hold new_max elements of type Foo.
This constructor will be used when the application creates a sequence using one of the following:
In C#:
In C++/CLI:
| new_max | Must be >= 0. Otherwise the sequence will be initialized to a new_max=0. |
| FooSeq::FooSeq | ( | FooSeq^ | src | ) |
Create a sequence by copying from an existing sequence.
This is a constructor for the sequence. The constructor will automatically allocate memory to hold foo_seq::maximum() elements of type Foo and will copy the current contents of foo_seq into the new sequence.
This constructor will be used when the application creates a sequence using one of the following:
In C#:
In C++/CLI: