16 #ifndef ORXONOX_TRIBOOL_H    17 #define ORXONOX_TRIBOOL_H    46   constexpr 
tribool() : value(false_value) {}
    54   constexpr 
tribool(
bool value) : value(value? true_value : false_value) {}
    71     return (this->value == y.
value);
    83   { 
return tribool(dontcare) == (*this); }
    93     return !((*this) == y);
   105   { 
return (*
this) != 
tribool(dontcare); }
   111   enum value_t { false_value, true_value, dontcare_value } value;
   123 { 
return tribool(dontcare) == x; }
   134 { 
return tribool(dontcare) != x; }
   138 #endif // ORXONOX_TRIBOOL_H constexpr bool operator!=(bool x, tribool y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:128
 
constexpr tribool(bool value)
Construct a new 3-state boolean value with the given boolean value, which may be true or false...
Definition: tribool.h:54
 
constexpr dontcare_keyword_t dontcare
Keyword for the dontcare tribool value. 
Definition: tribool.h:30
 
constexpr bool operator==(bool y) const 
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:77
 
constexpr bool operator!=(tribool y) const 
Compare tribools for inequality. 
Definition: tribool.h:91
 
constexpr bool operator==(dontcare_keyword_t) const 
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:82
 
Die Wagnis Klasse hat die folgenden Aufgaben: 
Definition: ApplicationPaths.cc:66
 
A 3-state boolean type. 
Definition: tribool.h:38
 
enum orxonox::tribool::value_t value
 
constexpr bool operator==(bool x, tribool y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:117
 
INTERNAL ONLY The type of the 'dontcare' keyword. 
Definition: tribool.h:25
 
value_t
The actual stored value in this 3-state boolean, which may be false, true, or dontcare. 
Definition: tribool.h:111
 
constexpr bool operator!=(bool y) const 
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:99
 
constexpr tribool()
Construct a new 3-state boolean value with the value 'false'. 
Definition: tribool.h:46
 
constexpr tribool(dontcare_keyword_t)
Construct a new 3-state boolean value with an dontcare value. 
Definition: tribool.h:61
 
constexpr bool operator==(tribool y) const 
Compare tribools for equality. 
Definition: tribool.h:69
 
constexpr bool operator!=(dontcare_keyword_t) const 
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: tribool.h:104