Class CPEnumerator

CPObject
    extended byCPEnumerator

@implementation CPEnumerator : CPObject

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.


Method Summary
-(CPArray)allObjects
          Returns all objects in the collection in an array.
-(id)nextObject
          Returns the next object in the collection.

Methods inherited from class CPObject
initialize, alloc, class, instanceMethodForSelector, instancesRespondToSelector, isSubclassOfClass, load, new, setVersion, superclass, version, init, autorelease, awakeAfterUsingCoder, class, classForCoder, classForKeyedArchiver, className, copy, dealloc, description, doesNotRecognizeSelector, forwardInvocation, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableCopy, performSelector, performSelector, performSelector, release, replacementObjectForArchiver, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, retain, self, superclass


Method Detail

allObjects

-(CPArray)allObjects
Returns all objects in the collection in an array. No particular ordering is guaranteed.

nextObject

-(id)nextObject
Returns the next object in the collection. No particular ordering is guaranteed.

Created on Sat Sep 13 14:15:43 PDT 2008