RTI Connext Modern C++ API
Version 6.0.1
|
Encapsulates a sample and its associated instance handle. More...
#include <TopicInstance.hpp>
Public Member Functions | |
TopicInstance () | |
Create a null TopicInstance. | |
TopicInstance (const ::dds::core::InstanceHandle &the_handle) | |
Create a TopicInstance with an InstanceHandle. | |
TopicInstance (const ::dds::core::InstanceHandle &the_handle, const T &the_sample) | |
Create a TopicInstance with a data sample and an InstanceHandle. | |
operator dds::core::InstanceHandle () const | |
Obtains the InstanceHandle. | |
dds::core::InstanceHandle | handle () const |
Obtains the InstahnceHandle. | |
void | handle (const ::dds::core::InstanceHandle &the_handle) |
Sets the InstanceHandle. | |
const T & | sample () const |
Gets the sample by const reference. | |
T & | sample () |
Gets the sample by reference. | |
void | sample (const T &the_sample) |
Assigns the data sample. | |
Encapsulates a sample and its associated instance handle.
The | type of the sample that the TopicInstance is encapsulating. |
|
inline |
Create a null TopicInstance.
The sample is default constructed and the instance handle is equal to dds::core::null.
|
inline |
Create a TopicInstance with an InstanceHandle.
The sample is default constructed and the instance handle is copied from handle
.
|
inline |
Create a TopicInstance with a data sample and an InstanceHandle.
|
inline |
Obtains the InstanceHandle.
|
inline |
Obtains the InstahnceHandle.
|
inline |
Sets the InstanceHandle.
|
inline |
Gets the sample by const reference.
|
inline |
Gets the sample by reference.
|
inline |
Assigns the data sample.
the_sample | The data sample to copy into this TopicInstance |