21 const int EvaluationResult::FALSE_VALUE = 0;
22 const int EvaluationResult::TRUE_VALUE = 1;
23 const int EvaluationResult::NOT_LOADED_VALUE = 2;
31 if(
const EvaluationResult* o = dynamic_cast<const EvaluationResult*>(result))
33 return this->fValue == o->fValue;
40 return !(
this == result);
50 const SmartPointer<const EvaluationResult> EvaluationResult::OR[3][3] = {
57 const SmartPointer<const EvaluationResult> EvaluationResult::NOT[3] = {
63 EvaluationResult::EvaluationResult(
int value)
68 EvaluationResult::EvaluationResult(
const EvaluationResult &o)
77 return AND[fValue][other->fValue];
83 return OR[fValue][other->fValue];
berry::SmartPointer< const Self > ConstPointer
bool operator!=(const Object *) const
static const SmartPointer< const EvaluationResult > FALSE_EVAL
Light weight base class for most BlueBerry classes.
virtual bool operator==(const Object *) const
Implements transparent reference counting.
static EvaluationResult::ConstPointer ValueOf(bool b)
EvaluationResult::ConstPointer Not() const
EvaluationResult::ConstPointer And(const EvaluationResult::ConstPointer &other) const
EvaluationResult::ConstPointer Or(const EvaluationResult::ConstPointer &other) const
static const SmartPointer< const EvaluationResult > TRUE_EVAL
QString ToString() const override
static const SmartPointer< const EvaluationResult > NOT_LOADED