#include <Optional.hpp>
Inheritance diagram for optional< T, DELEGATE >:Public Member Functions | |
| optional (const T &t) | |
| bool | is_set () const |
| void | reset () |
| const T & | get () const |
| T & | get () |
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.
Definition at line 31 of file Optional.hpp.
| optional | ( | const T & | t | ) |
| const T& get | ( | ) | const |
Get the attribute. An exception is thrown if the attribute is not set.
| T& get | ( | ) |
Get the attribute. An exception is thrown if the attribute is not set.
| bool is_set | ( | ) | const |
Returns true only if the attribute is set.
| void reset | ( | ) |
Reset the attribute
1.7.1