RTI Connext Modern C++ API
Version 5.3.1
|
<<reference-type>> A sharable and container-safe version of LoanedSamples. More...
#include <dds/sub/SharedSamples.hpp>
Public Member Functions | |
SharedSamples (dds::sub::LoanedSamples< T > &ls) | |
Constructs and instance of SharedSamples removing the ownership of the loan from the LoanedSamples. | |
const_iterator | begin () const |
Same as LoanedSamples::begin() | |
const_iterator | end () const |
Same as LoanedSamples::end() | |
DELEGATE< T >::value_type | operator[] (size_t index) const |
Same as LoanedSamples::operator[](size_t) | |
uint32_t | length () const |
Returns the number of samples. | |
<<reference-type>> A sharable and container-safe version of LoanedSamples.
A SharedSamples instance is constructed from a LoanedSamples instance, removing the ownership of the loan from the LoanedSamples.
The destruction of the LoanedSamples object or the explicit invocation of its method return_loan will have no effect on loaned data.
Constructing a SharedSamples from another SharedSamples, creates a new reference to the same loan. Loaned data will be returned automatically to the DataReader once the reference count reaches zero.
|
inline |
Constructs and instance of SharedSamples removing the ownership of the loan from the LoanedSamples.
The constructor is implicit to simplify statements like the following:
ls | the loaned samples. |
|
inline |
Same as LoanedSamples::begin()
|
inline |
Same as LoanedSamples::end()
|
inline |
|
inline |
Returns the number of samples.