|
Samond Classes Library 1.2.1-RELEASE build 181
|
Mutable indexed collection protocol. More...
#import <SCCollectionProtocols.h>
Adding Objects | |
| (void) | - insertObject:atIndex: |
Removing Objects | |
| (void) | - removeObjectAtIndex: |
| (void) | - removeObjectsAtIndexes: |
Replacing Objects | |
| (void) | - replaceObjectAtIndex:withObject: |
Mutable indexed collection protocol.
Declares the mandatory methods for changing the content of the indexed collections.
| - (void) insertObject: | (id< SCCollectioning >) | object | |
| atIndex: | (SCIndex) | index | |
Inserts a given object into the receiving collection at a given index.
| object | - inserted object |
| index | - index at which to insert object |
| SCCollectionException | - collection error detected |
Reimplemented in SCArray, and SCOrderedSet.
| - (void) removeObjectAtIndex: | (SCIndex) | index |
Removes from the receiving collection the object at the specified index.
| index | - index of the removed object |
| SCCollectionException | - collection error detected |
Reimplemented in SCArray, and SCOrderedSet.
| - (void) removeObjectsAtIndexes: | (NSIndexSet *) | indexes |
Removes from the receiving collection the objects at the indexes from the specified index set.
| indexes | - deleted objects index set |
| SCCollectionException | - collection error detected |
Reimplemented in SCArray, and SCOrderedSet.
| - (void) replaceObjectAtIndex: | (SCIndex) | index | |
| withObject: | (id< SCCollectioning >) | object | |
Replaces the object at the specified index with a given object.
| index | - index of the object to be replaced |
| object | - object with which to replace the object at the specified index |
| SCCollectionException | - collection error detected |
Reimplemented in SCArray, and SCOrderedSet.
1.8.9.1