OFMutableArray Class Reference

#import <OFMutableArray.h>

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

List of all members.

Public Member Functions

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

Protected Attributes

unsigned long mutations

Detailed Description

The OFMutableArray class is a class for storing, adding and removing objects in an array.


Member Function Documentation

- (id) addObject: (OFObject*)  obj  

Adds an object to the OFArray.

Parameters:
obj An object to add
- (id) addObject: (OFObject*)  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
- (id) removeNObjects: (size_t)  nobjects  

Removes the specified amount of objects from the end of the OFArray.

Parameters:
nobjects The number of objects to remove
- (id) 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
- (id) removeObject: (OFObject*)  obj  

Removes all objects equivalent to the specified object.

Parameters:
obj The object to remove
- (id) removeObjectAtIndex: (size_t)  index  

Removes the object at the specified index.

Parameters:
index The index of the object to remove
- (id) removeObjectIdenticalTo: (OFObject*)  obj  

Removes all objects that have the same address as the specified object.

Parameters:
obj The object to remove
- (id) replaceObject: (OFObject*)  old
withObject: (OFObject*)  new 

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

Parameters:
old The object to replace
new The replacement object
- (id) replaceObjectAtIndex: (size_t)  index
withObject: (OFObject*)  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
- (id) replaceObjectIdenticalTo: (OFObject*)  old
withObject: (OFObject*)  new 

Replaces all objects that have 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

Generated on Mon Feb 1 19:19:40 2010 for ObjFW by  doxygen 1.6.1