Samond Classes Library 1.2.1-RELEASE build 181
List of all members
<SCMutableIndexedCollection> Protocol Reference

Mutable indexed collection protocol. More...

#import <SCCollectionProtocols.h>

Inheritance diagram for <SCMutableIndexedCollection>:
<SCIndexedCollection> <SCCollection> NSMutableArray(SCMutableArray) NSMutableOrderedSet(SCMutableOrderedSet) SCArray SCOrderedSet

Adding Objects

(void) - insertObject:atIndex:
 

Removing Objects

(void) - removeObjectAtIndex:
 
(void) - removeObjectsAtIndexes:
 

Replacing Objects

(void) - replaceObjectAtIndex:withObject:
 

Additional Inherited Members

- Instance Methods inherited from <SCIndexedCollection>
(id) - firstObject
 
(id) - lastObject
 
(id) - objectAtIndex:
 
(SCIndex- indexOfObject:
 
(SCIndex- indexOfLastObject
 
- Instance Methods inherited from <SCCollection>
(NSString *) - name
 
(void) - setName:
 
(SCIndex- count
 
(NSString *) - description
 
(BOOL) - empty
 
(BOOL) - readOnly
 
(instancetype) - initWithCollection:
 
(BOOL) - containsObject:
 
(BOOL) - containsObjects:
 
(BOOL) - containsCollection:
 
(BOOL) - containsAnyObject:
 
(BOOL) - containsAnyObjectFromCollection:
 
(SCArray *) - array
 
(SCSet *) - set
 
(SCOrderedSet *) - orderedSet
 
(SCDictionary *) - dictionary
 
(SCStack *) - stack
 
(SCQueue *) - queue
 
(SCUnidirectionalList *) - unidirectionalList
 
(SCBidirectionalList *) - bidirectionalList
 
(NSArray *) - foundationArray
 
(NSSet *) - foundationSet
 
(NSOrderedSet *) - foundationOrderedSet
 
(NSDictionary *) - foundationDictionary
 
(BOOL) - isCollection
 
(BOOL) - isLibraryCollection
 
(BOOL) - isFoundationCollection
 
(BOOL) - isArray
 
(BOOL) - isLibraryArray
 
(BOOL) - isFoundationArray
 
(BOOL) - isSet
 
(BOOL) - isLibrarySet
 
(BOOL) - isFoundationSet
 
(BOOL) - isOrderedSet
 
(BOOL) - isLibraryOrderedSet
 
(BOOL) - isFoundationOrderedSet
 
(BOOL) - isDictionary
 
(BOOL) - isLibraryDictionary
 
(BOOL) - isFoundationDictionary
 
(BOOL) - isStack
 
(BOOL) - isQueue
 
(BOOL) - isList
 
(BOOL) - isSortable
 
(NSEnumerator *) - objectEnumerator
 
(NSEnumerator *) - reverseObjectEnumerator
 
- Properties inherited from <SCCollection>
NSString * name
 
SCIndex count
 
BOOL empty
 
NSString * description
 
SCArrayarray
 
SCSetset
 
SCOrderedSetorderedSet
 
SCDictionarydictionary
 
SCStackstack
 
SCQueuequeue
 
SCUnidirectionalListunidirectionalList
 
SCBidirectionalListbidirectionalList
 
NSArray * foundationArray
 
NSSet * foundationSet
 
NSOrderedSet * foundationOrderedSet
 
NSDictionary * foundationDictionary
 
NSEnumerator * objectEnumerator
 

Detailed Description

Mutable indexed collection protocol.

SDK
macOS 10.6+, iOS 7.0+, GNUstep
Since
version 1.2.0

Declares the mandatory methods for changing the content of the indexed collections.

Method Documentation

- (void) insertObject: (id< SCCollectioning >)  object
atIndex: (SCIndex index 

Inserts a given object into the receiving collection at a given index.

Parameters
object- inserted object
index- index at which to insert object
Exceptions
SCCollectionException- collection error detected

Reimplemented in SCArray, and SCOrderedSet.

- (void) removeObjectAtIndex: (SCIndex index

Removes from the receiving collection the object at the specified index.

Parameters
index- index of the removed object
Exceptions
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.

Parameters
indexes- deleted objects index set
Exceptions
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.

Parameters
index- index of the object to be replaced
object- object with which to replace the object at the specified index
Exceptions
SCCollectionException- collection error detected

Reimplemented in SCArray, and SCOrderedSet.


The documentation for this protocol was generated from the following file: