Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <berryEvaluationResult.h>
Static Public Member Functions | |
static EvaluationResult::ConstPointer | ValueOf (bool b) |
![]() | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Static Public Attributes | |
static const SmartPointer< const EvaluationResult > | FALSE_EVAL |
static const SmartPointer< const EvaluationResult > | TRUE_EVAL |
static const SmartPointer< const EvaluationResult > | NOT_LOADED |
Additional Inherited Members | |
![]() | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
![]() | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
An evaluation result represents the result of an expression evaluation. There are exact three instances of evaluation result. They are: FALSE_EVAL
, TRUE_EVAL
and NOT_LOADED
. NOT_LOADED
represents the fact that an expression couldn't be evaluated since a plug-in providing certain test expressions isn't loaded yet.
In addition the class implements the three operation and
, or
and not
. The operation are defined as follows:
The and operation:
<col width="120"> <col width="120"> <col width="120"> <col width="120"> </colgroup> <tbody>
AND
FALSE_EVAL
TRUE_EVAL
NOT_LOADED
FALSE_EVAL
FALSE_EVAL
FALSE_EVAL
FALSE_EVAL
TRUE_EVAL
FALSE_EVAL
TRUE_EVAL
NOT_LOADED
NOT_LOADED
FALSE_EVAL
NOT_LOADED
NOT_LOADED </tbody>
The or operation:
<col width="120"> <col width="120"> <col width="120"> <col width="120"> </colgroup> <tbody>
OR
FALSE_EVAL
TRUE_EVAL
NOT_LOADED
FALSE_EVAL
FALSE_EVAL
TRUE_EVAL
NOT_LOADED
TRUE_EVAL
TRUE_EVAL
TRUE_EVAL
TRUE_EVAL
NOT_LOADED
NOT_LOADED
TRUE_EVAL
NOT_LOADED </tbody>
The not operation:
<col width="120"> <col width="120"> <col width="120"> <col width="120"> </colgroup> <tbody>
NOT
FALSE_EVAL
TRUE_EVAL
NOT_LOADED
TRUE_EVAL
FALSE_EVAL
NOT_LOADED </tbody>
The class is not intended to be subclassed by clients.
Definition at line 141 of file berryEvaluationResult.h.
EvaluationResult::ConstPointer berry::EvaluationResult::And | ( | const EvaluationResult::ConstPointer & | other | ) | const |
Returns an EvaluationResult
whose value is this && other)
.
other | the right hand side of the and operation. |
this && other
as defined by the evaluation result Definition at line 71 of file berryEvaluationResult.cpp.
berry::EvaluationResult::berryObjectMacro | ( | berry::EvaluationResult | ) |
EvaluationResult::ConstPointer berry::EvaluationResult::Not | ( | ) | const |
Returns the inverted value of this evaluation result
Definition at line 84 of file berryEvaluationResult.cpp.
bool berry::EvaluationResult::operator!= | ( | const Object * | result | ) | const |
Definition at line 34 of file berryEvaluationResult.cpp.
References FALSE_EVAL, NOT_LOADED, berry::Object::Object(), and TRUE_EVAL.
|
overridevirtual |
A generic comparison method. Override this method in subclasses and cast to your derived class to provide a more detailed comparison.
Reimplemented from berry::Object.
Definition at line 25 of file berryEvaluationResult.cpp.
EvaluationResult::ConstPointer berry::EvaluationResult::Or | ( | const EvaluationResult::ConstPointer & | other | ) | const |
Returns an EvaluationResult
whose value is this || other)
.
other | the right hand side of the or operation. |
this || other
as defined by the evaluation result Definition at line 77 of file berryEvaluationResult.cpp.
|
overridevirtual |
For debugging purpose only
Reimplemented from berry::Object.
Definition at line 96 of file berryEvaluationResult.cpp.
|
static |
Returns an evaluation result instance representing the given boolean value. If the given boolean value is TRUE_EVAL
then ExpressionResult.TRUE_EVAL
is returned. If the value is FALSE_EVAL
then ExpressionResult.FALSE_EVAL
is returned.
b | a boolean value |
Definition at line 90 of file berryEvaluationResult.cpp.
References FALSE_EVAL, and TRUE_EVAL.
|
static |
The evaluation result representing the value FALSE
Definition at line 154 of file berryEvaluationResult.h.
Referenced by berry::FALSE_EVALExpression::Evaluate(), operator!=(), and ValueOf().
|
static |
The evaluation result representing the value NOT_LOADED
Definition at line 158 of file berryEvaluationResult.h.
Referenced by operator!=().
|
static |
The evaluation result representing the value TRUE
Definition at line 156 of file berryEvaluationResult.h.
Referenced by berry::TRUE_EVALExpression::Evaluate(), operator!=(), and ValueOf().