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
The root class for all other classes inside ObjFW.
Definition: OFObject.h:686
id OFListItemObject(OFListItem listItem)
Returns the object of the list item.
Definition: OFList.m:58
OFListItem OFListItemPrevious(OFListItem listItem)
Returns the previous list item of the list item.
Definition: OFList.m:52
A protocol with methods common for all collections.
OFListItem OFListItemNext(OFListItem listItem)
Returns the next list item of the list item.
Definition: OFList.m:46
A class which provides easy to use double-linked lists.
Definition: OFList.h:83
A protocol for the creation of copies.
Definition: OFObject.h:1346