libgexf::AbstractIter Class Reference

Iterator Interface. More...

#include <abstractiter.h>

Inheritance diagram for libgexf::AbstractIter:

libgexf::AttributeIter libgexf::AttValueIter libgexf::EdgeIter libgexf::NodeIter

List of all members.

Public Member Functions

virtual AbstractIterbegin ()=0
 Init.
virtual bool hasNext () const =0
 Test next element in collection.
virtual libgexf::t_id next ()=0
 Iterate.


Detailed Description

Iterator Interface.

Member Function Documentation

virtual AbstractIter* libgexf::AbstractIter::begin (  )  [pure virtual]

Init.

Initialize (or re-initialize) the iterator.

Returns:
an instance of the iterator

Implemented in libgexf::AttributeIter, libgexf::AttValueIter, libgexf::EdgeIter, and libgexf::NodeIter.

virtual bool libgexf::AbstractIter::hasNext (  )  const [pure virtual]

Test next element in collection.

Verify if another element exists.

Returns:
true if another element exists, false otherwise.

Implemented in libgexf::AttributeIter, libgexf::AttValueIter, libgexf::EdgeIter, and libgexf::NodeIter.

virtual libgexf::t_id libgexf::AbstractIter::next (  )  [pure virtual]

Iterate.

Get next element in collection.

Returns:
The element ID.

Implemented in libgexf::AttributeIter, libgexf::AttValueIter, libgexf::EdgeIter, and libgexf::NodeIter.


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

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