OA::EvalToConstVisitor Class Reference

#include <EvalToConstVisitor.hpp>

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

List of all members.

Public Member Functions

 EvalToConstVisitor (OA_ptr< EvalToConstVisitorIRInterface > ir, OA_ptr< ReachConsts::Interface > rc)
 ~EvalToConstVisitor ()
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)
OA_ptr< ConstValBasicInterfacegetConstVal ()
 interface for results of visiting the expression tree

Private Attributes

OA_ptr< ConstValBasicInterfacemEvalResult
OA_ptr
< EvalToConstVisitorIRInterface
mIR
OA_ptr< ReachConsts::InterfacemReachConsts

Detailed Description

Definition at line 30 of file EvalToConstVisitor.hpp.


Constructor & Destructor Documentation

OA::EvalToConstVisitor::EvalToConstVisitor ( OA_ptr< EvalToConstVisitorIRInterface ir,
OA_ptr< ReachConsts::Interface rc 
)

Definition at line 22 of file EvalToConstVisitor.cpp.

References mEvalResult.

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

Definition at line 34 of file EvalToConstVisitor.hpp.


Member Function Documentation

OA_ptr<ConstValBasicInterface> OA::EvalToConstVisitor::getConstVal (  )  [inline]
void OA::EvalToConstVisitor::visitCallNode ( ExprTree::CallNode n  )  [virtual]

Reimplemented from OA::ExprTreeVisitor.

Definition at line 107 of file EvalToConstVisitor.cpp.

References mEvalResult.

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

Reimplemented from OA::ExprTreeVisitor.

Definition at line 131 of file EvalToConstVisitor.cpp.

References OA::ExprTree::ConstSymNode::getHandle(), mEvalResult, and mIR.

Here is the call graph for this function:

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

Reimplemented from OA::ExprTreeVisitor.

Definition at line 136 of file EvalToConstVisitor.cpp.

References OA::ExprTree::ConstValNode::getHandle(), mEvalResult, and mIR.

Here is the call graph for this function:

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

called after root noded in the expression tree is visited

Implements OA::ExprTreeVisitor.

Definition at line 37 of file EvalToConstVisitor.hpp.

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

called before root noded in the expression tree is visited

Implements OA::ExprTreeVisitor.

Definition at line 36 of file EvalToConstVisitor.hpp.

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

Reimplemented from OA::ExprTreeVisitor.

Definition at line 112 of file EvalToConstVisitor.cpp.

References OA::ExprTree::MemRefNode::getHandle(), mEvalResult, mReachConsts, and OA::OA_ptr< T >::ptrEqual().

Here is the call graph for this function:

void OA::EvalToConstVisitor::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 31 of file EvalToConstVisitor.cpp.

References mEvalResult.

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

Member Data Documentation

Definition at line 57 of file EvalToConstVisitor.hpp.

Referenced by visitConstSymNode(), visitConstValNode(), and visitOpNode().

Definition at line 58 of file EvalToConstVisitor.hpp.

Referenced by visitMemRefNode().


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

Generated on Sat Oct 31 05:25:55 2009 for OpenAnalysis by  doxygen 1.6.1