OA::OutputNewExprTreeVisitor Class Reference

#include <OutputNewExprTreeVisitor.hpp>

Inheritance diagram for OA::OutputNewExprTreeVisitor:
Inheritance graph
[legend]
Collaboration diagram for OA::OutputNewExprTreeVisitor:
Collaboration graph
[legend]

List of all members.

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
IRHandlesIRInterfacemIR

Detailed Description

Definition at line 32 of file OutputNewExprTreeVisitor.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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.

Here is the call graph for this function:

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]

Member Data Documentation

Definition at line 61 of file OutputNewExprTreeVisitor.hpp.

Referenced by visitCallNode(), and visitConstSymNode().

Definition at line 59 of file OutputNewExprTreeVisitor.hpp.

Referenced by getIsConst().


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

Generated on Sat Oct 31 05:27:45 2009 for OpenAnalysis by  doxygen 1.6.1