RTI Connext Traditional C++ API
Version 5.3.1
|
A data sample and related info received from the middleware. More...
Inherits connext::details::SampleBase< T, I >.
Public Member Functions | |
Sample () | |
Creates a sample with default data and info values. | |
Sample (const Sample< T > &other) | |
Creates a sample making a deep copy of another sample. | |
Sample (SampleRef< T > sample_ref) | |
Creates a sample as a deep copy of the contents referenced by a WriteSampleRef. | |
SampleIdentity_t | identity () const |
Gets the identity of this sample. | |
SampleIdentity_t | related_identity () const |
Gets the identity of a sample that is related to this one. | |
T & | data () |
Gets the data this sample contains. | |
SampleInfo & | info () |
Gets the sample information. | |
const T & | data () |
Gets the data this sample contains. | |
const SampleInfo & | info () |
Gets the sample information. | |
A data sample and related info received from the middleware.
Samples contain data received from the middleware and information associated to the data.
T | The data type that this sample contains |
|
inline |
Creates a sample with default data and info values.
The data is deeply initialized using the corresponding TypeSupport
|
inline |
Creates a sample making a deep copy of another sample.
Creates a sample as a deep copy of the contents referenced by a WriteSampleRef.
|
inline |
Gets the identity of this sample.
The identity is assigned by the middleware upon reception.
|
inline |
Gets the identity of a sample that is related to this one.
When a connext::Requester receives a reply, the reply Sample contains the identity of the related request.
T& connext::Sample< T >::data | ( | ) |
Gets the data this sample contains.
SampleInfo& connext::Sample< T >::info | ( | ) |
Gets the sample information.
const T& connext::Sample< T >::data | ( | ) |
Gets the data this sample contains.
const SampleInfo& connext::Sample< T >::info | ( | ) |
Gets the sample information.