19 OF_ASSUME_NONNULL_BEGIN
21 @class OFArray OF_GENERIC(ObjectType);
45 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 46 # define ObjectType id 67 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 83 #define of_fast_enumeration_state_t NSFastEnumerationState 84 #ifndef NSINTEGER_DEFINED 89 id __unsafe_unretained _Nullable *_Nullable
itemsPtr;
93 unsigned long extra[5];
117 objects: (
id __unsafe_unretained _Nonnull *_Nonnull)
122 OF_ASSUME_NONNULL_END
void reset()
Resets the enumerator, so the next call to nextObject returns the first object again.
Definition: OFEnumerator.m:61
nullable ObjectType nextObject()
Returns the next object or nil if there is none left.
Definition: OFEnumerator.m:40
id __unsafe_unretained _Nullable *_Nullable itemsPtr
Pointer to a C array of objects to return.
Definition: OFEnumerator.h:89
A protocol for getting an enumerator for the object.
Definition: OFEnumerator.h:29
A class which provides methods to enumerate through collections.
Definition: OFEnumerator.h:44
unsigned long state
Arbitrary state information for the enumeration.
Definition: OFEnumerator.h:87
unsigned long *_Nullable mutationsPtr
Arbitrary state information to detect mutations.
Definition: OFEnumerator.h:91
OFEnumerator * objectEnumerator()
Returns an OFEnumerator to enumerate through all objects of the collection.
OFArray * allObjects()
Returns an array of all remaining objects in the collection.
Definition: OFEnumerator.m:45
A protocol for fast enumeration.
Definition: OFEnumerator.h:105
The root class for all other classes inside ObjFW.
Definition: OFObject.h:379
State information for fast enumerations.
Definition: OFEnumerator.h:85
An abstract class for storing objects in an array.
Definition: OFArray.h:89