Orxonox
0.0.5 Codename: Arcturus
|
A 3-state boolean type. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/util/tribool.h>
Public Types | |
enum | value_t { false_value, true_value, dontcare_value } |
The actual stored value in this 3-state boolean, which may be false, true, or dontcare. More... | |
Public Member Functions | |
constexpr | tribool () |
Construct a new 3-state boolean value with the value 'false'. More... | |
constexpr | tribool (bool value) |
Construct a new 3-state boolean value with the given boolean value, which may be true or false . More... | |
constexpr | tribool (dontcare_keyword_t) |
Construct a new 3-state boolean value with an dontcare value. More... | |
constexpr bool | operator!= (tribool y) const |
Compare tribools for inequality. More... | |
constexpr bool | operator!= (bool y) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
constexpr bool | operator!= (dontcare_keyword_t) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
constexpr bool | operator== (tribool y) const |
Compare tribools for equality. More... | |
constexpr bool | operator== (bool y) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
constexpr bool | operator== (dontcare_keyword_t) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
Public Attributes | |
enum orxonox::tribool::value_t | value |
A 3-state boolean type.
3-state boolean values are either true, false, or dontcare.
|
inline |
Construct a new 3-state boolean value with the value 'false'.
nothrow |
|
inline |
Construct a new 3-state boolean value with the given boolean value, which may be true
or false
.
nothrow |
|
inline |
Construct a new 3-state boolean value with an dontcare value.
nothrow |
|
inline |
Compare tribools for inequality.
nothrow |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
Compare tribools for equality.
nothrow |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
enum orxonox::tribool::value_t orxonox::tribool::value |