IIterator (interface)

Usage

Linkage:

-lopenxds_adt

To use the interface:

#include <openxds.adt/IIterator.h>

using namespace openxds::adt;

Method Summary

ReturnsMethod-nameThrows
voidreset
E* next NoSuchElementException*
boolhasNext

Methods


reset

void reset();

Causes

The iterator to be reset such that a call to next will return the first element of the iteration.


hasNext

bool hasNext();

Returns

TRUE, if another element could be returned by a call to next; otherwise FALSE.


next

E* next() throw (NoSuchElementException*);

Returns

A reference to the next element in the iteration.

Throws

NoSuchElementException, if the iterator has no more items.