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