![]() |
API 0.9.5
|
Defines an interface for enumerators. More...
#import <CPEnumerator.h>
Instance Methods | |
(CPArray) | - allObjects |
(id) | - nextObject |
Defines an interface for enumerators.
CPEnumerator is a superclass (with useless method bodies) that defines an interface for subclasses to follow. The purpose of an enumerator is to be a convenient system for traversing over the elements of a collection of objects.
Definition at line 2 of file CPEnumerator.h.
- (CPArray) allObjects |
Returns all objects in the collection in an array. No particular ordering is guaranteed.
Definition at line 52 of file CPEnumerator.j.
- (id) nextObject |
Returns the next object in the collection. No particular ordering is guaranteed.
Definition at line 43 of file CPEnumerator.j.