libgexf::NodeIter Class Reference

Iterator on nodes. More...

#include <nodeiter.h>

Inheritance diagram for libgexf::NodeIter:

libgexf::AbstractIter

List of all members.

Public Member Functions

 NodeIter (const libgexf::Graph *g)
 Constructor.
NodeIterbegin ()
 Init.
bool hasNext () const
 Test next element in collection.
libgexf::t_id next ()
 Iterate.


Detailed Description

Iterator on nodes.

Constructor & Destructor Documentation

libgexf::NodeIter::NodeIter ( const libgexf::Graph g  )  [explicit]

Constructor.

Parameters:
g : Reference to the Graph object


Member Function Documentation

NodeIter * libgexf::NodeIter::begin (  )  [virtual]

Init.

Initialize (or re-initialize) the iterator.

Returns:
an instance of the iterator

Implements libgexf::AbstractIter.

bool libgexf::NodeIter::hasNext (  )  const [virtual]

Test next element in collection.

Verify if another element exists.

Returns:
true if another element exists, false otherwise.

Implements libgexf::AbstractIter.

t_id libgexf::NodeIter::next (  )  [virtual]

Iterate.

Get next element in collection.

Returns:
The node ID.

Implements libgexf::AbstractIter.


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

Generated on Fri Dec 11 00:33:34 2009 for libgexf by  doxygen 1.5.6