CoreDX DDS Modern C++ API
|
The optional class is used to wrap attributes annotated with the annotation. More...
Public Member Functions | |
bool | is_set () const |
Returns true only if the attribute is set. | |
void | reset () |
Reset the attribute. | |
const T & | get () const |
Get the attribute. More... | |
T & | get () |
Get the attribute. More... | |
![]() | |
const DELEGATE< T > * | operator-> () const |
Return the delegate. | |
DELEGATE< T > * | operator-> () |
Return the delegate. | |
const DELEGATE< T > & | delegate () const |
Return the delegate. | |
DELEGATE< T > & | delegate () |
Return the delegate. | |
The optional class is used to wrap attributes annotated with the annotation.
This class provides a simple and safe way of accessing, setting and resetting the stored attribute.
const T& dds::core::optional< T, DELEGATE >::get | ( | ) | const |
Get the attribute.
An exception is thrown if the attribute is not set.
T& dds::core::optional< T, DELEGATE >::get | ( | ) |
Get the attribute.
An exception is thrown if the attribute is not set.