19 OF_ASSUME_NONNULL_BEGIN
23 @class OFArray OF_GENERIC(ObjectType);
46 #ifdef OF_HAVE_GENERICS
50 # define ObjectType id
74 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
89 #define of_fast_enumeration_state_t NSFastEnumerationState
90 #ifndef NSINTEGER_DEFINED
95 id __unsafe_unretained OF_NULLABLE *OF_NULLABLE
itemsPtr;
99 unsigned long extra[5];
123 objects: (
id __unsafe_unretained OF_NONNULL
128 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:95
A protocol for fast enumeration.
Definition: OFEnumerator.h:111
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
unsigned long *OF_NULLABLE mutationsPtr
Arbitrary state information to detect mutations.
Definition: OFEnumerator.h:97
void reset()
Resets the enumerator, so the next call to nextObject returns the first object again.
Definition: OFEnumerator.m:61
unsigned long state
Arbitrary state information for the enumeration.
Definition: OFEnumerator.h:93
id __unsafe_unretained OF_NULLABLE *OF_NULLABLE itemsPtr
Pointer to a C array of objects to return.
Definition: OFEnumerator.h:95
OFArray OF_GENERIC(ObjectType allObjects()
Returns an array of all remaining objects in the collection.
Definition: OFEnumerator.m:45
A protocol for getting an enumerator for the object.
Definition: OFEnumerator.h:31
State information for fast enumerations.
Definition: OFEnumerator.h:91
nullable ObjectType nextObject()
Returns the next object or nil if there is none left.
Definition: OFEnumerator.m:40
A class which provides methods to enumerate through collections.
Definition: OFEnumerator.h:52
OFEnumerator * objectEnumerator()
Returns an OFEnumerator to enumerate through all objects of the collection.