<<extension>> Represents a value that can be initialized or not
More...
#include <OptionalValue.hpp>
Detailed Description
template<typename T>
class rti::core::optional_value< T >
<<extension>> Represents a value that can be initialized or not
Note: this class is similar to dds::core::optional. They are different due to implementation details. dds::core::optional is only used in IDL-generated types. rti::core::optional_value is used in parts of the API.
Constructor & Destructor Documentation
Creates an uninitialized value.
Creates an instance with a value.
Conditionally creates an instance that can be uninitialized or initialized with a value.
- Parameters
-
condition | If it is true it assigns value , otherwise this optional_value is uninitialized |
value | The value to use if condition is true. |
Copy constructor.
This optional_value will be initialized only if other
is initialized.
Member Function Documentation
Returns true only if the value is initialized.
Get the value.
- Exceptions
-
Get the value.
- Exceptions
-