Medical Imaging Interaction Toolkit  2023.12.99-1652ac8d
Medical Imaging Interaction Toolkit
berry::ExpressionInfo Class Reference

#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)
 

Detailed Description

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.

Since
3.2

Definition at line 35 of file berryExpressionInfo.h.

Constructor & Destructor Documentation

◆ ExpressionInfo()

berry::ExpressionInfo::ExpressionInfo ( )

Member Function Documentation

◆ AddAccessedPropertyName()

void berry::ExpressionInfo::AddAccessedPropertyName ( const QString &  name)

Marks that this expression access this property. It should be the fully qualified property name.

Parameters
namethe fully qualified property name

◆ AddMisBehavingExpressionType()

void berry::ExpressionInfo::AddMisBehavingExpressionType ( const std::type_info &  clazz)

Adds the given class to the list of misbehaving classes.

Parameters
clazzthe class to add.

◆ AddVariableNameAccess()

void berry::ExpressionInfo::AddVariableNameAccess ( const QString &  name)

Marks the given variable as accessed.

Parameters
namethe accessed variable

◆ GetAccessedPropertyNames()

QSet<QString> berry::ExpressionInfo::GetAccessedPropertyNames ( ) const

Returns the set of accessed properties.

Returns
the set of accessed properties, or an empty array

◆ GetAccessedVariableNames()

QSet<QString> berry::ExpressionInfo::GetAccessedVariableNames ( ) const

Returns the set off accessed variables.

Returns
the set off accessed variables

◆ GetMisbehavingExpressionTypes()

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.

Returns
the set of expression types which don't implement the computeReevaluationInfo method.

◆ HasDefaultVariableAccess()

bool berry::ExpressionInfo::HasDefaultVariableAccess ( ) const

Returns true if the default variable is accessed by the expression tree.

Returns
whether the default variable is accessed or not

◆ HasSystemPropertyAccess()

bool berry::ExpressionInfo::HasSystemPropertyAccess ( ) const

Returns true if the system property is accessed by the expression tree.

Returns
whether the system property is accessed or not

◆ MarkDefaultVariableAccessed()

void berry::ExpressionInfo::MarkDefaultVariableAccessed ( )

Marks the default variable as accessed.

◆ MarkSystemPropertyAccessed()

void berry::ExpressionInfo::MarkSystemPropertyAccessed ( )

Marks the system property as accessed.

◆ Merge()

void berry::ExpressionInfo::Merge ( ExpressionInfo other)

Merges this reevaluation information with the given info.

Parameters
otherthe information to merge with

◆ MergeExceptDefaultVariable()

void berry::ExpressionInfo::MergeExceptDefaultVariable ( ExpressionInfo other)

Merges this reevaluation information with the given info ignoring the default variable access.

Parameters
otherthe information to merge with

The documentation for this class was generated from the following file: