#include <OutputNewExprTreeVisitor.hpp>


Public Member Functions | |
| OutputNewExprTreeVisitor (IRHandlesIRInterface &ir) | |
| ~OutputNewExprTreeVisitor () | |
| void | visitExprTreeBefore (NewExprTree &) |
| called before root noded in the expression tree is visited | |
| void | visitExprTreeAfter (NewExprTree &) |
| called after root noded in the expression tree is visited | |
| void | visitNode (NewExprTree::Node &) |
| void | visitOpNode (NewExprTree::OpNode &n) |
| void | visitCallNode (NewExprTree::CallNode &n) |
| void | visitMemRefNode (NewExprTree::MemRefNode &n) |
| void | visitConstSymNode (NewExprTree::ConstSymNode &n) |
| void | visitConstValNode (NewExprTree::ConstValNode &n) |
| void | output (IRHandlesIRInterface &) |
| bool | getIsConst () |
Private Attributes | |
| bool | mIsConst |
| int | mId |
| IRHandlesIRInterface & | mIR |
Definition at line 32 of file OutputNewExprTreeVisitor.hpp.
| OA::OutputNewExprTreeVisitor::OutputNewExprTreeVisitor | ( | IRHandlesIRInterface & | ir | ) |
Definition at line 22 of file OutputNewExprTreeVisitor.cpp.
References mId.
| OA::OutputNewExprTreeVisitor::~OutputNewExprTreeVisitor | ( | ) | [inline] |
Definition at line 35 of file OutputNewExprTreeVisitor.hpp.
| bool OA::OutputNewExprTreeVisitor::getIsConst | ( | ) | [inline] |
Definition at line 55 of file OutputNewExprTreeVisitor.hpp.
References mIsConst.
| void OA::OutputNewExprTreeVisitor::output | ( | IRHandlesIRInterface & | ) | [virtual] |
Implements OA::Annotation.
Definition at line 106 of file OutputNewExprTreeVisitor.cpp.
| void OA::OutputNewExprTreeVisitor::visitCallNode | ( | NewExprTree::CallNode & | n | ) | [virtual] |
Reimplemented from OA::NewExprTreeVisitor.
Definition at line 68 of file OutputNewExprTreeVisitor.cpp.
References OA::NewExprTree::CallNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::OutputNewExprTreeVisitor::visitConstSymNode | ( | NewExprTree::ConstSymNode & | n | ) | [virtual] |
Reimplemented from OA::NewExprTreeVisitor.
Definition at line 87 of file OutputNewExprTreeVisitor.cpp.
References OA::NewExprTree::ConstSymNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

| void OA::OutputNewExprTreeVisitor::visitConstValNode | ( | NewExprTree::ConstValNode & | n | ) | [virtual] |
Reimplemented from OA::NewExprTreeVisitor.
Definition at line 97 of file OutputNewExprTreeVisitor.cpp.
References OA::NewExprTree::ConstValNode::getConstValInterface(), mId, and OA::Annotation::sOutBuild.

| void OA::OutputNewExprTreeVisitor::visitExprTreeAfter | ( | NewExprTree & | ) | [inline, virtual] |
called after root noded in the expression tree is visited
Implements OA::NewExprTreeVisitor.
Definition at line 38 of file OutputNewExprTreeVisitor.hpp.
| void OA::OutputNewExprTreeVisitor::visitExprTreeBefore | ( | NewExprTree & | ) | [inline, virtual] |
called before root noded in the expression tree is visited
Implements OA::NewExprTreeVisitor.
Definition at line 37 of file OutputNewExprTreeVisitor.hpp.
| void OA::OutputNewExprTreeVisitor::visitMemRefNode | ( | NewExprTree::MemRefNode & | n | ) | [virtual] |
Reimplemented from OA::NewExprTreeVisitor.
Definition at line 78 of file OutputNewExprTreeVisitor.cpp.
References mId, and OA::Annotation::sOutBuild.
| void OA::OutputNewExprTreeVisitor::visitNode | ( | NewExprTree::Node & | ) | [virtual] |
if we don't know how to handle a node then the default action is to change the eval result to NULL
Implements OA::NewExprTreeVisitor.
Definition at line 30 of file OutputNewExprTreeVisitor.cpp.
| void OA::OutputNewExprTreeVisitor::visitOpNode | ( | NewExprTree::OpNode & | n | ) | [virtual] |
Reimplemented from OA::NewExprTreeVisitor.
Definition at line 35 of file OutputNewExprTreeVisitor.cpp.
References OA::NewExprTree::ChildNodesIterator::current(), OA::NewExprTree::OpNode::getOpInterface(), OA::Tree::ChildNodesIterator::isValid(), mId, OA::Tree::Node::num_children(), and OA::Annotation::sOutBuild.

int OA::OutputNewExprTreeVisitor::mId [private] |
Definition at line 60 of file OutputNewExprTreeVisitor.hpp.
Referenced by OutputNewExprTreeVisitor(), visitCallNode(), visitConstSymNode(), visitConstValNode(), visitMemRefNode(), and visitOpNode().
Definition at line 61 of file OutputNewExprTreeVisitor.hpp.
Referenced by visitCallNode(), and visitConstSymNode().
bool OA::OutputNewExprTreeVisitor::mIsConst [private] |
Definition at line 59 of file OutputNewExprTreeVisitor.hpp.
Referenced by getIsConst().
1.6.1