RTI Connext Modern C++ API
Version 7.0.0
|
The DataState class describes the state of a sample and includes the information about the sample's InstanceState, ViewState, and SampleState. More...
#include <dds/sub/status/DataState.hpp>
Public Member Functions | |
DataState () | |
Create a DataState with InstanceState::any(), ViewState::any(), and SampleState::any() More... | |
DataState (const SampleState &the_sample_state) | |
Create a DataState with InstanceState::any(), ViewState::any(), and the provided SampleState. More... | |
DataState (const ViewState &the_view_state) | |
Create a DataState with InstanceState::any(), SampleState::any(), and the provided ViewState. More... | |
DataState (const InstanceState &the_instance_state) | |
Create a DataState with SampleState::any(), ViewState::any(), and the provided InstanceState. More... | |
DataState (const SampleState &the_sample_state, const ViewState &the_view_state, const InstanceState &the_instance_state) | |
Create a DataState with the provided SampleState, ViewState, and InstanceState. More... | |
bool | operator== (const DataState &other) const |
Compare two DataState objects for equality. More... | |
bool | operator!= (const DataState &other) const |
Compare two DataState objects for inequality. More... | |
DataState & | operator<< (const SampleState &the_sample_state) |
Set the provided SampleState in a DataState object. More... | |
DataState & | operator<< (const InstanceState &the_instance_state) |
Set the provided InstanceState in a DataState object. More... | |
DataState & | operator<< (const ViewState &the_view_state) |
Set the provided ViewState in a DataState object. More... | |
const DataState & | operator>> (SampleState &the_sample_state) const |
Get the SampleState from a DataState object. More... | |
const DataState & | operator>> (InstanceState &the_instance_state) const |
Get the InstanceState from a DataState object. More... | |
const DataState & | operator>> (ViewState &the_view_state) const |
Get the ViewState from a DataState object. More... | |
const SampleState & | sample_state () const |
Get the SampleState from a DataState object. More... | |
void | sample_state (const SampleState &the_sample_state) |
Set the provided SampleState in a DataState object. More... | |
const InstanceState & | instance_state () const |
Get the InstanceState from a DataState object. More... | |
void | instance_state (const InstanceState &the_instance_state) |
Set the provided InstanceState in a DataState object. More... | |
const ViewState & | view_state () const |
Get the ViewState from a DataState object. More... | |
void | view_state (const ViewState &the_view_state) |
Set the provided ViewState in a DataState object. More... | |
Static Public Member Functions | |
static DataState | any () |
Create a DataState with InstanceState::any(), ViewState::any(), and SampleState::any() More... | |
static DataState | new_data () |
Create a DataState with InstanceState::alive(), ViewState::any(), and SampleState::not_read() More... | |
static DataState | any_data () |
Create a DataState with InstanceState::alive(), ViewState::any(), and SampleState::any() More... | |
static DataState | new_instance () |
Create a DataState with InstanceState::alive(), ViewState::new_view(), and SampleState::any() More... | |
Friends | |
void | swap (DataState &left, DataState &right) OMG_NOEXCEPT |
Swap the contents of two DataState objects. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const DataState &s) |
Prints a data state as a readable string. More... | |
The DataState class describes the state of a sample and includes the information about the sample's InstanceState, ViewState, and SampleState.
|
inline |
Create a DataState with InstanceState::any(), ViewState::any(), and SampleState::any()
|
inline |
Create a DataState with InstanceState::any(), ViewState::any(), and the provided SampleState.
Note that the constructor is implicit, so you can use a SampleState wherever a DataState is expected.
|
inline |
Create a DataState with InstanceState::any(), SampleState::any(), and the provided ViewState.
Note that the constructor is implicit, so you can use a ViewState wherever a DataState is expected.
|
inline |
Create a DataState with SampleState::any(), ViewState::any(), and the provided InstanceState.
Note that the constructor is implicit, so you can use a InstanceState wherever a DataState is expected.
|
inline |
Create a DataState with the provided SampleState, ViewState, and InstanceState.
|
inline |
Compare two DataState objects for equality.
References instance_state(), sample_state(), and view_state().
|
inline |
Compare two DataState objects for inequality.
|
inline |
Set the provided SampleState in a DataState object.
|
inline |
Set the provided InstanceState in a DataState object.
|
inline |
Get the SampleState from a DataState object.
|
inline |
Get the InstanceState from a DataState object.
|
inline |
Get the SampleState from a DataState object.
Referenced by dds::sub::find(), and operator==().
|
inline |
Set the provided SampleState in a DataState object.
|
inline |
Get the InstanceState from a DataState object.
Referenced by dds::sub::find(), and operator==().
|
inline |
Set the provided InstanceState in a DataState object.
|
inline |
Get the ViewState from a DataState object.
Referenced by dds::sub::find(), and operator==().
|
inline |
|
inlinestatic |
Create a DataState with InstanceState::any(), ViewState::any(), and SampleState::any()
References dds::sub::status::SampleState::any(), dds::sub::status::ViewState::any(), and dds::sub::status::InstanceState::any().
|
inlinestatic |
|
inlinestatic |
Create a DataState with InstanceState::alive(), ViewState::any(), and SampleState::any()
References dds::sub::status::InstanceState::alive(), dds::sub::status::SampleState::any(), and dds::sub::status::ViewState::any().
|
inlinestatic |
Swap the contents of two DataState objects.
|
related |
Prints a data state as a readable string.