22OF_ASSUME_NONNULL_BEGIN
24@class OFArray OF_GENERIC(ObjectType);
36@protocol OFEnumeration
61 id __unsafe_unretained _Nullable *_Nullable
itemsPtr;
65 unsigned long extra[5];
67#ifndef NSINTEGER_DEFINED
79@protocol OFFastEnumeration
93 objects: (
id __unsafe_unretained _Nonnull *_Nonnull)
104#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
105# define ObjectType id
122#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
An abstract class for storing objects in an array.
Definition OFArray.h:109
A class which provides methods to enumerate through collections.
Definition OFEnumerator.h:103
nullable ObjectType nextObject()
Returns the next object or nil if there is none left.
Definition OFEnumerator.m:43
OFArray * allObjects()
Returns an array of all remaining objects in the collection.
Definition OFEnumerator.m:48
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A protocol for fast enumeration.
Definition OFEnumerator.h:79
State information for fast enumerations.
Definition OFEnumerator.h:57
id __unsafe_unretained * itemsPtr
Definition OFEnumerator.h:61
unsigned long state
Definition OFEnumerator.h:59
unsigned long * mutationsPtr
Definition OFEnumerator.h:63