libgexf::EdgeIter Class Reference

Iterator on edges. More...

#include <edgeiter.h>

Inheritance diagram for libgexf::EdgeIter:

libgexf::AbstractIter

List of all members.

Public Member Functions

 EdgeIter (const libgexf::Graph *g)
 Constructor.
EdgeIterbegin ()
 Init.
bool hasNext () const
 Test next element in collection.
libgexf::t_id next ()
 Iterate.
libgexf::t_id currentSource () const
 Get source node.
libgexf::t_id currentTarget () const
 Get target node.
float currentProperty (libgexf::t_edge_property prop) const
 Get topological property value.


Detailed Description

Iterator on edges.

Constructor & Destructor Documentation

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

Constructor.

Parameters:
g : Reference to the Graph object


Member Function Documentation

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

Init.

Initialize (or re-initialize) the iterator.

Returns:
an instance of the iterator

Implements libgexf::AbstractIter.

bool libgexf::EdgeIter::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::EdgeIter::next (  )  [virtual]

Iterate.

Get next element in collection.

Returns:
The edge ID.

Implements libgexf::AbstractIter.

t_id libgexf::EdgeIter::currentSource (  )  const

Get source node.

Returns:
The node id of the source

t_id libgexf::EdgeIter::currentTarget (  )  const

Get target node.

Returns:
The node id of the target

float libgexf::EdgeIter::currentProperty ( libgexf::t_edge_property  prop  )  const

Get topological property value.

Parameters:
prop : Topological edge property name
Returns:
Property value or 0.0 by default


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

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