#include <TriState.h>
Public Member Functions | |
| TriState () | |
| Construct value in unknown state. | |
| TriState (bool value) | |
| Construct value in a known state. | |
| TriState & | operator= (TriState const &other)=default |
| bool | operator== (TriState const &other) const |
| Compare this tri-state value with other tri-state value. | |
| bool | operator!= (TriState const &other) const |
| bool | operator== (bool value) const |
| Compare this tri-state value with a boolean. | |
| bool | operator!= (bool value) const |
| TriState | operator| (TriState const &other) const |
| Compute the logical OR of two TriState values. | |
| TriState | operator& (TriState const &other) const |
| Compute the logical AND of two TriState values. | |
| TriState | operator~ () const |
| Compute the logical NOT of a TriState value. | |
| bool | known () const |
| Check whether the state is known. | |
TriState represents a boolean value with additional unknown state. Instances of this class can be compared to booleans true and false, when the state is unknown, comparisons will return false.
|
inline |
Check whether the state is known.
|
inline |
Compare this tri-state value with a boolean.
| value | Boolean value to compare to. |
|
inline |
Compare this tri-state value with other tri-state value.
| other | Tri-state value to compare to. |
|
inline |
Compute the logical NOT of a TriState value.