SheafSystem
0.0.0.0
|
A three state "bool". Does not provide the operations of ternary logic and is intended for use mostly as a convenient, three-way input argument. Can not be used as a base class since it does not have a virtual destructor. More...
#include <tern.h>
Public Types | |
enum | state_type { TRUE, FALSE, NEITHER } |
The three possible values. More... | |
Public Member Functions | |
tern () | |
Default constructor. More... | |
tern (const tern &xother) | |
Copy constructor. More... | |
~tern () | |
/// Conversion from boolean. More... | |
tern & | operator= (const tern &xother) |
Assignment operator. More... | |
operator bool () const | |
/// Assignment operator More... | |
bool | is_true () const |
True if thi has value true. More... | |
bool | is_false () const |
True if this has value false. More... | |
bool | is_neither () const |
True if this is neither true nor false. More... | |
tern (state_type xstate) | |
Creates instance with state xstate. More... | |
A three state "bool". Does not provide the operations of ternary logic and is intended for use mostly as a convenient, three-way input argument. Can not be used as a base class since it does not have a virtual destructor.
sheaf::tern::tern | ( | ) |
Default constructor.
Definition at line 44 of file tern.cc.
Referenced by is_neither().
sheaf::tern::tern | ( | const tern & | xother | ) |
sheaf::tern::~tern | ( | ) |
/// Conversion from boolean.
Destructor.
Definition at line 104 of file tern.cc.
References operator=().
Referenced by tern().
sheaf::tern::tern | ( | state_type | xstate | ) |
bool sheaf::tern::is_false | ( | ) | const |
True if this has value false.
Definition at line 194 of file tern.cc.
References is_neither().
Referenced by is_true().
bool sheaf::tern::is_neither | ( | ) | const |
True if this is neither true nor false.
Definition at line 202 of file tern.cc.
References tern().
Referenced by is_false().
bool sheaf::tern::is_true | ( | ) | const |
True if thi has value true.
Definition at line 186 of file tern.cc.
References is_false().
Referenced by operator bool().
sheaf::tern::operator bool | ( | ) | const |
sheaf::tern & sheaf::tern::operator= | ( | const tern & | xother | ) |