Samond Classes Library 1.2.6-STABLE build 219
|
Mutable indexed collection protocol. More...
#import <SCCollectionProtocols.h>
Adding Objects | |
(void) | - insertObject:atIndex: |
Removing Objects | |
(void) | - removeObjectAtIndex: |
(void) | - removeObjectsAtIndexes: |
Replacing Objects | |
(void) | - replaceObjectAtIndex:withObject: |
(void) | - setObject:atIndexedSubscript: |
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.
- (void) setObject: | (id< SCCollectioning >) | object | |
atIndexedSubscript: | (SCIndex) | index | |
Replaces the object at the specified index with the new object, possibly adding the object.
object | - the object with which to replace object at a specified index |
index | - the index of the object to be replaced |
SCCollectionException | - collection error detected |
Reimplemented in SCArray, and SCOrderedSet.