ROSE
0.9.6a
|
#include <ControlFlowGraph.h>
Public Types | |
enum | Type { SGNODE, EMPTY, SGNODE, EMPTY } |
enum | Type { SGNODE, EMPTY, SGNODE, EMPTY } |
Public Member Functions | |
ControlNode (SgNode *node=NULL) | |
SgNode * | getNode () |
Type | getType () |
int | getID (ControlFlowGraph::ID_dir dir) |
void | setID (int id, ControlFlowGraph::ID_dir dir) |
virtual void | writeOut (std::ostream &os) |
virtual function to support displaying node information More... | |
ControlNode (SgNode *node=NULL) | |
SgNode * | getNode () |
Type | getType () |
int | getID (ControlFlowGraph::ID_dir dir) |
void | setID (int id, ControlFlowGraph::ID_dir dir) |
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... | |
Private Attributes | |
SgNode * | _node |
Type | _type |
int | _forID |
int | _backID |
This class is a node in the CFG. It can either be an SgNode or it can be a special entry or exit node (since there are some empty blocks in the CFG).
Definition at line 108 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
Enumerator | |
---|---|
SGNODE | |
EMPTY | |
SGNODE | |
EMPTY |
Definition at line 112 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
Enumerator | |
---|---|
SGNODE | |
EMPTY | |
SGNODE | |
EMPTY |
Definition at line 112 of file staticInterproceduralSlicing/ControlFlowGraph.h.
|
inline |
|
inline |
|
inline |
Definition at line 125 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
References _node.
|
inline |
Definition at line 126 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
References _type.
|
inline |
Definition at line 128 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
References _backID, _forID, and DominatorTreesAndDominanceFrontiers::ControlFlowGraph::FORWARD.
Referenced by DominatorTreesAndDominanceFrontiers::DominatorTree::getDom().
|
inline |
Definition at line 136 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
References _backID, _forID, and DominatorTreesAndDominanceFrontiers::ControlFlowGraph::FORWARD.
|
inlinevirtual |
virtual function to support displaying node information
Reimplemented from SimpleDirectedGraphNode.
Definition at line 144 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
References _backID, _forID, _node, _type, EMPTY, escapeString(), SgNode::sage_class_name(), and SgNode::unparseToString().
|
inline |
Definition at line 125 of file staticInterproceduralSlicing/ControlFlowGraph.h.
References _node.
|
inline |
Definition at line 126 of file staticInterproceduralSlicing/ControlFlowGraph.h.
References _type.
|
inline |
Definition at line 128 of file staticInterproceduralSlicing/ControlFlowGraph.h.
References _backID, _forID, and DominatorTreesAndDominanceFrontiers::ControlFlowGraph::FORWARD.
|
inline |
Definition at line 136 of file staticInterproceduralSlicing/ControlFlowGraph.h.
References _backID, _forID, and DominatorTreesAndDominanceFrontiers::ControlFlowGraph::FORWARD.
|
inlinevirtual |
virtual function to support displaying node information
Reimplemented from SimpleDirectedGraphNode.
Definition at line 144 of file staticInterproceduralSlicing/ControlFlowGraph.h.
References _backID, _forID, _node, _type, EMPTY, escapeString(), SgNode::sage_class_name(), and SgNode::unparseToString().
|
private |
Definition at line 160 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
Referenced by ControlNode(), getNode(), and writeOut().
|
private |
Definition at line 161 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
Referenced by ControlNode(), getType(), and writeOut().
|
private |
Definition at line 163 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
Referenced by getID(), setID(), and writeOut().
|
private |
Definition at line 164 of file dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h.
Referenced by getID(), setID(), and writeOut().