|
Samond Classes Library 1.2.1-RELEASE build 181
|
Mutable collections protocol. More...
#import <SCCollectionProtocols.h>
Copying Collections | |
| (void) | - setCollection: |
| (void) | - setObject: |
| (void) | - setObjects: |
Adding Objects | |
| (void) | - addObject: |
| (void) | - addObjects: |
| (void) | - addCollection: |
Removing Objects | |
| (void) | - removeAllObjects |
| (void) | - removeObjectsWithClass: |
| (void) | - removeObjectsWithClassName: |
| (void) | - removeCollection: |
| (void) | - removeObject: |
| (void) | - removeObjects: |
Mutable collections protocol.
Declares the mandatory methods that support the changes of the collection content.
| - (void) addCollection: | (id< SCCollection >) | collection |
Adds into the receiving collection the objects from the specified existing collection of any supported type.
| collection | - existing source collection |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) addObject: | (id< SCCollectioning >) | object |
Adds into the receiving collection the specified object.
| object | - added object |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, and NSMutableDictionary(SCMutableDictionary).
| - (void) addObjects: | (id< SCCollectioning >) | object | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Adds into the receiving collection the objects from the specified nil terminated list.
| object | - first added object |
| ... | - other added objects |
| NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) removeAllObjects |
Removes all objects from the receiving collection.
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection.
| - (void) removeCollection: | (id< SCCollection >) | collection |
Removes from the receiving collection objects that are present in the specified collection of any supported type.
| collection | - collection with the removed objects |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) removeObject: | (id< SCCollectioning >) | object |
Removes from the receiving collection the all occurrences of the specified object.
| object | - removed object |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, and NSMutableDictionary(SCMutableDictionary).
| - (void) removeObjects: | (id< SCCollectioning >) | object | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Removes from the receiving collection the all occurrences of the objects from the specified nil terminated list.
| object | - first removed object |
| ... | - other removed objects |
| NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) removeObjectsWithClass: | (Class) | oclass |
Removes from the receiving collection all objects of the specified class.
| oclass | - class of removed objects |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) removeObjectsWithClassName: | (NSString *) | name |
Removes from the receiving collection all objects of the class with the specified name.
| name | - name of removed objects class |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) setCollection: | (id< SCCollection >) | collection |
Replaces the content and settings of the receiving collection by using the content and settings from the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) setObject: | (id< SCCollectioning >) | object |
Replaces the content of the receiving collection by using the specified existing object.
| object | - existing source object |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
| - (void) setObjects: | (id< SCCollectioning >) | object | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Replaces the content of the receiving collection by using objects from the specified nil terminated list.
| object | - first source object |
| ... | - other source objects |
| NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
| SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSMutableArray(SCMutableArray), NSMutableDictionary(SCMutableDictionary), NSMutableOrderedSet(SCMutableOrderedSet), and NSMutableSet(SCMutableSet).
1.8.9.1