API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPEnumerator Class Reference

Defines an interface for enumerators. More...

#import <CPEnumerator.h>

+ Inheritance diagram for CPEnumerator:

Instance Methods

(CPArray) - allObjects
 
(id) - nextObject
 

Detailed Description

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.

Method Documentation

- (CPArray) allObjects
implementation

Returns all objects in the collection in an array. No particular ordering is guaranteed.

Definition at line 52 of file CPEnumerator.j.

- (id) nextObject
implementation

Returns the next object in the collection. No particular ordering is guaranteed.

Definition at line 43 of file CPEnumerator.j.


The documentation for this class was generated from the following files: