Inherits AlreadyDisposedHelper< LoanedSamples< T >>, ICollection< Sample< T >>, and IDisposable.
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.
- Warning
- This type will be deprecated in a future release and replaced with DDS.Ext.LoanedSamples (which will become DDS.LoanedSamples)
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
.
- Template Parameters
-
T | The data type of the contained Samples |
- See also
- RTI::Connext::RequestReply::Requester<TReq,TRep>::TakeReplies(int)
-
RTI::Connext::RequestReply::Replier<TReq,TRep>::TakeRequests(int)
-
Taking loaned samples
-
Taking samples by copy