49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
+
+
+
+
+
+
+
-
+
|
* number of objects.
*
* @param capacity The initial capacity for the OFMutableArray
* @return A new autoreleased OFMutableArray
*/
+ (instancetype)arrayWithCapacity: (size_t)capacity;
/**
* @brief Initializes an OFMutableArray with no objects.
*
* @return An initialized OFMutableArray
*/
- (instancetype)init OF_DESIGNATED_INITIALIZER;
/**
* @brief Initializes an already allocated OFMutableArray with enough memory to
* hold the specified number of objects.
*
* @param capacity The initial capacity for the OFMutableArray
* @return An initialized OFMutableArray
*/
- (instancetype)initWithCapacity: (size_t)capacity;
- (instancetype)initWithCapacity: (size_t)capacity OF_DESIGNATED_INITIALIZER;
/**
* @brief Adds an object to the end of the array.
*
* @param object An object to add
*/
- (void)addObject: (ObjectType)object;
|
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
+
+
+
+
+
+
+
+
+
+
+
|
*
* @param selector The selector to use to sort the array. It's signature
* should be the same as that of -[compare:].
* @param options The options to use when sorting the array
*/
- (void)sortUsingSelector: (SEL)selector options: (OFArraySortOptions)options;
/**
* @brief Sorts the array using the specified function and options.
*
* @param compare The function to use to sort the array
* @param context Context passed to the function to compare
* @param options The options to use when sorting the array
*/
- (void)sortUsingFunction: (OFCompareFunction)compare
context: (nullable void *)context
options: (OFArraySortOptions)options;
#ifdef OF_HAVE_BLOCKS
/**
* @brief Sorts the array using the specified comparator and options.
*
* @param comparator The comparator to use to sort the array
* @param options The options to use when sorting the array
*/
|