#include <NewExprTreeVisitor.hpp>

Public Member Functions | |
| virtual | ~NewExprTreeVisitor () |
| virtual void | visitExprTreeBefore (NewExprTree &)=0 |
| called before root noded in the expression tree is visited | |
| virtual void | visitExprTreeAfter (NewExprTree &)=0 |
| called after root noded in the expression tree is visited | |
| virtual void | visitNode (NewExprTree::Node &)=0 |
| virtual void | visitOpNode (NewExprTree::OpNode &n) |
| virtual void | visitCallNode (NewExprTree::CallNode &n) |
| virtual void | visitMemRefNode (NewExprTree::MemRefNode &n) |
| virtual void | visitConstSymNode (NewExprTree::ConstSymNode &n) |
| virtual void | visitConstValNode (NewExprTree::ConstValNode &n) |
Protected Member Functions | |
| NewExprTreeVisitor () | |
ExprTreeVisitor is an abstract base class used to implement the Visitor pattern on ExprTree Nodes.
The ExprTree::acceptVisitor method will call visitExprTreeBefore, visitExprTreeAfter, and acceptVisitor on the root node. If you want to traverse other nodes then you must call acceptVisitor on children nodes when appropriate. See EvalToConstVisitor::visitOpNode for an example.
Memory Management: It is assumed that the concrete visitors will NOT keep references to expression tree nodes and that the expression tree will not be deallocated while an ExprTreeVisitor is visiting an ExprTree. Concrete visitors should also never take the address of a Node or ExprTree and pass it to a method that requires an OA_ptr<Node>.
Definition at line 39 of file NewExprTreeVisitor.hpp.
| OA::NewExprTreeVisitor::NewExprTreeVisitor | ( | ) | [inline, protected] |
Definition at line 41 of file NewExprTreeVisitor.hpp.
| virtual OA::NewExprTreeVisitor::~NewExprTreeVisitor | ( | ) | [inline, virtual] |
Definition at line 43 of file NewExprTreeVisitor.hpp.
| virtual void OA::NewExprTreeVisitor::visitCallNode | ( | NewExprTree::CallNode & | n | ) | [inline, virtual] |
Definition at line 60 of file NewExprTreeVisitor.hpp.
References visitNode().
Referenced by OA::NewExprTree::CallNode::operator<().

| virtual void OA::NewExprTreeVisitor::visitConstSymNode | ( | NewExprTree::ConstSymNode & | n | ) | [inline, virtual] |
Definition at line 62 of file NewExprTreeVisitor.hpp.
References visitNode().
Referenced by OA::NewExprTree::ConstSymNode::operator<().

| virtual void OA::NewExprTreeVisitor::visitConstValNode | ( | NewExprTree::ConstValNode & | n | ) | [inline, virtual] |
Definition at line 63 of file NewExprTreeVisitor.hpp.
References visitNode().
Referenced by OA::NewExprTree::ConstValNode::operator<().

| virtual void OA::NewExprTreeVisitor::visitExprTreeAfter | ( | NewExprTree & | ) | [pure virtual] |
called after root noded in the expression tree is visited
| virtual void OA::NewExprTreeVisitor::visitExprTreeBefore | ( | NewExprTree & | ) | [pure virtual] |
called before root noded in the expression tree is visited
| virtual void OA::NewExprTreeVisitor::visitMemRefNode | ( | NewExprTree::MemRefNode & | n | ) | [inline, virtual] |
Definition at line 61 of file NewExprTreeVisitor.hpp.
References visitNode().
Referenced by OA::NewExprTree::MemRefNode::operator<().

| virtual void OA::NewExprTreeVisitor::visitNode | ( | NewExprTree::Node & | ) | [pure virtual] |
Referenced by visitCallNode(), visitConstSymNode(), visitConstValNode(), visitMemRefNode(), and visitOpNode().
| virtual void OA::NewExprTreeVisitor::visitOpNode | ( | NewExprTree::OpNode & | n | ) | [inline, virtual] |
Definition at line 59 of file NewExprTreeVisitor.hpp.
References visitNode().
Referenced by OA::NewExprTree::OpNode::operator<().

1.7.1