|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Data type which stores an optional bool value (unknown, false, true). The type evaluates to bool while an unknown value is considered false. More...
#include <Util.h>
Public Types | |
| enum class | Values { Unknown , False , True } |
Possible values. Values::Unknown evaluates to false. More... | |
Public Member Functions | |
| constexpr | OptionalBool () noexcept |
Contructs an instance holding Values::Unknown. | |
| constexpr | OptionalBool (Values Value) noexcept |
Contructs an instance holding Value. | |
| constexpr | OptionalBool (bool b) noexcept |
Contructs an instance holding b. | |
| constexpr | OptionalBool (const OptionalBool &Other) noexcept |
Contructs a copy of Other. | |
| constexpr OptionalBool & | operator= (Values Value) noexcept |
Assigns Value, returns reference to this. | |
| constexpr OptionalBool & | operator= (bool b) noexcept |
Assigns b, returns reference to this. | |
| constexpr OptionalBool & | operator= (OptionalBool &Other) noexcept |
Assigns value of Other, returns reference to this. | |
| constexpr bool | operator== (Values Value) const noexcept |
Returns true when Value matches stored value, false otherwise. | |
| constexpr bool | operator!= (Values Value) const noexcept |
Returns false when Value matches stored value, true otherwise. | |
| constexpr | operator bool () const noexcept |
| Converts internal value to bool. | |
| constexpr Values | Get () const noexcept |
| Returns internal value. | |
Private Attributes | |
| Values | Value |
| Internal value. | |
Data type which stores an optional bool value (unknown, false, true). The type evaluates to bool while an unknown value is considered false.
|
strong |
Possible values. Values::Unknown evaluates to false.
| Enumerator | |
|---|---|
| Unknown | |
| False | |
| True | |
|
inlineconstexprnoexcept |
Contructs an instance holding Values::Unknown.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |