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...
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 . More... | |
constexpr | OptionalBool (Values Value) noexcept |
Contructs an instance holding Value . More... | |
constexpr | OptionalBool (bool b) noexcept |
Contructs an instance holding b . More... | |
constexpr | OptionalBool (const OptionalBool &Other) noexcept |
Contructs a copy of Other . More... | |
constexpr OptionalBool & | operator= (Values Value) noexcept |
Assigns Value , returns reference to this. More... | |
constexpr OptionalBool & | operator= (bool b) noexcept |
Assigns b , returns reference to this. More... | |
constexpr OptionalBool & | operator= (OptionalBool &Other) noexcept |
Assigns value of Other , returns reference to this. More... | |
constexpr bool | operator== (Values Value) const noexcept |
Returns true when Value matches stored value, false otherwise. More... | |
constexpr bool | operator!= (Values Value) const noexcept |
Returns false when Value matches stored value, true otherwise. More... | |
constexpr | operator bool () const noexcept |
Converts internal value to bool. More... | |
constexpr Values | Get () const noexcept |
Returns internal value. More... | |
Private Attributes | |
Values | Value |
Internal value. More... | |
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 |