17 typedef struct sIterator
int itPrev(Iterator it, void **val)
Provides the previous element of an iterator.
int itHasNext(Iterator it)
Checks if there is "next".
int itGetPos(Iterator it)
Provides the current position of an iterator.
int itNext(Iterator it, void **val)
Provides the next element of an iterator.
void ** values
Elements of this iterator.
int itHasPrev(Iterator it)
Checks if there is "previous".
SIterator * Iterator
Iterator definition.
int size
Number of elements of this iterator.
void itDelete(Iterator it)
Deletes an iterator.
int itAdd(Iterator it, void *val)
Adds an element to an iterator.
int capacity
Capacity of this iterator..
int itSetPos(Iterator it, int n)
Sets the current position of an iterator.
int itAt(Iterator it, int index, void **elem)
Provides the element at the specified position of an iterator.
Iterator newIt(int size)
Creates an iterator.
int pos
Current position of this iterator.