21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#endif
/*!
* @brief An abstract class for storing, adding and removing objects in an
* array.
*/
@interface OFMutableArray: OFArray
/*!
* @brief Adds an object to the end of the array.
*
* @param object An object to add
*/
- (void)addObject: (id)object;
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#endif
/*!
* @brief An abstract class for storing, adding and removing objects in an
* array.
*/
@interface OFMutableArray: OFArray
/*!
* @brief Creates a new OFMutableArray with enough memory to hold the specified
* number of objects.
*
* @param capacity The initial capacity for the OFMutableArray
* @return A new autoreleased OFMutableArray
*/
+ (instancetype)arrayWithCapacity: (size_t)capacity;
/*!
* @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
*/
- initWithCapacity: (size_t)capacity;
/*!
* @brief Adds an object to the end of the array.
*
* @param object An object to add
*/
- (void)addObject: (id)object;
|