17 #import "OFCollection.h"
18 #import "OFEnumerator.h"
19 #import "OFSerialization.h"
21 OF_ASSUME_NONNULL_BEGIN
48 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
49 # define ObjectType id
55 unsigned long _mutations;
56 OF_RESERVE_IVARS(
OFList, 4)
62 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
71 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) ObjectType firstObject;
76 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
85 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) ObjectType lastObject;
154 - (bool)containsObject: (ObjectType)object;
163 - (bool)containsObjectIdenticalTo: (ObjectType)object;
168 - (void)removeAllObjects;
169 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
174 OF_ASSUME_NONNULL_END
A class which provides easy to use double-linked lists.
Definition: OFList.h:55
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A protocol with methods common for all collections.
Definition: OFCollection.h:25
A protocol for the creation of copies.
Definition: OFObject.h:1187
A protocol for serializing objects.
Definition: OFSerialization.h:29
A list object.
Definition: OFList.h:32
of_list_object_t *_Nullable next
Definition: OFList.h:34
id __unsafe_unretained object
Definition: OFList.h:38
of_list_object_t *_Nullable previous
Definition: OFList.h:36