OA::CallGraph::Node Class Reference

#include <CallGraph.hpp>

Inheritance diagram for OA::CallGraph::Node:

Inheritance graph
[legend]
Collaboration diagram for OA::CallGraph::Node:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Node ()
 Node (SymHandle s)
 ~Node ()
bool isDefined () const
 getId: An id unique within instances of CallGraph::Node
bool isCalled () const
ProcHandle getProc () const
SymHandle getProcSym () const
virtual void output (OA::IRHandlesIRInterface &ir)
void dump (std::ostream &os)
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)
void longdump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)
void add_def (ProcHandle h)
void add_call (CallHandle h)
OA_ptr< EdgesIteratorInterfacegetCallGraphIncomingEdgesIterator () const
OA_ptr< EdgesIteratorInterfacegetCallGraphOutgoingEdgesIterator () const
OA_ptr< NodesIteratorInterfacegetCallGraphSourceNodesIterator () const
OA_ptr< NodesIteratorInterfacegetCallGraphSinkNodesIterator () const

Private Attributes

SymHandle mSym
ProcHandle mProc
std::list< CallHandlemCalls

Friends

class NodeCallsIterator


Detailed Description

Definition at line 115 of file CallGraph.hpp.


Constructor & Destructor Documentation

OA::CallGraph::Node::Node (  ) 

Definition at line 85 of file CallGraph.cpp.

OA::CallGraph::Node::Node ( SymHandle  s  ) 

Definition at line 87 of file CallGraph.cpp.

OA::CallGraph::Node::~Node (  ) 

Definition at line 90 of file CallGraph.cpp.


Member Function Documentation

void OA::CallGraph::Node::add_call ( CallHandle  h  ) 

Definition at line 102 of file CallGraph.cpp.

References mCalls.

void OA::CallGraph::Node::add_def ( ProcHandle  h  ) 

Definition at line 100 of file CallGraph.cpp.

References mProc.

void OA::CallGraph::Node::dump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
)

void OA::CallGraph::Node::dump ( std::ostream &  os  )  [inline, virtual]

Reimplemented from OA::DGraph::NodeImplement.

Definition at line 167 of file CallGraph.hpp.

OA_ptr< EdgesIteratorInterface > OA::CallGraph::Node::getCallGraphIncomingEdgesIterator (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 313 of file CallGraph.cpp.

References OA::DGraph::NodeImplement::getIncomingEdgesIterator().

Here is the call graph for this function:

OA_ptr< EdgesIteratorInterface > OA::CallGraph::Node::getCallGraphOutgoingEdgesIterator (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 321 of file CallGraph.cpp.

References OA::DGraph::NodeImplement::getOutgoingEdgesIterator().

Here is the call graph for this function:

OA_ptr< NodesIteratorInterface > OA::CallGraph::Node::getCallGraphSinkNodesIterator (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 337 of file CallGraph.cpp.

References OA::DGraph::NodeImplement::getSinkNodesIterator().

Here is the call graph for this function:

OA_ptr< NodesIteratorInterface > OA::CallGraph::Node::getCallGraphSourceNodesIterator (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 329 of file CallGraph.cpp.

References OA::DGraph::NodeImplement::getSourceNodesIterator().

Here is the call graph for this function:

ProcHandle OA::CallGraph::Node::getProc (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 96 of file CallGraph.cpp.

References mProc.

SymHandle OA::CallGraph::Node::getProcSym (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 98 of file CallGraph.cpp.

References mSym.

bool OA::CallGraph::Node::isCalled (  )  const [virtual]

Implements OA::CallGraph::NodeInterface.

Definition at line 94 of file CallGraph.cpp.

References mCalls.

bool OA::CallGraph::Node::isDefined (  )  const [virtual]

getId: An id unique within instances of CallGraph::Node

Implements OA::CallGraph::NodeInterface.

Definition at line 92 of file CallGraph.cpp.

References OA::IRHandle::hval(), and mProc.

Referenced by output().

Here is the call graph for this function:

void OA::CallGraph::Node::longdump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
)

void OA::CallGraph::Node::output ( OA::IRHandlesIRInterface ir  )  [virtual]

Reimplemented from OA::DGraph::NodeImplement.

Definition at line 620 of file CallGraph.cpp.

References OA::IRHandle::hval(), isDefined(), mSym, OA::Annotation::sOutBuild, and OA::IRHandlesIRInterface::toString().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class NodeCallsIterator [friend]

Definition at line 171 of file CallGraph.hpp.


Member Data Documentation

Definition at line 214 of file CallGraph.hpp.

Referenced by add_call(), and isCalled().

Definition at line 213 of file CallGraph.hpp.

Referenced by add_def(), getProc(), and isDefined().

Definition at line 212 of file CallGraph.hpp.

Referenced by getProcSym(), and output().


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

Generated on Fri Jul 24 05:39:04 2009 for OpenADFortTk (extended to Open64) by  doxygen 1.5.7.1