Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes
OODebug::ReferenceFinder Class Reference

Implements a visitor to find all references to some node. More...

Inheritance diagram for OODebug::ReferenceFinder:
Model::Visitor< ReferenceFinder, OOModel::ReferenceExpression * >

Public Member Functions

void clearReferences ()
 
QList< OOModel::ReferenceExpression * > references () const
 
void setSearchNode (Model::Node *searchNode)
 
- Public Member Functions inherited from Model::Visitor< ReferenceFinder, OOModel::ReferenceExpression * >
virtual ~Visitor ()
 
OOModel::ReferenceExpressionvisit (Node *n)
 
virtual OOModel::ReferenceExpressionvisitChildren (Node *n)
 

Static Public Member Functions

static void init ()
 
- Static Public Member Functions inherited from Model::Visitor< ReferenceFinder, OOModel::ReferenceExpression * >
static void addType (std::function< OOModel::ReferenceExpression *(ReferenceFinder *, NodeType *)> f)
 

Static Private Member Functions

static OOModel::ReferenceExpressionvisitReferenceExpression (ReferenceFinder *self, OOModel::ReferenceExpression *m)
 

Private Attributes

QList< OOModel::ReferenceExpression * > references_
 
Model::NodesearchNode_
 

Additional Inherited Members

- Public Types inherited from Model::Visitor< ReferenceFinder, OOModel::ReferenceExpression * >
using BaseVisitorType = ReferenceFinder
 
using VisitFunctionInstance = std::function< OOModel::ReferenceExpression *(ReferenceFinder *, Node *)>
 
using VisitorResultType = OOModel::ReferenceExpression *
 
- Protected Member Functions inherited from Model::Visitor< ReferenceFinder, OOModel::ReferenceExpression * >
virtual VisitFunctionInstance findFunctionForId (int id)
 

Detailed Description

Implements a visitor to find all references to some node.

Member Function Documentation

◆ clearReferences()

void OODebug::ReferenceFinder::clearReferences ( )
inline

◆ init()

void OODebug::ReferenceFinder::init ( )
static

◆ references()

QList< OOModel::ReferenceExpression * > OODebug::ReferenceFinder::references ( ) const
inline

◆ setSearchNode()

void OODebug::ReferenceFinder::setSearchNode ( Model::Node searchNode)
inline

◆ visitReferenceExpression()

OOModel::ReferenceExpression * OODebug::ReferenceFinder::visitReferenceExpression ( ReferenceFinder self,
OOModel::ReferenceExpression m 
)
staticprivate

Member Data Documentation

◆ references_

QList<OOModel::ReferenceExpression*> OODebug::ReferenceFinder::references_
private

◆ searchNode_

Model::Node* OODebug::ReferenceFinder::searchNode_
private