22 OF_ASSUME_NONNULL_BEGIN
39 @property (readonly, nonatomic)
size_t count;
44 @property (readonly, nonatomic)
size_t firstIndex;
49 @property (readonly, nonatomic)
size_t lastIndex;
56 + (instancetype)indexSet;
64 + (instancetype)indexSetWithIndexSet: (
OFIndexSet *)indexSet;
72 + (instancetype)indexSetWithIndex: (
size_t)idx;
80 + (instancetype)indexSetWithIndexesInRange: (
OFRange)range;
95 - (instancetype)initWithIndexSet: (
OFIndexSet *)indexSet;
103 - (instancetype)initWithIndex: (
size_t)idx;
113 - (instancetype)initWithIndexesInRange: (
OFRange)range;
121 - (bool)containsIndex: (
size_t)idx;
129 - (bool)containsIndexesInRange: (
OFRange)range;
138 - (size_t)indexGreaterThanIndex: (
size_t)idx;
148 - (size_t)indexGreaterThanOrEqualToIndex: (
size_t)idx;
157 - (size_t)indexLessThanIndex: (
size_t)idx;
167 - (size_t)indexLessThanOrEqualToIndex: (
size_t)idx;
177 - (size_t)getIndexes: (
size_t *)indexes
178 maxCount: (
size_t)maxCount
179 inIndexRange: (nullable
OFRange *)range;
186 - (size_t)countOfIndexesInRange: (
OFRange)range;
189 OF_ASSUME_NONNULL_END
191 #import "OFMutableIndexSet.h" The root class for all other classes inside ObjFW.
Definition: OFObject.h:954
A class storing a set of indexes as sorted ranges.
Definition: OFIndexSet.h:29
A protocol for the creation of mutable copies.
Definition: OFObject.h:1639
A protocol for the creation of copies.
Definition: OFObject.h:1618
A class for storing and manipulating arbitrary data in an array.
Definition: OFMutableData.h:31
A range.
Definition: OFObject.h:116