IPIterator (interface)
Usage
Linkage:
-lopenxds_adt
To use the interface:
#include <openxds.adt/IPIterator.h> using namespace openxds::adt;
Method Summary
Returns | Method-name | Throws |
---|---|---|
void | reset | |
IPosition(E)* | next | NoSuchElementException* |
bool | hasNext |
Methods
reset
void reset();
Causes
The iterator to be reset such that a call to next will return the first position of the iteration.
hasNext
bool hasNext();
Returns
TRUE, if another position could be returned by a call to next; otherwise FALSE.
next
IPosition<E>* next() throw (NoSuchElementException*);
Returns
A new IPosition instance, that the user is responsible for deallocating.
Throws
NoSuchElementException, if the iterator has no more items.