Class to provide a "pseudo bool" value. More...
#include <TsValue.h>
Public Types | |
| typedef bool(PseudoBool::* | Type )() const |
| The type itself. | |
Public Member Functions | |
| bool | operator! () const |
A method to use for the true value. | |
Static Public Attributes | |
| static Type const | TRUE = &detail::PseudoBool::operator ! |
The true equivalent. | |
| static Type const | FALSE = 0 |
The false equivalent. | |
Class to provide a "pseudo bool" value.
This is used as the return type for the positive logical operator (the converse of operator! ). This makes a class directly usable in logical expressions. It is like a pointer but not convertible to anything else, and so avoiding any undesirable automatic conversions and the resulting ambiguities.
Definition at line 48 of file TsValue.h.
| typedef bool(PseudoBool::* ts::config::detail::PseudoBool::Type)() const |
| bool ts::config::detail::PseudoBool::operator! | ( | ) | const |
A method to use for the true value.
Definition at line 46 of file TsValue.cc.
detail::PseudoBool::Type const ts::config::detail::PseudoBool::FALSE = 0 [static] |
The false equivalent.
Definition at line 52 of file TsValue.h.
Referenced by ts::config::Value::operator detail::PseudoBool::Type(), and ts::config::detail::ValueTable::operator PseudoBool::Type().
detail::PseudoBool::Type const ts::config::detail::PseudoBool::TRUE = &detail::PseudoBool::operator ! [static] |
The true equivalent.
Definition at line 51 of file TsValue.h.
Referenced by ts::config::Value::operator detail::PseudoBool::Type(), and ts::config::detail::ValueTable::operator PseudoBool::Type().
1.7.1