An abstract class for storing, adding and removing objects in anr array.
More...
#import <OFMutableArray.h>
List of all members.
Detailed Description
An abstract class for storing, adding and removing objects in anr array.
Member Function Documentation
- (void) addObject: |
|
(id) |
object |
|
Adds an object to the OFArray.
- Parameters:
-
- (void) addObject: |
|
(id) |
object |
atIndex: |
|
(size_t) |
index |
|
|
| |
Adds an object to the OFArray at the specified index.
- Parameters:
-
object | An object to add |
index | The index where the object should be added |
- (void) removeNObjects: |
|
(size_t) |
nObjects |
|
Removes the specified amount of objects from the end of the OFArray.
- Parameters:
-
nObjects | The number of objects to remove |
- (void) removeObject: |
|
(id) |
object |
|
Removes the first object equivalent to the specified object.
- Parameters:
-
object | The object to remove |
- (void) removeObjectAtIndex: |
|
(size_t) |
index |
|
Removes the object at the specified index.
- Parameters:
-
index | The index of the object to remove |
- (void) removeObjectIdenticalTo: |
|
(id) |
object |
|
Removes the first object that has the same address as the specified object.
- Parameters:
-
object | The object to remove |
Removes the object in the specified range.
- Parameters:
-
range | The range of the objects to remove |
- (void) replaceObject: |
|
(id) |
oldObject |
withObject: |
|
(id) |
newObject |
|
|
| |
Replaces the first object equivalent to the specified object with the other specified object.
- Parameters:
-
oldObject | The object to replace |
newObject | The replacement object |
- (void) replaceObjectAtIndex: |
|
(size_t) |
index |
withObject: |
|
(id) |
object |
|
|
| |
Replaces the object at the specified index with the specified object.
- Parameters:
-
index | The index of the object to replace |
object | The replacement object |
- (void) replaceObjectIdenticalTo: |
|
(id) |
oldObject |
withObject: |
|
(id) |
newObject |
|
|
| |
Replaces the first object that has the same address as the specified object with the other specified object.
- Parameters:
-
oldObject | The object to replace |
newObject | The replacement object |
- (void) replaceObjectsUsingBlock: |
|
(of_array_replace_block_t) |
block |
|
Replaces each object with the object returned by the block.
- Parameters:
-
block | The block which returns a new object for each object |
- (void) swapObjectAtIndex: |
|
(size_t) |
index1 |
withObjectAtIndex: |
|
(size_t) |
index2 |
|
|
| |
Swaps the objects at the specified indices.
- Parameters:
-
index1 | The index of the first object to swap |
index2 | The index of the second object to swap |
The documentation for this class was generated from the following files: