17 #import "OFCollection.h"
18 #import "OFEnumerator.h"
20 OF_ASSUME_NONNULL_BEGIN
29 # pragma clang diagnostic push
30 # pragma clang diagnostic ignored "-Wdocumentation"
41 # pragma clang diagnostic pop
84 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
85 # define ObjectType id
91 unsigned long _mutations;
92 OF_RESERVE_IVARS(
OFList, 4)
98 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFListItem firstListItem;
106 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) ObjectType firstObject;
111 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFListItem lastListItem;
119 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) ObjectType lastObject;
126 + (instancetype)list;
136 - (
OFListItem)appendObject: (ObjectType)object;
146 - (
OFListItem)prependObject: (ObjectType)object;
158 - (
OFListItem)insertObject: (ObjectType)object
171 - (
OFListItem)insertObject: (ObjectType)object
188 - (bool)containsObject: (ObjectType)object;
197 - (bool)containsObjectIdenticalTo: (ObjectType)object;
202 - (void)removeAllObjects;
203 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
208 OF_ASSUME_NONNULL_END
OFListItem OFListItemNext(OFListItem listItem)
Returns the next list item of the list item.
Definition: OFList.m:46
OFListItem OFListItemPrevious(OFListItem listItem)
Returns the previous list item of the list item.
Definition: OFList.m:52
id OFListItemObject(OFListItem listItem)
Returns the object of the list item.
Definition: OFList.m:58
A class which provides easy to use double-linked lists.
Definition: OFList.h:91
The root class for all other classes inside ObjFW.
Definition: OFObject.h:688
A protocol with methods common for all collections.
Definition: OFCollection.h:25
A protocol for the creation of copies.
Definition: OFObject.h:1346