18 #import "OFCollection.h" 19 #import "OFEnumerator.h" 20 #import "OFSerialization.h" 22 OF_ASSUME_NONNULL_BEGIN
49 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 50 # define ObjectType id 56 unsigned long _mutations;
62 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
68 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
138 - (bool)containsObject: (ObjectType)
object;
147 - (bool)containsObjectIdenticalTo: (ObjectType)
object;
154 - (
OFEnumerator OF_GENERIC(ObjectType) *)objectEnumerator;
164 - (nullable ObjectType)firstObject;
174 - (nullable ObjectType)lastObject;
179 - (void)removeAllObjects;
180 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 189 unsigned long _mutations;
190 unsigned long *_Nullable _mutationsPtr;
193 - initWithList: (
OFList *)list
194 mutationsPointer: (
unsigned long *)mutationsPtr;
197 OF_ASSUME_NONNULL_END
A class which provides methods to enumerate through collections.
Definition: OFEnumerator.h:44
A protocol with methods common for all collections.
A protocol for the creation of copies.
Definition: OFObject.h:914
A list object.
Definition: OFList.h:33
The root class for all other classes inside ObjFW.
Definition: OFObject.h:379
of_list_object_t *_Nullable previous
Definition: OFList.h:37
A protocol for serializing objects.
Definition: OFSerialization.h:30
of_list_object_t *_Nullable next
Definition: OFList.h:35
id __unsafe_unretained object
Definition: OFList.h:39
A class which provides easy to use double-linked lists.
Definition: OFList.h:47