RTI Connext Modern C++ API
Version 5.3.0
|
<<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 with invalid data. | |
Sample (const T &the_data, const SampleInfo &the_info) | |
Create a Sample with the provided data and SampleInfo. | |
Sample (const rti::sub::LoanedSample< T > &sample_ref) | |
<<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 > &sample_ref) |
<<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 |
Create a sample with invalid data.
|
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
|
inline |
Copy Constructor.
|
inline |
Get the data of type T associated with this Sample.
|
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.