Otawa  0.10
otawa::graph::Node::Successor Class Reference

This class allows to iterates on the successors of a node. More...

#include <otawa/graph/Graph.h>

Inheritance diagram for otawa::graph::Node::Successor:
elm::PreIterator< Successor, Node * >

Public Member Functions

 Successor (const Node *node)
 Build an iterator on the successor of the given node. More...
 
bool ended (void) const
 
void next (void)
 
Nodeitem (void) const
 
Edgeedge (void) const
 Get the edge leading to the current successor. More...
 
 operator bool (void) const
 
 operator Node * (void) const
 
Successoroperator++ (void)
 
Successoroperator++ (int)
 
Nodeoperator* (void) const
 
Nodeoperator-> (void) const
 

Private Attributes

Edge_edge
 

Detailed Description

This class allows to iterates on the successors of a node.

Constructor & Destructor Documentation

otawa::graph::Node::Successor::Successor ( const Node node)
inline

Build an iterator on the successor of the given node.

Parameters
nodeNode whose successors will be iterated.

Member Function Documentation

Edge * otawa::graph::Node::Successor::edge ( void  ) const
inline

Get the edge leading to the current successor.

Returns
Current edge.

Referenced by otawa::graph::Graph::OutIterator::item().

bool otawa::graph::Node::Successor::ended ( void  ) const
inline
Node * otawa::graph::Node::Successor::item ( void  ) const
inline
void otawa::graph::Node::Successor::next ( void  )
inline
elm::PreIterator< Successor , Node * >::operator bool ( void  ) const
inherited
elm::PreIterator< Successor , Node * >::operator Node * ( void  ) const
inherited
Node * elm::PreIterator< Successor , Node * >::operator* ( void  ) const
inherited
Successor & elm::PreIterator< Successor , Node * >::operator++ ( void  )
inherited
Successor & elm::PreIterator< Successor , Node * >::operator++ ( int  )
inherited
Node * elm::PreIterator< Successor , Node * >::operator-> ( void  ) const
inherited

Member Data Documentation

Edge* otawa::graph::Node::Successor::_edge
private

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