Samond Classes Library 1.2.6-STABLE build 219
List of all members
<SCMutableIndexedCollection> Protocol Reference

Mutable indexed collection protocol. More...

#import <SCCollectionProtocols.h>

+ Inheritance diagram for <SCMutableIndexedCollection>:

Adding Objects

(void) - insertObject:atIndex:
 

Removing Objects

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

Replacing Objects

(void) - replaceObjectAtIndex:withObject:
 
(void) - setObject:atIndexedSubscript:
 

Additional Inherited Members

- Instance Methods inherited from <SCIndexedCollection>
(id) - objectAtIndex:
 
(id) - objectAtIndexedSubscript:
 
(SCIndex- indexOfObject:
 
- Instance Methods inherited from <SCCollection>
(NSUInteger) - countByEnumeratingWithState:objects:count:
 
(instancetype) - initWithCollection:
 
(BOOL) - containsObject:
 
(BOOL) - containsObjects:
 
(BOOL) - containsCollection:
 
(BOOL) - containsAnyObject:
 
(BOOL) - containsAnyObjectFromCollection:
 
(BOOL) - isEqualToCollection:
 
- Properties inherited from <SCIndexedCollection>
id firstObject
 
id lastObject
 
SCIndex indexOfLastObject
 
- Properties inherited from <SCCollection>
NSString * name
 
SCIndex count
 
BOOL empty
 
BOOL readOnly
 
id< SCCollectionDelegatedelegate
 
SCArrayarray
 
SCSetset
 
SCOrderedSetorderedSet
 
SCDictionarydictionary
 
SCStackstack
 
SCQueuequeue
 
SCUnidirectionalListunidirectionalList
 
SCBidirectionalListbidirectionalList
 
NSArray * foundationArray
 
NSSet * foundationSet
 
NSOrderedSet * foundationOrderedSet
 
NSDictionary * foundationDictionary
 
NSEnumerator * objectEnumerator
 
NSEnumerator * reverseObjectEnumerator
 
SCCollectionType collectionType
 
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
 

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.

- (void) setObject: (id< SCCollectioning >)  object
atIndexedSubscript: (SCIndex index 

Replaces the object at the specified index with the new object, possibly adding the object.

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

Reimplemented in SCArray, and SCOrderedSet.


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