21 #import "OFCollection.h" 22 #import "OFEnumerator.h" 24 OF_ASSUME_NONNULL_BEGIN
33 # pragma clang diagnostic push 34 # pragma clang diagnostic ignored "-Wdocumentation" 45 # pragma clang diagnostic pop 88 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 89 # define ObjectType id 95 unsigned long _mutations;
96 OF_RESERVE_IVARS(
OFList, 4)
102 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFListItem firstListItem;
110 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) ObjectType firstObject;
115 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFListItem lastListItem;
123 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) ObjectType lastObject;
130 + (instancetype)list;
140 - (
OFListItem)appendObject: (ObjectType)object;
150 - (
OFListItem)prependObject: (ObjectType)object;
162 - (
OFListItem)insertObject: (ObjectType)object
175 - (
OFListItem)insertObject: (ObjectType)object
192 - (bool)containsObject: (ObjectType)object;
201 - (bool)containsObjectIdenticalTo: (ObjectType)object;
206 - (void)removeAllObjects;
207 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 212 OF_ASSUME_NONNULL_END
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
id OFListItemObject(OFListItem listItem)
Returns the object of the list item.
Definition: OFList.m:61
OFListItem OFListItemPrevious(OFListItem listItem)
Returns the previous list item of the list item.
Definition: OFList.m:55
A protocol with methods common for all collections.
OFListItem OFListItemNext(OFListItem listItem)
Returns the next list item of the list item.
Definition: OFList.m:49
A class which provides easy to use double-linked lists.
Definition: OFList.h:87
A protocol for the creation of copies.
Definition: OFObject.h:1350