RTI Connext Modern C++ API
Version 6.1.1
|
<<extension>> <<C++11>> <<move-only-type>> Provides access to only those samples that contain valid data More...
#include <LoanedSamplesImpl.hpp>
Public Types | |
typedef ValidSampleIterator< T > | iterator |
The iterator type that ValidLoanedSamples provides. More... | |
typedef ValidSampleIterator< T > | const_iterator |
The const-iterator type that ValidLoanedSamples provides. More... | |
typedef ValidSampleIterator< T >::value_type | value_type |
This collection's value type, LoanedSample<T> More... | |
Public Member Functions | |
ValidLoanedSamples (LoanedSamples< T > &&loaned_samples) | |
Constructor from an rvalue LoanedSamples. More... | |
ValidLoanedSamples (ValidLoanedSamples< T > &&other) | |
Move constructor. More... | |
iterator | begin () |
Returns a forward iterator to the first valid-data sample. More... | |
const_iterator | begin () const |
Returns a forward const iterator to the first valid-data sample. More... | |
iterator | end () |
Returns a forward iterator that indicates the end of the collection. More... | |
const_iterator | end () const |
Returns a forward const iterator that indicates the end of the collection. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
ValidLoanedSamples< T >::iterator | begin (ValidLoanedSamples< T > &ls) |
template<typename T > | |
ValidLoanedSamples< T >::const_iterator | begin (const ValidLoanedSamples< T > &ls) |
template<typename T > | |
ValidLoanedSamples< T >::iterator | end (ValidLoanedSamples< T > &ls) |
template<typename T > | |
ValidLoanedSamples< T >::const_iterator | end (const ValidLoanedSamples< T > &ls) |
template<typename T > | |
void | swap (ValidLoanedSamples< T > &ls1, ValidLoanedSamples< T > &ls2) throw() |
<<extension>> <<C++11>> <<move-only-type>> Provides access to only those samples that contain valid data
T | The topic-type. It has to match the type of the DataReader. |
An instance of ValidLoanedSamples is a wrapper that takes an existing LoanedSamples and provides forward iterators that only access samples with valid data.
The typical way to use this collection is through the function rti::sub::valid_data, which transforms a dds::sub::LoanedSamples into a ValidLoanedSamples.
For more information and a code example, see rti::sub::valid_data(LoanedSamples<T>&&)
typedef ValidSampleIterator<T> rti::sub::ValidLoanedSamples< T >::iterator |
The iterator type that ValidLoanedSamples provides.
typedef ValidSampleIterator<T> rti::sub::ValidLoanedSamples< T >::const_iterator |
The const-iterator type that ValidLoanedSamples provides.
typedef ValidSampleIterator<T>::value_type rti::sub::ValidLoanedSamples< T >::value_type |
This collection's value type, LoanedSample<T>
|
inline |
Constructor from an rvalue LoanedSamples.
The only way to create a ValidLoanedSamples is through moving an existing LoanedSamples.
|
inline |
Move constructor.
A ValidLoanedSamples, just like LoanedSamples can be moved but not copied.
|
inline |
Returns a forward iterator to the first valid-data sample.
Referenced by rti::sub::begin().
|
inline |
Returns a forward const iterator to the first valid-data sample.
|
inline |
Returns a forward iterator that indicates the end of the collection.
Referenced by rti::sub::end().
|
inline |
Returns a forward const iterator that indicates the end of the collection.
|
related |
|
related |
|
related |
|
related |
|
related |