ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DependenceNode Class Reference

#include <DependenceGraph.h>

Inheritance diagram for DependenceNode:
Collaboration diagram for DependenceNode:

Public Types

enum  NodeType {
  CONTROL =0,
  SGNODE =1,
  CALLSITE =2,
  ACTUALIN =3,
  ACTUALOUT =4,
  FORMALIN =5,
  FORMALOUT =6,
  ENTRY =7,
  ACTUALRETURN =8,
  FORMALRETURN =9,
  NUM_NODE_TYPES,
  CONTROL =0,
  SGNODE =1,
  CALLSITE =2,
  ACTUALIN =3,
  ACTUALOUT =4,
  FORMALIN =5,
  FORMALOUT =6,
  ENTRY =7,
  ACTUALRETURN =8,
  FORMALRETURN =9,
  NUM_NODE_TYPES
}
 
enum  NodeType {
  CONTROL =0,
  SGNODE =1,
  CALLSITE =2,
  ACTUALIN =3,
  ACTUALOUT =4,
  FORMALIN =5,
  FORMALOUT =6,
  ENTRY =7,
  ACTUALRETURN =8,
  FORMALRETURN =9,
  NUM_NODE_TYPES,
  CONTROL =0,
  SGNODE =1,
  CALLSITE =2,
  ACTUALIN =3,
  ACTUALOUT =4,
  FORMALIN =5,
  FORMALOUT =6,
  ENTRY =7,
  ACTUALRETURN =8,
  FORMALRETURN =9,
  NUM_NODE_TYPES
}
 

Public Member Functions

bool isDummyNode ()
 
 DependenceNode (SgNode *node)
 
 DependenceNode (NodeType type, SgNode *node=NULL, std::string depName="")
 
 DependenceNode (NodeType type, std::string depName)
 
virtual ~DependenceNode ()
 
void highlightNode ()
 
void unHighlightNode ()
 
bool isHighlighted ()
 
SgNodegetSgNode ()
 
NodeType getType ()
 
std::string getName ()
 
void setName (std::string newName)
 
bool isInterproc ()
 
bool isFormal ()
 
bool isActual ()
 
bool isFormalReturn ()
 
virtual void writeOut (std::ostream &os)
 virtual function to support displaying node information More...
 
bool isDummyNode ()
 
 DependenceNode (SgNode *node)
 
 DependenceNode (NodeType type, SgNode *node=NULL, std::string depName="")
 
 DependenceNode (NodeType type, std::string depName)
 
virtual ~DependenceNode ()
 
void highlightNode ()
 
void unHighlightNode ()
 
bool isHighlighted ()
 
SgNodegetSgNode ()
 
NodeType getType ()
 
std::string getName ()
 
void setName (std::string newName)
 
bool isInterproc ()
 
bool isFormal ()
 
bool isActual ()
 
bool isFormalReturn ()
 
virtual void writeOut (std::ostream &os)
 virtual function to support displaying node information More...
 
- Public Member Functions inherited from SimpleDirectedGraphNode
 ~SimpleDirectedGraphNode ()
 
std::set
< SimpleDirectedGraphNode * > 
getSuccessors ()
 get the nodes which are pointed to by the current node More...
 
std::set
< SimpleDirectedGraphNode * > 
getPredecessors ()
 get the nodes which point to the current node More...
 
void addSuccessor (SimpleDirectedGraphNode *n)
 add an edge from the current node to n More...
 
void addPredecessor (SimpleDirectedGraphNode *n)
 add an edge from n to the current node More...
 
bool hasSuccessor (SimpleDirectedGraphNode *n)
 test whether n is a successor of the current node More...
 
bool hasPredecessor (SimpleDirectedGraphNode *n)
 test whether n is a predecessor of the current node More...
 
int numSuccessors ()
 return the number of outgoing edges More...
 
int numPredecessors ()
 return the number of incoming edges More...
 
virtual ~SimpleDirectedGraphNode ()
 
std::set
< SimpleDirectedGraphNode * > 
getSuccessors ()
 get the nodes which are pointed to by the current node More...
 
std::set
< SimpleDirectedGraphNode * > 
getPredecessors ()
 get the nodes which point to the current node More...
 
void addSuccessor (SimpleDirectedGraphNode *n)
 add an edge from the current node to n More...
 
void addPredecessor (SimpleDirectedGraphNode *n)
 add an edge from n to the current node More...
 
void removeSuccessor (SimpleDirectedGraphNode *n)
 
void removePredecessor (SimpleDirectedGraphNode *n)
 
bool hasSuccessor (SimpleDirectedGraphNode *n)
 test whether n is a successor of the current node More...
 
bool hasPredecessor (SimpleDirectedGraphNode *n)
 test whether n is a predecessor of the current node More...
 
int numSuccessors ()
 return the number of outgoing edges More...
 
int numPredecessors ()
 return the number of incoming edges More...
 

Static Public Attributes

static const char * typeNames [NUM_NODE_TYPES]
 

Protected Attributes

bool highlight
 

Private Attributes

NodeType depType
 
SgNodesgNode
 
std::string name
 

Detailed Description

Definition at line 163 of file DependenceGraph.h.

Member Enumeration Documentation

Enumerator
CONTROL 
SGNODE 
CALLSITE 
ACTUALIN 
ACTUALOUT 
FORMALIN 
FORMALOUT 
ENTRY 
ACTUALRETURN 
FORMALRETURN 
NUM_NODE_TYPES 
CONTROL 
SGNODE 
CALLSITE 
ACTUALIN 
ACTUALOUT 
FORMALIN 
FORMALOUT 
ENTRY 
ACTUALRETURN 
FORMALRETURN 
NUM_NODE_TYPES 

Definition at line 174 of file DependenceGraph.h.

Enumerator
CONTROL 
SGNODE 
CALLSITE 
ACTUALIN 
ACTUALOUT 
FORMALIN 
FORMALOUT 
ENTRY 
ACTUALRETURN 
FORMALRETURN 
NUM_NODE_TYPES 
CONTROL 
SGNODE 
CALLSITE 
ACTUALIN 
ACTUALOUT 
FORMALIN 
FORMALOUT 
ENTRY 
ACTUALRETURN 
FORMALRETURN 
NUM_NODE_TYPES 

Definition at line 174 of file NEW_DependenceGraph.h.

Constructor & Destructor Documentation

DependenceNode::DependenceNode ( SgNode node)
inline

Definition at line 230 of file DependenceGraph.h.

DependenceNode::DependenceNode ( NodeType  type,
SgNode node = NULL,
std::string  depName = "" 
)
inline

Definition at line 233 of file DependenceGraph.h.

DependenceNode::DependenceNode ( NodeType  type,
std::string  depName 
)
inline

Definition at line 240 of file DependenceGraph.h.

virtual DependenceNode::~DependenceNode ( )
inlinevirtual

Definition at line 246 of file DependenceGraph.h.

DependenceNode::DependenceNode ( SgNode node)
inline

Definition at line 230 of file NEW_DependenceGraph.h.

DependenceNode::DependenceNode ( NodeType  type,
SgNode node = NULL,
std::string  depName = "" 
)
inline

Definition at line 233 of file NEW_DependenceGraph.h.

DependenceNode::DependenceNode ( NodeType  type,
std::string  depName 
)
inline

Definition at line 240 of file NEW_DependenceGraph.h.

virtual DependenceNode::~DependenceNode ( )
inlinevirtual

Definition at line 246 of file NEW_DependenceGraph.h.

Member Function Documentation

bool DependenceNode::isDummyNode ( )
inline

Definition at line 197 of file DependenceGraph.h.

void DependenceNode::highlightNode ( )
inline

Definition at line 248 of file DependenceGraph.h.

void DependenceNode::unHighlightNode ( )
inline

Definition at line 252 of file DependenceGraph.h.

bool DependenceNode::isHighlighted ( )
inline

Definition at line 256 of file DependenceGraph.h.

SgNode* DependenceNode::getSgNode ( )
inline

Definition at line 262 of file DependenceGraph.h.

NodeType DependenceNode::getType ( )
inline

Definition at line 268 of file DependenceGraph.h.

std::string DependenceNode::getName ( )
inline

Definition at line 274 of file DependenceGraph.h.

References name.

void DependenceNode::setName ( std::string  newName)
inline

Definition at line 279 of file DependenceGraph.h.

References name.

bool DependenceNode::isInterproc ( )
inline

Definition at line 289 of file DependenceGraph.h.

bool DependenceNode::isFormal ( )
inline

Definition at line 306 of file DependenceGraph.h.

bool DependenceNode::isActual ( )
inline

Definition at line 319 of file DependenceGraph.h.

bool DependenceNode::isFormalReturn ( )
inline

Definition at line 330 of file DependenceGraph.h.

References isSgFunctionDeclaration().

virtual void DependenceNode::writeOut ( std::ostream &  os)
inlinevirtual
bool DependenceNode::isDummyNode ( )
inline

Definition at line 197 of file NEW_DependenceGraph.h.

void DependenceNode::highlightNode ( )
inline

Definition at line 248 of file NEW_DependenceGraph.h.

void DependenceNode::unHighlightNode ( )
inline

Definition at line 252 of file NEW_DependenceGraph.h.

bool DependenceNode::isHighlighted ( )
inline

Definition at line 256 of file NEW_DependenceGraph.h.

SgNode* DependenceNode::getSgNode ( )
inline

Definition at line 262 of file NEW_DependenceGraph.h.

NodeType DependenceNode::getType ( )
inline

Definition at line 268 of file NEW_DependenceGraph.h.

std::string DependenceNode::getName ( )
inline

Definition at line 274 of file NEW_DependenceGraph.h.

References name.

void DependenceNode::setName ( std::string  newName)
inline

Definition at line 279 of file NEW_DependenceGraph.h.

References name.

bool DependenceNode::isInterproc ( )
inline

Definition at line 289 of file NEW_DependenceGraph.h.

bool DependenceNode::isFormal ( )
inline

Definition at line 306 of file NEW_DependenceGraph.h.

bool DependenceNode::isActual ( )
inline

Definition at line 319 of file NEW_DependenceGraph.h.

bool DependenceNode::isFormalReturn ( )
inline

Definition at line 330 of file NEW_DependenceGraph.h.

References isSgFunctionDeclaration().

virtual void DependenceNode::writeOut ( std::ostream &  os)
inlinevirtual

Member Data Documentation

static const char * DependenceNode::typeNames
static

Definition at line 209 of file DependenceGraph.h.

NodeType DependenceNode::depType
private

Definition at line 443 of file DependenceGraph.h.

SgNode * DependenceNode::sgNode
private

Definition at line 444 of file DependenceGraph.h.

std::string DependenceNode::name
private

Definition at line 446 of file DependenceGraph.h.

bool DependenceNode::highlight
protected

Definition at line 449 of file DependenceGraph.h.


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