com.caucho.quercus.lib.spl
Interface Iterator

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

public interface Iterator
extends Traversable


Method Summary
 Value current()
          Returns the current value.
 Value key()
          Returns the current key.
 void next()
          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()
Returns the current value.


key

Value key()
Returns the current key.


next

void next()
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.