Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
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 ( )

Definition at line 19 of file berryExpressionInfo.cpp.

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

Definition at line 67 of file berryExpressionInfo.cpp.

◆ 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.

Definition at line 78 of file berryExpressionInfo.cpp.

Referenced by berry::Expression::CollectExpressionInfo().

◆ AddVariableNameAccess()

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

Marks the given variable as accessed.

Parameters
namethe accessed variable

Definition at line 55 of file berryExpressionInfo.cpp.

◆ GetAccessedPropertyNames()

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

Returns the set of accessed properties.

Returns
the set of accessed properties, or an empty array

Definition at line 61 of file berryExpressionInfo.cpp.

◆ GetAccessedVariableNames()

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

Returns the set off accessed variables.

Returns
the set off accessed variables

Definition at line 49 of file berryExpressionInfo.cpp.

◆ GetMisbehavingExpressionTypes()

◆ 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

Definition at line 26 of file berryExpressionInfo.cpp.

◆ 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

Definition at line 38 of file berryExpressionInfo.cpp.

◆ MarkDefaultVariableAccessed()

void berry::ExpressionInfo::MarkDefaultVariableAccessed ( )

Marks the default variable as accessed.

Definition at line 32 of file berryExpressionInfo.cpp.

◆ MarkSystemPropertyAccessed()

void berry::ExpressionInfo::MarkSystemPropertyAccessed ( )

Marks the system property as accessed.

Definition at line 44 of file berryExpressionInfo.cpp.

◆ Merge()

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

Merges this reevaluation information with the given info.

Parameters
otherthe information to merge with

Definition at line 84 of file berryExpressionInfo.cpp.

◆ 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

Definition at line 95 of file berryExpressionInfo.cpp.


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