21#import "OFCollection.h"
22#import "OFEnumerator.h"
24OF_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)
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;
140- (
OFListItem)appendObject: (ObjectType)object;
150- (
OFListItem)prependObject: (ObjectType)object;
192- (bool)containsObject: (ObjectType)object;
201- (bool)containsObjectIdenticalTo: (ObjectType)object;
206- (void)removeAllObjects;
207#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
OFListItem OFListItemNext(OFListItem listItem)
Returns the next list item of the list item.
Definition OFList.m:49
OFListItem OFListItemPrevious(OFListItem listItem)
Returns the previous list item of the list item.
Definition OFList.m:55
id OFListItemObject(OFListItem listItem)
Returns the object of the list item.
Definition OFList.m:61
A class which provides easy to use double-linked lists.
Definition OFList.h:95
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A protocol with methods common for all collections.
Definition OFCollection.h:29
A protocol for the creation of copies.
Definition OFObject.h:1350