OA::OutputExprTreeVisitor Class Reference

#include <OutputExprTreeVisitor.hpp>

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

List of all members.

Public Member Functions

 OutputExprTreeVisitor (IRHandlesIRInterface &ir)
 ~OutputExprTreeVisitor ()
void visitExprTreeBefore (ExprTree &)
 called before root noded in the expression tree is visited
void visitExprTreeAfter (ExprTree &)
 called after root noded in the expression tree is visited
void visitNode (ExprTree::Node &)
void visitOpNode (ExprTree::OpNode &n)
void visitCallNode (ExprTree::CallNode &n)
void visitMemRefNode (ExprTree::MemRefNode &n)
void visitConstSymNode (ExprTree::ConstSymNode &n)
void visitConstValNode (ExprTree::ConstValNode &n)
void output (IRHandlesIRInterface &)
bool getIsConst ()

Private Attributes

bool mIsConst
int mId
IRHandlesIRInterfacemIR

Detailed Description

Definition at line 33 of file OutputExprTreeVisitor.hpp.


Constructor & Destructor Documentation

OA::OutputExprTreeVisitor::OutputExprTreeVisitor ( IRHandlesIRInterface ir  ) 

Definition at line 22 of file OutputExprTreeVisitor.cpp.

References mId.

OA::OutputExprTreeVisitor::~OutputExprTreeVisitor (  )  [inline]

Definition at line 36 of file OutputExprTreeVisitor.hpp.


Member Function Documentation

bool OA::OutputExprTreeVisitor::getIsConst (  )  [inline]

Definition at line 56 of file OutputExprTreeVisitor.hpp.

References mIsConst.

void OA::OutputExprTreeVisitor::output ( IRHandlesIRInterface  )  [virtual]

Implements OA::Annotation.

Definition at line 109 of file OutputExprTreeVisitor.cpp.

void OA::OutputExprTreeVisitor::visitCallNode ( ExprTree::CallNode n  )  [virtual]

Reimplemented from OA::ExprTreeVisitor.

Definition at line 69 of file OutputExprTreeVisitor.cpp.

References OA::ExprTree::CallNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

Here is the call graph for this function:

void OA::OutputExprTreeVisitor::visitConstSymNode ( ExprTree::ConstSymNode n  )  [virtual]

Reimplemented from OA::ExprTreeVisitor.

Definition at line 89 of file OutputExprTreeVisitor.cpp.

References OA::ExprTree::ConstSymNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

Here is the call graph for this function:

void OA::OutputExprTreeVisitor::visitConstValNode ( ExprTree::ConstValNode n  )  [virtual]

Reimplemented from OA::ExprTreeVisitor.

Definition at line 99 of file OutputExprTreeVisitor.cpp.

References OA::ExprTree::ConstValNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

Here is the call graph for this function:

void OA::OutputExprTreeVisitor::visitExprTreeAfter ( ExprTree  )  [inline, virtual]

called after root noded in the expression tree is visited

Implements OA::ExprTreeVisitor.

Definition at line 39 of file OutputExprTreeVisitor.hpp.

void OA::OutputExprTreeVisitor::visitExprTreeBefore ( ExprTree  )  [inline, virtual]

called before root noded in the expression tree is visited

Implements OA::ExprTreeVisitor.

Definition at line 38 of file OutputExprTreeVisitor.hpp.

void OA::OutputExprTreeVisitor::visitMemRefNode ( ExprTree::MemRefNode n  )  [virtual]

Reimplemented from OA::ExprTreeVisitor.

Definition at line 79 of file OutputExprTreeVisitor.cpp.

References OA::ExprTree::MemRefNode::getHandle(), mId, mIR, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

Here is the call graph for this function:

void OA::OutputExprTreeVisitor::visitNode ( ExprTree::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::ExprTreeVisitor.

Definition at line 30 of file OutputExprTreeVisitor.cpp.

void OA::OutputExprTreeVisitor::visitOpNode ( ExprTree::OpNode n  )  [virtual]

Member Data Documentation

Definition at line 60 of file OutputExprTreeVisitor.hpp.

Referenced by getIsConst().


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

Generated on Sat Oct 31 05:26:02 2009 for OpenAnalysis by  doxygen 1.6.1