Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StaticSymGraph::NodeIt Class Reference

#include <lemon/concept/sym_graph.h>

Inheritance diagram for StaticSymGraph::NodeIt:

Inheritance graph
[legend]
Collaboration diagram for StaticSymGraph::NodeIt:

Collaboration graph
[legend]
List of all members.

Detailed Description

This iterator goes through each node. Its usage is quite simple, for example you can count the number of nodes in graph g of type Graph like this:
          int count=0;
          for (Graph::NodeIt n(g); n!=INVALID; ++n) ++count;

Definition at line 119 of file sym_graph.h.

Public Member Functions

 NodeIt ()
 Default constructor.
 NodeIt (const NodeIt &)
 Copy constructor.
 NodeIt (Invalid)
 Invalid constructor & conversion.
 NodeIt (const StaticSymGraph &g)
 Sets the iterator to the first node.
 NodeIt (const StaticSymGraph &g, const Node &n)
 Node -> NodeIt conversion.
NodeItoperator++ ()
 Next node.


Constructor & Destructor Documentation

NodeIt  )  [inline]
 

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

Definition at line 125 of file sym_graph.h.

NodeIt const NodeIt  )  [inline]
 

Copy constructor.

Definition at line 130 of file sym_graph.h.

NodeIt Invalid   )  [inline]
 

Initialize the iterator to be invalid.

See also:
Invalid for more details.

Definition at line 135 of file sym_graph.h.

NodeIt const StaticSymGraph g  )  [inline]
 

Sets the iterator to the first node of g.

Definition at line 140 of file sym_graph.h.

NodeIt const StaticSymGraph g,
const Node n
[inline]
 

Sets the iterator to the node of g pointed by the trivial iterator n. This feature necessitates that each time we iterate the edge-set, the iteration order is the same.

Definition at line 147 of file sym_graph.h.


Member Function Documentation

NodeIt& operator++  )  [inline]
 

Assign the iterator to the next node.

Definition at line 152 of file sym_graph.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 15:02:43 2005 for LEMON by  doxygen 1.4.1