Medical Imaging Interaction Toolkit  2016.11.0
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 39 of file berryExpressionInfo.h.

Constructor & Destructor Documentation

berry::ExpressionInfo::ExpressionInfo ( )

Definition at line 23 of file berryExpressionInfo.cpp.

Member Function Documentation

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 71 of file berryExpressionInfo.cpp.

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 82 of file berryExpressionInfo.cpp.

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

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

Marks the given variable as accessed.

Parameters
namethe accessed variable

Definition at line 59 of file berryExpressionInfo.cpp.

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 65 of file berryExpressionInfo.cpp.

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

Returns the set off accessed variables.

Returns
the set off accessed variables

Definition at line 53 of file berryExpressionInfo.cpp.

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 30 of file berryExpressionInfo.cpp.

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

Parameters
otherthe 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.

Parameters
otherthe information to merge with

Definition at line 99 of file berryExpressionInfo.cpp.


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