Public Member Functions | Protected Attributes

OFMutableArray Class Reference

A class for storing, adding and removing objects in an array. More...

#import <OFMutableArray.h>

Inheritance diagram for OFMutableArray:
OFArray OFObject <OFCopying> <OFMutableCopying> <OFCollection> <OFFastEnumeration>

List of all members.

Public Member Functions

(void) - addObject:
(void) - addObject:atIndex:
(void) - replaceObject:withObject:
(void) - replaceObjectAtIndex:withObject:
(void) - replaceObjectIdenticalTo:withObject:
(void) - removeObject:
(void) - removeObjectIdenticalTo:
(void) - removeObjectAtIndex:
(void) - removeNObjects:
(void) - removeNObjects:atIndex:

Protected Attributes

unsigned long mutations

Detailed Description

A class for storing, adding and removing objects in an array.


Member Function Documentation

- (void) addObject: (id)  obj  

Adds an object to the OFArray.

Parameters:
obj An object to add
- (void) addObject: (id)  obj
atIndex: (size_t)  index 

Adds an object to the OFArray at the specified index.

Parameters:
obj 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) removeNObjects: (size_t)  nobjects
atIndex: (size_t)  index 

Removes the specified amount of objects at the specified index.

Parameters:
nobjects The number of objects to remove
index The index at which the objects are removed
- (void) removeObject: (id)  obj  

Removes the first object equivalent to the specified object.

Parameters:
obj 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)  obj  

Removes the first object that has the same address as the specified object.

Parameters:
obj The object to remove
- (void) replaceObject: (id)  old
withObject: (id)  new_ 

Replaces the first object equivalent to the first specified object with the second specified object.

Parameters:
old The object to replace
new_ The replacement object
- (void) replaceObjectAtIndex: (size_t)  index
withObject: (id)  obj 

Replaces the object at the specified index with the specified object.

Parameters:
index The index of the object to replace
obj The replacement object
- (void) replaceObjectIdenticalTo: (id)  old
withObject: (id)  new_ 

Replaces the first object that has the same address as the first specified object with the second specified object.

Parameters:
old The object to replace
new_ The replacement object

The documentation for this class was generated from the following files:
 All Classes Functions Variables