CoreDX DDS C# Reference Manual
Public Member Functions | List of all members
LoanedSamples< T > Class Template Reference

Inherits IDisposable.

Public Member Functions

int length ()
 
int size ()
 
void return_loan ()
 
void release (out DataReader reader, out List< T > data_seq, out List< SampleInfo > info_seq)
 

Detailed Description

Holds a collection of sample data and related meta-data.

The LoanedSamples object holds the loaned data and meta-data returned from a DataReader::read() operation. The object manages the 'loan' by automatically calling return_loan() on the source DataReader when the object is destroyed.

Type Constraints
T :DdsType 

Member Function Documentation

int length ( )
inline

Access the length of the contained data sequence.

void release ( out DataReader  reader,
out List< T >  data_seq,
out List< SampleInfo info_seq 
)
inline

Transfers the loan to the caller.

The LoanedSamples instance will no longer manage the loaned data. The caller is responsible for ensuring DataReader::return_loan() is invoked as required.

void return_loan ( )
inline

Return the loaned data to the originating DataReader.

After this call, the LoanedSamples object no longer manages the data or sample info sequences.

int size ( )
inline

Access the length of the contained data sequence.


© 2009-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.