ROSE
0.9.6a
|
#include <SimpleDirectedGraph.h>
Public Member Functions | |
~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 void | writeOut (std::ostream &os) |
virtual function to support displaying node information 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... | |
virtual void | writeOut (std::ostream &os) |
virtual function to support displaying node information More... | |
Private Attributes | |
std::set < SimpleDirectedGraphNode * > | _succs |
the set of neighbors connected by outgoing edges More... | |
std::set < SimpleDirectedGraphNode * > | _preds |
the set of neighbors connected by incoming edges More... | |
This is a node in the directed graph. All the connectivity information for the graph is captured in this (by way of the successor and predecessor sets).
This is a much simpler graph mechanism than that provided by util/graphs. It places most of the onus of edge bookkeeping on the nodes themselves.
Definition at line 27 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
|
inline |
Definition at line 32 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
|
inlinevirtual |
Definition at line 33 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
|
inline |
get the nodes which are pointed to by the current node
Definition at line 35 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _succs.
Referenced by SimpleDirectedGraph::getReachable(), and SimpleDirectedGraph::writeDot().
|
inline |
get the nodes which point to the current node
Definition at line 37 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _preds.
Referenced by SimpleDirectedGraph::getReachable().
|
inline |
add an edge from the current node to n
Definition at line 40 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _succs.
Referenced by SimpleDirectedGraph::addLink().
|
inline |
add an edge from n to the current node
Definition at line 42 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _preds.
Referenced by SimpleDirectedGraph::addLink().
|
inline |
test whether n is a successor of the current node
Definition at line 45 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _succs.
Referenced by SimpleDirectedGraph::linkExists().
|
inline |
test whether n is a predecessor of the current node
Definition at line 47 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _preds.
|
inline |
return the number of outgoing edges
Definition at line 50 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _succs.
|
inline |
return the number of incoming edges
Definition at line 52 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
References _preds.
|
inlinevirtual |
virtual function to support displaying node information
Reimplemented in DependenceNode, DependenceNode, DominatorTreesAndDominanceFrontiers::ControlNode, and DominatorTreesAndDominanceFrontiers::ControlNode.
Definition at line 55 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
Referenced by SimpleDirectedGraph::_displayData().
|
inline |
get the nodes which are pointed to by the current node
Definition at line 36 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _succs.
|
inline |
get the nodes which point to the current node
Definition at line 38 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _preds.
|
inline |
add an edge from the current node to n
Definition at line 41 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _succs.
|
inline |
add an edge from n to the current node
Definition at line 43 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _preds.
|
inline |
Definition at line 45 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _succs.
Referenced by SimpleDirectedGraph::removeLink().
|
inline |
Definition at line 46 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _preds.
Referenced by SimpleDirectedGraph::removeLink().
|
inline |
test whether n is a successor of the current node
Definition at line 49 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _succs.
|
inline |
test whether n is a predecessor of the current node
Definition at line 51 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _preds.
|
inline |
return the number of outgoing edges
Definition at line 54 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _succs.
|
inline |
return the number of incoming edges
Definition at line 56 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
References _preds.
|
inlinevirtual |
virtual function to support displaying node information
Reimplemented in DependenceNode, DependenceNode, DominatorTreesAndDominanceFrontiers::ControlNode, and DominatorTreesAndDominanceFrontiers::ControlNode.
Definition at line 59 of file staticInterproceduralSlicing/SimpleDirectedGraph.h.
|
private |
the set of neighbors connected by outgoing edges
Definition at line 64 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
Referenced by addSuccessor(), getSuccessors(), hasSuccessor(), numSuccessors(), and removeSuccessor().
|
private |
the set of neighbors connected by incoming edges
Definition at line 66 of file dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h.
Referenced by addPredecessor(), getPredecessors(), hasPredecessor(), numPredecessors(), and removePredecessor().