RTI Connext C++ API
Version 5.1.0
|
A reference to a data sample for writing. More...
Public Member Functions | |
WriteSampleRef () | |
Creates an object with no data. | |
WriteSampleRef (T &data, WriteParams_t &wparams) | |
Creates an object with a reference to a data object. | |
WriteSampleRef (WriteSample< T > &ws) | |
Copies the references to data and params. | |
T & | data () const |
Gets the data this sample contains. | |
WriteParams_t & | info () const |
Gets the write parameters. | |
void | set_data (T &data) |
Sets a reference to the data to be written. | |
void | set_info (WriteParams_t &info) |
Copies the new parameters, overwriting the existing ones. | |
bool | is_nil_data () const |
Indicates if this WriteSampleRef contains a reference to data or not. | |
SampleIdentity_t | identity () const |
Gets the identity of this sample. | |
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.
|
inline |
Gets the write parameters.
|
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 |
|
inline |
Copies the new parameters, overwriting the existing ones.
|
inline |
Indicates if this WriteSampleRef contains a reference to data or not.
|
inline |
Gets the identity of this sample.