Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryExpressionInfo.h>
Public Member Functions | |
ExpressionInfo () | |
bool | HasDefaultVariableAccess () const |
void | MarkDefaultVariableAccessed () |
bool | HasSystemPropertyAccess () const |
void | MarkSystemPropertyAccessed () |
QSet< QString > | GetAccessedVariableNames () const |
void | AddVariableNameAccess (const QString &name) |
QSet< QString > | GetAccessedPropertyNames () const |
void | AddAccessedPropertyName (const QString &name) |
QSet< QString > | GetMisbehavingExpressionTypes () const |
void | AddMisBehavingExpressionType (const std::type_info &clazz) |
void | Merge (ExpressionInfo *other) |
void | MergeExceptDefaultVariable (ExpressionInfo *other) |
A status object describing information about an expression tree. This information can for example be used to decide whether a expression tree as to be reevaluated if the value of some variables changes.
This class is not intended to be extended by clients.
Definition at line 39 of file berryExpressionInfo.h.
berry::ExpressionInfo::ExpressionInfo | ( | ) |
Definition at line 23 of file berryExpressionInfo.cpp.
void berry::ExpressionInfo::AddAccessedPropertyName | ( | const QString & | name | ) |
Marks that this expression access this property. It should be the fully qualified property name.
name | the fully qualified property name |
Definition at line 71 of file berryExpressionInfo.cpp.
void berry::ExpressionInfo::AddMisBehavingExpressionType | ( | const std::type_info & | clazz | ) |
Adds the given class to the list of misbehaving classes.
clazz | the class to add. |
Definition at line 82 of file berryExpressionInfo.cpp.
Referenced by berry::Expression::CollectExpressionInfo().
void berry::ExpressionInfo::AddVariableNameAccess | ( | const QString & | name | ) |
Marks the given variable as accessed.
name | the accessed variable |
Definition at line 59 of file berryExpressionInfo.cpp.
QSet< QString > berry::ExpressionInfo::GetAccessedPropertyNames | ( | ) | const |
Returns the set of accessed properties.
Definition at line 65 of file berryExpressionInfo.cpp.
QSet< QString > berry::ExpressionInfo::GetAccessedVariableNames | ( | ) | const |
Returns the set off accessed variables.
Definition at line 53 of file berryExpressionInfo.cpp.
QSet< QString > berry::ExpressionInfo::GetMisbehavingExpressionTypes | ( | ) | const |
Returns the set of expression types which don't implement the new (} method. If one expression didn't implement the method the expression tree no optimizations can be done. Returns null
if all expressions implement the method. the set of expression types which don't implement the computeReevaluationInfo
method.
Definition at line 76 of file berryExpressionInfo.cpp.
bool berry::ExpressionInfo::HasDefaultVariableAccess | ( | ) | const |
Returns true
if the default variable is accessed by the expression tree.
Definition at line 30 of file berryExpressionInfo.cpp.
bool berry::ExpressionInfo::HasSystemPropertyAccess | ( | ) | const |
Returns true
if the system property is accessed by the expression tree.
Definition at line 42 of file berryExpressionInfo.cpp.
void berry::ExpressionInfo::MarkDefaultVariableAccessed | ( | ) |
Marks the default variable as accessed.
Definition at line 36 of file berryExpressionInfo.cpp.
void berry::ExpressionInfo::MarkSystemPropertyAccessed | ( | ) |
Marks the system property as accessed.
Definition at line 48 of file berryExpressionInfo.cpp.
void berry::ExpressionInfo::Merge | ( | ExpressionInfo * | other | ) |
Merges this reevaluation information with the given info.
other | the information to merge with |
Definition at line 88 of file berryExpressionInfo.cpp.
void berry::ExpressionInfo::MergeExceptDefaultVariable | ( | ExpressionInfo * | other | ) |
Merges this reevaluation information with the given info ignoring the default variable access.
other | the information to merge with |
Definition at line 99 of file berryExpressionInfo.cpp.