RTI Connext .Net APIs
Version 5.3.1
|
Provides access to a collection of middleware-loaned samples. More...
Inherits AlreadyDisposedHelper< LoanedSamples< T >>, ICollection< Sample< T >>, and IDisposable.
Public Member Functions | |
IEnumerator< Sample< T > > | GetEnumerator () |
void | Add (Sample< T > item) |
void | Dispose () |
Returns the loaned samples to the middleware. More... | |
void | Clear () |
bool | Contains (Sample< T > item) |
void | CopyTo (Sample< T >[] array, int arrayIndex) |
bool | Remove (Sample< T > item) |
Properties | |
bool | IsReadOnly [get] |
int | Count [get] |
Returns the number of samples. More... | |
Sample< T > | this[int i] [get] |
Provides access to a collection of middleware-loaned samples.
The samples in this container are loaned from the middleware and must be returned at some point.
To return the loan, use RTI::Connext::Infrastructure::LoanedSamples<T>::Dispose , from System.IDisposable
or enclose this object within a using
block.
The contents of this container should not be modified and references to the samples it contains are only valid before the loan is returned.
This class implements ICollection<Sample<T>>
. It can be traversed using a foreach
block.
As a read-only collection, any operations that modify it are not supported and throw System.InvalidOperationException
.
T | The data type of the contained Samples |
T | : | class | |
T | : | global | |
T | : | DDS.ICopyable<T> | |
T | : | new() |
|
inline |
From ICollection<Sample<T>>
Referenced by RTI.Connext.Infrastructure.LoanedSamples< T >.Remove().
|
inline |
System.InvalidOperationException | always |
|
inline |
Returns the loaned samples to the middleware.
After calling this operation this object cannot be accessed again.
Referenced by RTI.Connext.Infrastructure.LoanedSamples< T >.Add(), and RTI.Connext.Infrastructure.LoanedSamples< T >.Remove().
|
inline |
System.InvalidOperationException | always |
|
inline |
From ICollection<Sample<T>>
|
inline |
From ICollection<Sample<T>>
|
inline |
System.InvalidOperationException | always |
|
get |
|
get |
Returns the number of samples.
|
get |
From ICollection<Sample<T>>