LSST Applications g0fba68d861+05816baf74,g1ec0fe41b4+f536777771,g1fd858c14a+a9301854fb,g35bb328faa+fcb1d3bbc8,g4af146b050+a5c07d5b1d,g4d2262a081+6e5fcc2a4e,g53246c7159+fcb1d3bbc8,g56a49b3a55+9c12191793,g5a012ec0e7+3632fc3ff3,g60b5630c4e+ded28b650d,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8352419a5c+fcb1d3bbc8,g87b7deb4dc+7b42cf88bf,g8852436030+e5453db6e6,g89139ef638+ed4b5058f4,g8e3bb8577d+d38d73bdbd,g9125e01d80+fcb1d3bbc8,g94187f82dc+ded28b650d,g989de1cb63+ed4b5058f4,g9d31334357+ded28b650d,g9f33ca652e+50a8019d8c,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+d9fb1f8026,gb58c049af0+f03b321e39,gb665e3612d+2a0c9e9e84,gb89ab40317+ed4b5058f4,gcf25f946ba+e5453db6e6,gd6cbbdb0b4+bb83cc51f8,gdd1046aedd+ded28b650d,gde0f65d7ad+941d412827,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,gf23fb2af72+b7cae620c0,gf5e32f922b+fcb1d3bbc8,gf67bdafdda+ed4b5058f4,w.2025.16
LSST Data Management Base Package
|
TriState
represents a boolean value with additional unknown
state.
More...
#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
.
Definition at line 46 of file TriState.h.
|
inline |
|
inlineexplicit |
Construct value in a known state.
Definition at line 52 of file TriState.h.
|
inline |
Check whether the state is known.
Definition at line 123 of file TriState.h.
|
inline |
Definition at line 79 of file TriState.h.
|
inline |
Definition at line 68 of file TriState.h.
Compute the logical AND of two TriState values.
other | Other TriState value. |
Definition at line 101 of file TriState.h.
|
inline |
Compare this tri-state value with a boolean.
value | Boolean value to compare to. |
Definition at line 75 of file TriState.h.
|
inline |
Compare this tri-state value with other tri-state value.
other | Tri-state value to compare to. |
Definition at line 60 of file TriState.h.
Compute the logical OR of two TriState values.
other | Other TriState value. |
Definition at line 87 of file TriState.h.
|
inline |
Compute the logical NOT of a TriState value.
Definition at line 114 of file TriState.h.