com.caucho.quercus.lib.spl
Interface Iterator

All Superinterfaces:
Traversable
All Known Subinterfaces:
OuterIterator, RecursiveIterator, SeekableIterator
All Known Implementing Classes:
ArrayIterator

public interface Iterator
extends Traversable


Method Summary
 Value current(Env env)
          Returns the current value.
 Value key(Env env)
          Returns the current key.
 void next(Env env)
          Advances to the next row.
 void rewind()
          Rewinds the iterator so it is at the first row.
 boolean valid()
          Returns true if the iterator currently points to a valid row.
 

Method Detail

current

Value current(Env env)
Returns the current value.


key

Value key(Env env)
Returns the current key.


next

void next(Env env)
Advances to the next row.


rewind

void rewind()
Rewinds the iterator so it is at the first row.


valid

boolean valid()
Returns true if the iterator currently points to a valid row.