23 it->
values=calloc(size,
sizeof(
void*));
78 if((it->
pos)<(it->
size))
return 1;
104 if(!it->
pos)
return 0;
127 if(!(n<0)&&!(n>it->
size))
int itPrev(Iterator it, void **val)
Provides the previous element of an iterator.
int itHasNext(Iterator it)
Checks if there is "next".
void ** values
Elements of this iterator.
int size
Number of elements of this iterator.
int itAt(Iterator it, int n, void **val)
Provides the element at the specified position of an iterator.
int itNext(Iterator it, void **val)
Provides the next element of an iterator.
int itGetPos(Iterator it)
Provides the current position of an iterator.
void itDelete(Iterator it)
Deletes an iterator.
int itSetPos(Iterator it, int n)
Sets the current position of an iterator.
int itAdd(Iterator it, void *val)
Adds an element to an iterator.
int capacity
Capacity of this iterator..
int itHasPrev(Iterator it)
Checks if there is "previous".
int pos
Current position of this iterator.
Implementation of an iterator.
Iterator newIt(int size)
Creates an iterator.