2 #ifndef OPENGM_TRIBOOL_HXX 3 #define OPENGM_TRIBOOL_HXX 28 operator bool()
const;
64 : static_cast<int>(static_cast<bool>(val)))
88 : value_ = static_cast<int>(static_cast<bool>(val));
98 value_ =
static_cast<int>(val);
119 return static_cast<int>(a) == value_;
132 inline Tribool::operator
bool()
const 156 out << static_cast<int>(t.value_);
169 #endif // #ifndef OPENGM_TRIBOOL_HXX
bool operator!=(const bool a) const
bool operator==(const bool a) const
Tribool & operator=(const Tribool &)
friend std::ostream & operator<<(std::ostream &out, const Tribool &t)
void operator &=(Tribool::State state)
Variable with three values (true=1, false=0, maybe=-1 )