CoreDX DDS Modern C++ API
Public Member Functions | List of all members
dds::sub::LoanedSamples< T, DELEGATE > Class Template Reference

This class encapsulate and automates the management of loaned samples. More...

Public Member Functions

 ~LoanedSamples ()
 Implicitly return the loan.
 
 LoanedSamples (const LoanedSamples &other)
 Copies a LoanedSamples instance. More...
 
const_iterator begin () const
 returns an iterator to the beginning
 
const_iterator end () const
 returns an iterator to the end
 
const DELEGATE_REF_T & delegate () const
 Obtain a const ref to the delegate that implements the API.
 
DELEGATE_REF_T & delegate ()
 Access the delegate that implements the API.
 
uint32_t length () const
 returns the number of elements
 
DELEGATE< T >::Sample operator[] (size_t index)
 access the specified element
 
void return_loan ()
 return the samples to the DataReader owner
 

Detailed Description

template<typename T, template< typename Q > class DELEGATE>
class dds::sub::LoanedSamples< T, DELEGATE >

This class encapsulate and automates the management of loaned samples.

Constructor & Destructor Documentation

◆ LoanedSamples()

template<typename T , template< typename Q > class DELEGATE>
dds::sub::LoanedSamples< T, DELEGATE >::LoanedSamples ( const LoanedSamples< T, DELEGATE > &  other)

Copies a LoanedSamples instance.

No actual data samples are copied.
Just references and reference counts are updated.


© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.