Otawa
0.10
|
The node from a directed graph. More...
#include <otawa/graph/Graph.h>
Classes | |
class | Predecessor |
This class allows to iterates on the predecessors of a node. More... | |
class | Successor |
This class allows to iterates on the successors of a node. More... | |
Public Member Functions | |
Graph * | graph (void) const |
Get the container graph if any. More... | |
int | index (void) const |
Get the index of the node in the graph. More... | |
bool | hasSucc (void) const |
Test if the node has successors. More... | |
bool | hasPred (void) const |
Test if the node has predecessors. More... | |
int | countSucc (void) const |
Count the successors of the current node. More... | |
int | countPred (void) const |
Count the predecessors of the current node. More... | |
bool | isPredOf (const Node *node) |
Test if the current node is a predecessor of the given one. More... | |
bool | isSuccOf (const Node *node) |
Test if the current node is a successor of the given one. More... | |
Protected Member Functions | |
Node (Graph *graph=0) | |
Build a new node. More... | |
virtual | ~Node (void) |
Private Member Functions | |
void | unlink (void) |
Unlink the node, that is, remove its entering or leaving edges. More... | |
Private Attributes | |
Graph * | _graph |
int | idx |
Edge * | ins |
Edge * | outs |
Friends | |
class | Graph |
class | Edge |
The node from a directed graph.
|
inlineprotected |
|
protectedvirtual |
|
inline |
Count the predecessors of the current node.
References otawa::cfgio::edge().
Referenced by otawa::GenGraph< N, E >::GenNode::countPred(), and otawa::GenGraph< N, E >::GenNode::isPredOf().
|
inline |
Count the successors of the current node.
References otawa::cfgio::edge().
Referenced by otawa::GenGraph< N, E >::GenNode::countSucc().
|
inline |
Get the container graph if any.
References _graph.
Referenced by otawa::graph::Edge::Edge(), and otawa::graph::Graph::remove().
|
inline |
Test if the node has predecessors.
References ins.
Referenced by otawa::GenGraph< N, E >::GenNode::hasPred().
|
inline |
Test if the node has successors.
References outs.
Referenced by otawa::GenGraph< N, E >::GenNode::hasSucc().
|
inline |
Get the index of the node in the graph.
References idx.
Referenced by otawa::GenGraph< N, E >::GenNode::index(), and otawa::graph::Graph::indexOf().
|
inline |
Test if the current node is a predecessor of the given one.
node | Node to test. |
|
inline |
Test if the current node is a successor of the given one.
node | Node to test. |
Referenced by otawa::GenGraph< N, E >::GenNode::isSuccOf().
|
private |
Unlink the node, that is, remove its entering or leaving edges.
Referenced by otawa::graph::Graph::remove().
|
friend |
|
friend |
|
private |
Referenced by otawa::graph::Graph::add(), graph(), and otawa::graph::Graph::remove().
|
private |
Referenced by otawa::graph::Graph::add(), index(), and otawa::graph::Graph::remove().
|
private |
Referenced by otawa::graph::Edge::Edge(), hasPred(), and otawa::graph::Graph::remove().
|
private |
Referenced by otawa::graph::Edge::Edge(), hasSucc(), and otawa::graph::Graph::remove().