Digraph::InArcIt Class Reference

#include <lemon/concepts/digraph.h>

Inheritance diagram for Digraph::InArcIt:

Inheritance graph
[legend]

List of all members.


Detailed Description

This iterator goes trough the incoming arcs of a certain node of a digraph. Its usage is quite simple, for example you can count the number of outgoing arcs of a node n in digraph g of type Digraph as follows.
          int count=0;
          for(Digraph::InArcIt e(g, n); e!=INVALID; ++e) ++count;

Public Member Functions

 InArcIt ()
 Default constructor.
 InArcIt (const InArcIt &e)
 Copy constructor.
 InArcIt (Invalid)
 Initialize the iterator to be invalid.
 InArcIt (const Digraph &, const Node &)
 This constructor sets the iterator to first incoming arc.
 InArcIt (const Digraph &, const Arc &)
 Arc -> InArcIt conversion.
InArcItoperator++ ()
 Next incoming arc.

Constructor & Destructor Documentation

InArcIt (  )  [inline]

Warning:
The default constructor sets the iterator to an undefined value.

InArcIt ( const InArcIt e  )  [inline]

Copy constructor.

InArcIt ( Invalid   )  [inline]

Initialize the iterator to be invalid.

InArcIt ( const Digraph ,
const Node  
) [inline]

This constructor set the iterator to the first incoming arc of the node.

InArcIt ( const Digraph ,
const Arc  
) [inline]

Sets the iterator to the value of the trivial iterator e. This feature necessitates that each time we iterate the arc-set, the iteration order is the same.


Member Function Documentation

InArcIt& operator++ (  )  [inline]

Assign the iterator to the next inarc of the corresponding node.


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

Generated on Tue May 5 07:41:59 2009 for LEMON by  doxygen 1.5.6