RTI Connext Traditional C++ API Version 7.1.0
|
A reference to a data sample for writing. More...
Public Member Functions | |
WriteSampleRef () | |
Creates an object with no data. More... | |
WriteSampleRef (T &data, WriteParams_t &wparams) | |
Creates an object with a reference to a data object. More... | |
WriteSampleRef (WriteSample< T > &ws) | |
Copies the references to data and params. More... | |
T & | data () const |
Gets the data this sample contains. More... | |
WriteParams_t & | info () const |
Gets the write parameters. More... | |
void | set_data (T &data) |
Sets a reference to the data to be written. More... | |
void | set_info (WriteParams_t &info) |
Copies the new parameters, overwriting the existing ones More... | |
bool | is_nil_data () const |
Indicates if this WriteSampleRef contains a reference to data or not. More... | |
SampleIdentity_t | identity () const |
Gets the identity of this sample. More... | |
A reference to a data sample for writing.
A WriteSampleRef can be used much like a connext::WriteSample, but it's different in that it holds references to data and write parameters, which need to be explicitly set to existing objects, whereas WriteSample is a value type and it owns its data and info.
T | The data type that this sample can contain |
|
inline |
Creates an object with no data.
|
inline |
Creates an object with a reference to a data object.
|
inline |
Copies the references to data and params.
After this operation, this object contains a reference to the same data and WriteParams instances as the source.
|
inline |
Gets the data this sample contains.
Referenced by connext::WriteSampleRef< T >::set_data().
|
inline |
Gets the write parameters.
Referenced by connext::WriteSampleRef< T >::identity(), and connext::WriteSampleRef< T >::set_info().
|
inline |
Sets a reference to the data to be written.
Assigns a reference to the
data | The data this sample will hold a reference to |
References connext::WriteSampleRef< T >::data().
|
inline |
Copies the new parameters, overwriting the existing ones
References connext::WriteSampleRef< T >::info().
|
inline |
Indicates if this WriteSampleRef contains a reference to data or not.
|
inline |
Gets the identity of this sample.
References DDS_WriteParams_t::identity, and connext::WriteSampleRef< T >::info().