Otawa  0.10
otawa::GenGraph< N, E >::GenNode Class Reference

#include <otawa/graph/GenGraph.h>

Inheritance diagram for otawa::GenGraph< N, E >::GenNode:
otawa::graph::Node otawa::ccg::Node otawa::ExeGraph< N >::ExeNode otawa::ParExeNode otawa::pfg::BB otawa::LiExeNode otawa::ParamExeNode

Public Member Functions

int index (void) const
 
bool hasSucc (void) const
 
bool hasPred (void) const
 
int countSucc (void) const
 
int countPred (void) const
 
bool isPredOf (const GenNode *node)
 
bool isSuccOf (const GenNode *node)
 

Protected Member Functions

 GenNode (graph::Graph *graph=0)
 
virtual ~GenNode (void)
 

Private Member Functions

Graphgraph (void) const
 Get the container graph if any. 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...
 

Friends

class GenGraph< N, E >
 

Constructor & Destructor Documentation

template<class N, class E>
otawa::GenGraph< N, E >::GenNode::GenNode ( graph::Graph graph = 0)
inlineprotected
template<class N, class E>
virtual otawa::GenGraph< N, E >::GenNode::~GenNode ( void  )
inlineprotectedvirtual

Member Function Documentation

template<class N, class E>
int otawa::GenGraph< N, E >::GenNode::countPred ( void  ) const
inline
template<class N, class E>
int otawa::GenGraph< N, E >::GenNode::countSucc ( void  ) const
inline
Graph * otawa::graph::Node::graph ( void  ) const
inlineinherited

Get the container graph if any.

Returns
Container graph or null.

References otawa::graph::Node::_graph.

Referenced by otawa::graph::Edge::Edge(), and otawa::graph::Graph::remove().

template<class N, class E>
bool otawa::GenGraph< N, E >::GenNode::hasPred ( void  ) const
inline
template<class N, class E>
bool otawa::GenGraph< N, E >::GenNode::hasSucc ( void  ) const
inline
template<class N, class E>
bool otawa::GenGraph< N, E >::GenNode::isPredOf ( const GenNode node)
inline
bool otawa::graph::Node::isPredOf ( const Node node)
inlineinherited

Test if the current node is a predecessor of the given one.

Parameters
nodeNode to test.
Returns
True if the current is a predecessor, false else.
template<class N, class E>
bool otawa::GenGraph< N, E >::GenNode::isSuccOf ( const GenNode node)
inline
bool otawa::graph::Node::isSuccOf ( const Node node)
inlineinherited

Test if the current node is a successor of the given one.

Parameters
nodeNode to test.
Returns
True if the current is a successor, false else.

Referenced by otawa::GenGraph< N, E >::GenNode::isSuccOf().

Friends And Related Function Documentation

template<class N, class E>
friend class GenGraph< N, E >
friend

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