Public Member Functions | Private Attributes | Static Private Attributes

OA::ExprTree::OpNode Class Reference

#include <CompareExprTree.hpp>

Inheritance diagram for OA::ExprTree::OpNode:
Inheritance graph
[legend]
Collaboration diagram for OA::ExprTree::OpNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OpNode ()
 OpNode (OpHandle h)
virtual ~OpNode ()
OA_ptr< Nodecopy ()
 return a copy of self
bool isaOpNode ()
 isa methods, default for all is false
OpHandle getHandle ()
void dump (std::ostream &os)
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)
void acceptVisitor (ExprTreeVisitor &pVisitor)
 pass visitor to nodes in postorder and then accept visitor on tree
void output (IRHandlesIRInterface &ir)
bool operator< (Node &other)
 an ordering for expression trees, needed for use within STL containers
bool operator== (Node &other)
virtual int getOrder ()
 OpNode ()
 OpNode (OpHandle h)
virtual ~OpNode ()
OA_ptr< Nodecopy ()
 return a copy of self
bool isaOpNode ()
 isa methods, default for all is false
OpHandle getHandle ()
void dump (std::ostream &os)
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)
void acceptVisitor (ExprTreeVisitor &pVisitor)
 pass visitor to nodes in postorder and then accept visitor on tree
void output (IRHandlesIRInterface &ir)
bool operator< (Node &other)
 an ordering for expression trees, needed for use within STL containers
bool operator== (Node &other)
virtual int getOrder ()

Private Attributes

OpHandle mHandle

Static Private Attributes

static const int sOrder = 100

Detailed Description

Definition at line 132 of file CompareExprTree.hpp.


Constructor & Destructor Documentation

OA::ExprTree::OpNode::OpNode (  )  [inline]

Definition at line 134 of file CompareExprTree.hpp.

OA::ExprTree::OpNode::OpNode ( OpHandle  h  )  [inline]

Definition at line 135 of file CompareExprTree.hpp.

virtual OA::ExprTree::OpNode::~OpNode (  )  [inline, virtual]

Definition at line 136 of file CompareExprTree.hpp.

OA::ExprTree::OpNode::OpNode (  )  [inline]

Definition at line 145 of file ExprTree.hpp.

OA::ExprTree::OpNode::OpNode ( OpHandle  h  )  [inline]

Definition at line 146 of file ExprTree.hpp.

virtual OA::ExprTree::OpNode::~OpNode (  )  [inline, virtual]

Definition at line 147 of file ExprTree.hpp.


Member Function Documentation

void OA::ExprTree::OpNode::acceptVisitor ( ExprTreeVisitor  )  [virtual]

pass visitor to nodes in postorder and then accept visitor on tree

Implements OA::ExprTree::Node.

Definition at line 195 of file CompareExprTree.cpp.

void OA::ExprTree::OpNode::acceptVisitor ( ExprTreeVisitor  )  [virtual]

pass visitor to nodes in postorder and then accept visitor on tree

Implements OA::ExprTree::Node.

OA_ptr<Node> OA::ExprTree::OpNode::copy (  )  [inline, virtual]

return a copy of self

Implements OA::ExprTree::Node.

Definition at line 150 of file ExprTree.hpp.

OA_ptr<Node> OA::ExprTree::OpNode::copy (  )  [inline, virtual]

return a copy of self

Implements OA::ExprTree::Node.

Definition at line 139 of file CompareExprTree.hpp.

void OA::ExprTree::OpNode::dump ( std::ostream &  os  )  [inline, virtual]

Reimplemented from OA::ExprTree::Node.

Definition at line 144 of file CompareExprTree.hpp.

Referenced by output().

void OA::ExprTree::OpNode::dump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
) [virtual]

Reimplemented from OA::ExprTree::Node.

Definition at line 182 of file CompareExprTree.cpp.

void OA::ExprTree::OpNode::dump ( std::ostream &  os  )  [inline, virtual]

Reimplemented from OA::ExprTree::Node.

Definition at line 155 of file ExprTree.hpp.

void OA::ExprTree::OpNode::dump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
) [virtual]

Reimplemented from OA::ExprTree::Node.

OpHandle OA::ExprTree::OpNode::getHandle (  )  [inline]
OpHandle OA::ExprTree::OpNode::getHandle (  )  [inline]

Definition at line 154 of file ExprTree.hpp.

virtual int OA::ExprTree::OpNode::getOrder (  )  [inline, virtual]

Reimplemented from OA::ExprTree::Node.

Definition at line 170 of file ExprTree.hpp.

virtual int OA::ExprTree::OpNode::getOrder (  )  [inline, virtual]

Reimplemented from OA::ExprTree::Node.

Definition at line 159 of file CompareExprTree.hpp.

bool OA::ExprTree::OpNode::isaOpNode (  )  [inline, virtual]

isa methods, default for all is false

Reimplemented from OA::ExprTree::Node.

Definition at line 142 of file CompareExprTree.hpp.

bool OA::ExprTree::OpNode::isaOpNode (  )  [inline, virtual]

isa methods, default for all is false

Reimplemented from OA::ExprTree::Node.

Definition at line 153 of file ExprTree.hpp.

bool OA::ExprTree::OpNode::operator< ( Node other  )  [virtual]

an ordering for expression trees, needed for use within STL containers

Reimplemented from OA::ExprTree::Node.

bool OA::ExprTree::OpNode::operator< ( Node other  )  [virtual]

an ordering for expression trees, needed for use within STL containers

Reimplemented from OA::ExprTree::Node.

Definition at line 200 of file CompareExprTree.cpp.

References OA::ExprTreeVisitor::visitOpNode().

Here is the call graph for this function:

bool OA::ExprTree::OpNode::operator== ( Node other  )  [virtual]

check if two memory references are equal at the level of accuracy provided by the MemRefExpr approximation

Reimplemented from OA::ExprTree::Node.

bool OA::ExprTree::OpNode::operator== ( Node other  )  [virtual]

check if two memory references are equal at the level of accuracy provided by the MemRefExpr approximation

Reimplemented from OA::ExprTree::Node.

Definition at line 217 of file CompareExprTree.cpp.

void OA::ExprTree::OpNode::output ( IRHandlesIRInterface ir  )  [virtual]

Reimplemented from OA::ExprTree::Node.

void OA::ExprTree::OpNode::output ( IRHandlesIRInterface ir  )  [virtual]

Reimplemented from OA::ExprTree::Node.

Definition at line 188 of file CompareExprTree.cpp.

References dump(), and mHandle.

Here is the call graph for this function:


Member Data Documentation

Definition at line 163 of file CompareExprTree.hpp.

Referenced by output().

static const int OA::ExprTree::OpNode::sOrder = 100 [static, private]

Reimplemented from OA::ExprTree::Node.

Definition at line 162 of file CompareExprTree.hpp.


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