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

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

#include <otawa/graph/Graph.h>

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

Public Member Functions

 Predecessor (const Node *node)
 Build an iterator on the predecessors 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 predecessor. More...
 
 operator bool (void) const
 
 operator Node * (void) const
 
Predecessoroperator++ (void)
 
Predecessoroperator++ (int)
 
Nodeoperator* (void) const
 
Nodeoperator-> (void) const
 

Private Attributes

Edge_edge
 

Detailed Description

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

Constructor & Destructor Documentation

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

Build an iterator on the predecessors of the given node.

Parameters
nodeNode whose predecessors will be iterated.

Member Function Documentation

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

Get the edge leading to the current predecessor.

Returns
Current edge.

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

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

Member Data Documentation

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

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