Medical Imaging Interaction Toolkit
2024.06.00
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 35 of file berryExpressionInfo.h.
berry::ExpressionInfo::ExpressionInfo | ( | ) |
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 |
void berry::ExpressionInfo::AddMisBehavingExpressionType | ( | const std::type_info & | clazz | ) |
Adds the given class to the list of misbehaving classes.
clazz | the class to add. |
void berry::ExpressionInfo::AddVariableNameAccess | ( | const QString & | name | ) |
Marks the given variable as accessed.
name | the accessed variable |
QSet<QString> berry::ExpressionInfo::GetAccessedPropertyNames | ( | ) | const |
Returns the set of accessed properties.
QSet<QString> berry::ExpressionInfo::GetAccessedVariableNames | ( | ) | const |
Returns the set off accessed variables.
QSet<QString> berry::ExpressionInfo::GetMisbehavingExpressionTypes | ( | ) | const |
If one expression didn't implement the method the expression tree no optimizations can be done. Returns null
if all expressions implement the method.
computeReevaluationInfo
method. bool berry::ExpressionInfo::HasDefaultVariableAccess | ( | ) | const |
Returns true
if the default variable is accessed by the expression tree.
bool berry::ExpressionInfo::HasSystemPropertyAccess | ( | ) | const |
Returns true
if the system property is accessed by the expression tree.
void berry::ExpressionInfo::MarkDefaultVariableAccessed | ( | ) |
Marks the default variable as accessed.
void berry::ExpressionInfo::MarkSystemPropertyAccessed | ( | ) |
Marks the system property as accessed.
void berry::ExpressionInfo::Merge | ( | ExpressionInfo * | other | ) |
Merges this reevaluation information with the given info.
other | the information to merge with |
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 |