|
RTI Connext Modern C++ API Version 7.6.0
|
Encapsulates a sample and its associated instance handle. More...
#include <TopicInstance.hpp>
Public Member Functions | |
| TopicInstance () | |
| Create a null TopicInstance. More... | |
| TopicInstance (const ::dds::core::InstanceHandle &the_handle) | |
| Create a TopicInstance with an InstanceHandle. More... | |
| TopicInstance (const ::dds::core::InstanceHandle &the_handle, const T &the_sample) | |
| Create a TopicInstance with a data sample and an InstanceHandle. More... | |
| operator dds::core::InstanceHandle () const | |
| Obtains the InstanceHandle. More... | |
| dds::core::InstanceHandle | handle () const |
| Obtains the InstahnceHandle. More... | |
| void | handle (const ::dds::core::InstanceHandle &the_handle) |
| Sets the InstanceHandle. More... | |
| const T & | sample () const |
| Gets the sample by const reference. More... | |
| T & | sample () |
| Gets the sample by reference. More... | |
| void | sample (const T &the_sample) |
| Assigns the data sample. More... | |
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.
References dds::topic::TopicInstance< T >::handle().
|
inline |
Obtains the InstahnceHandle.
Referenced by dds::topic::TopicInstance< T >::operator dds::core::InstanceHandle().
|
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 |