RTI Connext Modern C++ API
Version 6.0.1
|
<<value-type>> This class encapsulate the data and meta-data associated with DDS samples. More...
#include "dds/sub/Sample.hpp"
Public Member Functions | |
Sample () | |
Create a sample. | |
Sample (const T &the_data, const SampleInfo &the_info) | |
Create a Sample with the provided data and SampleInfo. | |
Sample (const rti::sub::LoanedSample< T > &loaned_sample) | |
<<extension>> Construct a Sample from a LoanedSample | |
Sample (const Sample &other) | |
Copy Constructor. | |
const DataType & | data () const |
Get the data of type T associated with this Sample. | |
void | data (const DataType &the_data) |
Set the data of type T associated with this Sample. | |
const SampleInfo & | info () const |
Get the SampleInfo associated with this Sample. | |
void | info (const SampleInfo &the_info) |
Set the SampleInfo associated with this Sample. | |
Sample & | operator= (const rti::sub::LoanedSample< T > &loaned_sample) |
<<extension>> Assignment operator from an rti::sub::LoanedSample | |
<<value-type>> This class encapsulate the data and meta-data associated with DDS samples.
The | type of the data that Sample represents |
|
inline |
|
inline |
Create a Sample with the provided data and SampleInfo.
the_data | The data to create the Sample with |
the_info | The SampleInfo to create the Sample with |
|
inlineexplicit |
<<extension>> Construct a Sample from a LoanedSample
If loaned_sample.info()
.valid() is false, this sample's data value is default-constructed.
|
inline |
Copy Constructor.
|
inline |
|
inline |
Set the data of type T associated with this Sample.
|
inline |
Get the SampleInfo associated with this Sample.
|
inline |
Set the SampleInfo associated with this Sample.
|
inline |
<<extension>> Assignment operator from an rti::sub::LoanedSample
This operator allows obtaining a copy of both the data and the info from a LoanedSample.