Variable with three values (true=1, false=0, maybe=-1). More...
#include <tribool.hxx>
Public Types | |
enum | State { True = 1, False = 0, Maybe = -1 } |
Public Member Functions | |
Tribool () | |
Tribool (const Tribool &) | |
template<class T > | |
Tribool (const T) | |
Tribool (Tribool::State state) | |
Tribool & | operator= (const Tribool &) |
template<class T > | |
Tribool & | operator= (T) |
Tribool & | operator= (Tribool::State state) |
bool | operator== (const bool a) const |
template<class T > | |
bool | operator== (T a) const |
bool | operator!= (const bool a) const |
operator bool () const | |
bool | operator! () const |
bool | maybe () const |
void | operator&= (Tribool::State state) |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Tribool &t) |
Variable with three values (true=1, false=0, maybe=-1).
Definition at line 8 of file tribool.hxx.
Definition at line 11 of file tribool.hxx.
opengm::Tribool::Tribool | ( | ) | [inline] |
Definition at line 39 of file tribool.hxx.
opengm::Tribool::Tribool | ( | const Tribool & | val | ) | [inline] |
Definition at line 44 of file tribool.hxx.
opengm::Tribool::Tribool | ( | const T | val | ) | [inline] |
Definition at line 59 of file tribool.hxx.
opengm::Tribool::Tribool | ( | Tribool::State | state | ) | [inline] |
Definition at line 51 of file tribool.hxx.
bool opengm::Tribool::maybe | ( | ) | const [inline] |
Definition at line 144 of file tribool.hxx.
opengm::Tribool::operator bool | ( | ) | const [inline] |
Definition at line 132 of file tribool.hxx.
bool opengm::Tribool::operator! | ( | ) | const [inline] |
Definition at line 138 of file tribool.hxx.
Definition at line 124 of file tribool.hxx.
void opengm::Tribool::operator&= | ( | Tribool::State | state | ) | [inline] |
Definition at line 161 of file tribool.hxx.
Tribool & opengm::Tribool::operator= | ( | Tribool::State | state | ) | [inline] |
Definition at line 94 of file tribool.hxx.
Tribool & opengm::Tribool::operator= | ( | T | val | ) | [inline] |
Definition at line 82 of file tribool.hxx.
Definition at line 69 of file tribool.hxx.
bool opengm::Tribool::operator== | ( | T | a | ) | const [inline] |
Definition at line 115 of file tribool.hxx.
Definition at line 104 of file tribool.hxx.
std::ostream& operator<< | ( | std::ostream & | out, | |
const Tribool & | t | |||
) | [friend] |
Definition at line 151 of file tribool.hxx.