Home > Language Reference > Classes

Iterator Class

  + Object
    + Iterator

Description

The Iterator class provides a frame to implement iterators, which are pieces of code used to enumerate the content of container classes. This class is derivable and cloneable, but not instantiable.

You won't use the Iterator class directly, but instead you'll derive your own class from it, and implement an handler for the only event it provides. For more information about container classes and iterators, please refer to Iterable objects in the Programmer's Guide.

Members

MembersDescription
NextItem Event sent to advance to the next element.
Inherited from ObjectDescription
ClassID Returns the type identifier corresponding to the actual class of the object.
Implements Determines whether the object implements the features of a given class.
Iterate Event raised to iterate over the elements of a container object.
Recipient Recipient of events sent by the object.
Serialize Event raised to serialize the object content into a stream.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A