20 #include "SheafSystem/tern.h" 21 #include "SheafSystem/assert_contract.h" 22 #include "SheafSystem/error_message.h" 72 _state = xother._state;
132 _state = xother._state;
163 operator bool()
const 188 return _state == TRUE;
196 return _state == FALSE;
204 return _state == NEITHER;
tern & operator=(const tern &xother)
Assignment operator.
bool is_true() const
True if thi has value true.
A three state "bool". Does not provide the operations of ternary logic and is intended for use mostly...
state_type
The three possible values.
~tern()
/// Conversion from boolean.
bool is_neither() const
True if this is neither true nor false.
bool is_false() const
True if this has value false.
tern()
Default constructor.