Samond Classes Library 1.2.1-RELEASE build 181
List of all members
SCCollection Class Reference

Abstract collections class. More...

#import <SCCollection.h>

Inheritance diagram for SCCollection:
SCObject <SCMutableCollection> <SCCollection> SCArray SCDictionary SCList SCOrderedSet SCQueue SCSet SCStack SCBidirectionalList SCUnidirectionalList

Instance Properties

NSString * name
 
BOOL readOnly
 
id< SCCollectionDelegatedelegate
 
SCIndex count
 
BOOL empty
 
NSString * typeName
 
NSString * description
 

Initializing Collections

(instancetype) - initWithCollection:
 

Copying Collections

(void) - setCollection:
 
(void) - setObject:
 
(void) - setObjects:
 

Comparing Collections

(BOOL) - isEqualToCollection:
 
(BOOL) - isEqualToContentsOfCollection:
 
(BOOL) - isEqual:
 

Objects Enumerators

NSEnumerator * objectEnumerator
 
NSEnumerator * reverseObjectEnumerator
 
(void) - enumerateWithDelegate:
 
(void) - enumerate
 
(void) - reverseEnumerateWithDelegate:
 
(void) - reverseEnumerate
 

Converting Collections

(SCArray *) - array
 
(SCSet *) - set
 
(SCOrderedSet *) - orderedSet
 
(SCDictionary *) - dictionary
 
(SCStack *) - stack
 
(SCQueue *) - queue
 
(SCUnidirectionalList *) - unidirectionalList
 
(SCBidirectionalList *) - bidirectionalList
 
(NSArray *) - foundationArray
 
(NSSet *) - foundationSet
 
(NSOrderedSet *) - foundationOrderedSet
 
(NSDictionary *) - foundationDictionary
 

Adding Objects

(void) - addObject:
 
(void) - addObjects:
 
(void) - addCollection:
 

Removing Objects

(void) - removeAllObjects
 
(void) - removeObjectsWithClass:
 
(void) - removeObjectsWithClassName:
 
(void) - removeCollection:
 
(void) - removeObject:
 
(void) - removeObjects:
 

Finding Objects in a Collection

(BOOL) - containsObject:
 
(BOOL) - containsObjects:
 
(BOOL) - containsCollection:
 
(BOOL) - containsAnyObject:
 
(BOOL) - containsAnyObjectFromCollection:
 

Detecting Collection Type

(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
 
(BOOL) + isCollectionClass:
 
(BOOL) + isLibraryCollectionClass:
 
(BOOL) + isFoundationCollectionClass:
 
(BOOL) + isArrayClass:
 
(BOOL) + isLibraryArrayClass:
 
(BOOL) + isFoundationArrayClass:
 
(BOOL) + isSetClass:
 
(BOOL) + isLibrarySetClass:
 
(BOOL) + isFoundationSetClass:
 
(BOOL) + isOrderedSetClass:
 
(BOOL) + isLibraryOrderedSetClass:
 
(BOOL) + isFoundationOrderedSetClass:
 
(BOOL) + isDictionaryClass:
 
(BOOL) + isLibraryDictionaryClass:
 
(BOOL) + isFoundationDictionaryClass:
 
(BOOL) + isStackClass:
 
(BOOL) + isQueueClass:
 
(BOOL) + isListClass:
 
(BOOL) + isSortableClass:
 
(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:
 

Additional Inherited Members

- Instance Methods inherited from SCObject
(instancetype) - initWithContentsOfSerializedFile:
 
(BOOL) - writeContentsToSerializedFile:
 
(instancetype) - initWithDataDictionaryFromFile:
 
(void) - writeToDataDictionaryFile:atomically:
 
(void) - writeToDataDictionaryFile:
 
(NSDictionary *) - dataDictionary
 
(instancetype) - initWithFileStream:
 
(void) - writeToFileStream:
 
(void) - appendToFileStream:
 
(SCComparisonResult- compareWithObject:
 
- Instance Methods inherited from <SCMutableCollection>
- Instance Methods inherited from <SCCollection>
(NSString *) - description
 
- 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

Abstract collections class.

SDK
macOS 10.6+, iOS 7.0+
Since
version 1.1.3

Contains the declaration of all collection mandatory methods.@ Class instances can thrown the following exceptions:

Todo:

Methods such setByAdddingObject: and so on

Change parameters type from id to id<SCCollection>

Method Documentation

- (void) addCollection: (id<SCCollection>)  collection

Adds into the receiving collection the objects from the specified existing collection of any supported type.

Parameters
collection- existing source collection
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) addObject: (id<SCCollectioning>)  object

Adds into the receiving collection the specified existing object.

Parameters
object- the added existing object
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) addObjects: (id<SCCollectioning>)  object
,   NS_REQUIRES_NIL_TERMINATION 

Adds into the receiving collection the objects from the specified nil terminated list.

Parameters
object- first added object
...- other added objects
NS_REQUIRES_NIL_TERMINATION- mandatory nil pointer
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (SCArray *) array

Returns an array with the all objects from the receiving collection.

Returns
Array with objects

Reimplemented from <SCCollection>.

Reimplemented in SCArray.

- (SCBidirectionalList *) bidirectionalList

Returns the bidirectional list with the all objects from the receiving collection.

Returns
A bidirectional list with objects

Reimplemented from <SCCollection>.

- (BOOL) containsAnyObject: (id<SCCollectioning>)  object
,   NS_REQUIRES_NIL_TERMINATION 

Returns a boolean value that indicates whether the receiving collection contains at least one object from the specified nil terminated list.

Parameters
object- first desired object
...- other desired objects
NS_REQUIRES_NIL_TERMINATION- mandatory nil pointer
Returns
YES if the receiving collection contains at least one object from the list, otherwise NO

Reimplemented from <SCCollection>.

- (BOOL) containsAnyObjectFromCollection: (id<SCCollection>)  collection

Returns a boolean value that indicates whether the receiving collection contains at least one object from the specified collection of any supported type.

Parameters
collection- collection with the desired objects
Returns
YES if the receiving collection contains at least one object from the specified collection, otherwise NO

Reimplemented from <SCCollection>.

- (BOOL) containsCollection: (id<SCCollection>)  collection

Returns a boolean value that indicates whether the receiving collection contains all objects from the specified collection of any supported type.

Parameters
collection- collection with desired objects
Returns
YES if all desired objects are present in the receiving collection, otherwise NO

Reimplemented from <SCCollection>.

- (BOOL) containsObject: (id<SCCollectioning>)  object

Returns a boolean value that indicates whether an equivalent of a given object is present in the receiving collection.

Parameters
object- the desired object
Returns
YES if a given object is present in the receiving collection, otherwise NO

Reimplemented from <SCCollection>.

- (BOOL) containsObjects: (id<SCCollectioning>)  object
,   NS_REQUIRES_NIL_TERMINATION 

Returns a boolean value that indicates whether the receiving collection contains all objects from the specified nil terminated list.

Parameters
object- first desired object
...- other desired objects
NS_REQUIRES_NIL_TERMINATION- mandatory nil pointer
Returns
YES if all objects are present in the receiving collection, otherwise NO

Reimplemented from <SCCollection>.

- (SCDictionary *) dictionary

Returns the dictionary with the all objects from the receiving collection.

Returns
A dictionary with objects

Reimplemented from <SCCollection>.

Reimplemented in SCDictionary.

- (void) enumerate

Tells the instance delegate object for each object in the receiving collection.

- (void) enumerateWithDelegate: (id<SCCollectionDelegate>)  delegate

Tells the specified delegate object for each object in the receiving collection.

Parameters
delegate- delegate object
- (NSArray *) foundationArray

Returns the class NSArray instance with the all objects from the receiving collection.

Returns
A class NSArray instance with objects

Reimplemented from <SCCollection>.

- (NSDictionary *) foundationDictionary

Returns the class NSDictionary instance with the all objects from the receiving collection.

Returns
A class NSDictionary instance with objects

Reimplemented from <SCCollection>.

- (NSOrderedSet *) foundationOrderedSet

Returns the class NSOrderedSet instance with the all objects from the receiving collection.

Returns
A class NSOrderedSet instance with objects
SDK
macOS 10.7+, iOS 7.0+

Reimplemented from <SCCollection>.

- (NSSet *) foundationSet

Returns the class NSSet instance with the all objects from the receiving collection.

Returns
A class NSSet instance with objects

Reimplemented from <SCCollection>.

- (instancetype) initWithCollection: (id<SCCollection>)  collection

Initializes a collection using the specified existing collection of any supported type.

Parameters
collection- existing source collection
Returns
A newly initialized collection
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCCollection>.

Reimplemented in SCArray, SCOrderedSet, SCDictionary, SCQueue, SCStack, SCSet, and SCList.

- (BOOL) isArray

Returns a boolean value that indicates whether the receiving instance is an array of any supported type.

Returns
YES if the receiving instance is an array, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isArray: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any array class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of an array class, otherwise NO
+ (BOOL) isArrayClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any supported array class.

Parameters
name- tested string
Returns
YES if the specified string is a name of an array class, otherwise NO
- (BOOL) isCollection

Returns a boolean value that indicates whether the receiving instance is a collection of any supported type.

Returns
YES if the receiving instance is a collection, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isCollection: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any collection class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a collection class, otherwise NO
+ (BOOL) isCollectionClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any supported collection class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a collection class, otherwise NO
- (BOOL) isDictionary

Returns a boolean value that indicates whether the receiving instance is a dictionary of any supported type.

Returns
YES if the receiving instance is a dictionary, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isDictionary: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any dictionary class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a dictionary class, otherwise NO
+ (BOOL) isDictionaryClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any dictionary class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a dictionary class, otherwise NO
- (BOOL) isEqual: (id)  object

Returns a boolean value that indicates whether the receiving collection is equals to the specified object.

Parameters
object- the object with which to compare the receiving collection
Returns
YES if the object is equals to the receiving collection, otherwise NO

Reimplemented from SCObject.

- (BOOL) isEqualToCollection: (id<SCCollection>)  collection

Returns a boolean value that indicates whether the content and settings of the receiving collection are equal to the content and settings of another given collection.

Parameters
collection- the collection with which to compare the receiving collection
Returns
YES if the content and settings of other collection are equal to the content and setting of the receiving collection, otherwise NO
- (BOOL) isEqualToContentsOfCollection: (id<SCCollection>)  collection

Returns a boolean value that indicates whether the content of the receiving collection is equals to the content of another given collection.

Parameters
collection- the collection with which to compare the receiving collection
Returns
YES if the content of other collection is equals to the content of the receiving collection, otherwise NO
- (BOOL) isFoundationArray

Returns a boolean value that indicates whether the reciving instance is a standard array.

Returns
YES if the receiving instance is a standard array, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isFoundationArray: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any standard array class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a standard array class, otherwise NO
+ (BOOL) isFoundationArrayClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any standard array class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a standard array class, otherwise NO
- (BOOL) isFoundationCollection

Returns a boolean value that indicates whether the receiving instance is a standard collection.

Returns
YES if the receiving instance is a library collection, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isFoundationCollection: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any standard collection class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a standard collection class, otherwise NO
+ (BOOL) isFoundationCollectionClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any standard collection class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a standard collection class, otherwise NO
- (BOOL) isFoundationDictionary

Returns a boolean value that indicates whether the receiving instance is a standard dictionary.

Returns
YES if the receiving instance is a standard dictionary, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isFoundationDictionary: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any standard dictionary class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a standard dictionary class, otherwise NO
+ (BOOL) isFoundationDictionaryClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any library dictionary class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a standard dictionary class, otherwise NO
- (BOOL) isFoundationOrderedSet

Returns a boolean value that indicates whether the receiving instance is a standard ordered set.

Returns
YES if the receiving instance is a standard ordered set, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isFoundationOrderedSet: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any standard ordered set class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a standard ordered set class, otherwise NO
+ (BOOL) isFoundationOrderedSetClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any standard ordered set class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a standard ordered set class, otherwise NO
- (BOOL) isFoundationSet

Returns a boolean value that indicates whether the receiving instance is a standard set.

Returns
YES if the receiving instance is a standard set, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isFoundationSet: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any standard set class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a standard set class, otherwise NO
+ (BOOL) isFoundationSetClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any standard set class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a standard set class, otherwise NO
- (BOOL) isLibraryArray

Returns a boolean value that indicates whether the receiving instance is a library array.

Returns
YES if the receiving instance is a library array, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isLibraryArray: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any library array class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a library array class, otherwise NO
+ (BOOL) isLibraryArrayClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any library array class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a library array class, otherwise NO
- (BOOL) isLibraryCollection

Returns a boolean value that indicates whether the receiving instance is a library collection.

Returns
YES if the receiving instance is a library collection, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isLibraryCollection: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any librray collection class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a library collection class, otherwise NO
+ (BOOL) isLibraryCollectionClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any library collection class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a library collection class, otherwise NO
- (BOOL) isLibraryDictionary

Returns a boolean value that indicates whether the receiving instance is a library dictionary.

Returns
YES if the receiving instance is a library dictionary, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isLibraryDictionary: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any library dictionary class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a library dictionary class, otherwise NO
+ (BOOL) isLibraryDictionaryClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any library dictionary class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a library dictionary class, otherwise NO
- (BOOL) isLibraryOrderedSet

Returns a boolean value that indicates whether the receiving instance is a library ordered set.

Returns
YES if the receiving instance is a library ordered set, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isLibraryOrderedSet: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any library ordered set class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a library ordered set class, otherwise NO
+ (BOOL) isLibraryOrderedSetClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any library ordered set class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a library ordered set class, otherwise NO
- (BOOL) isLibrarySet

Returns a boolean value that indicates whether the receiving instance is a library set.

Returns
YES if the receiving instance is a library set, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isLibrarySet: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any library set class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a library set class, otherwise NO
+ (BOOL) isLibrarySetClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any library set class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a library set class, otherwise NO
- (BOOL) isList

Returns a boolean value that indicates whether the receiving instance is a list of any supported type.

Returns
YES if the receiving instance is a list, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isList: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any list class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a list class, otherwise NO
+ (BOOL) isListClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any list class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a list class, otherwise NO
- (BOOL) isOrderedSet

Returns a boolean value that indicates whether the receiving instance is an ordered set of any supported type.

Returns
YES if the receiving instance is an orderder set, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isOrderedSet: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any ordered set class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of an ordered set class, otherwise NO
+ (BOOL) isOrderedSetClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any ordered set class.

Parameters
name- tested string
Returns
YES if the specified string is a name of an ordered set class, otherwise NO
- (BOOL) isQueue

Returns a boolean value that indicates whether the receiving instance is a queue.

Returns
YES if the receiving instance is a queue, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isQueue: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any queue class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a queue class, otherwise NO
+ (BOOL) isQueueClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any queue class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a queue class, otherwise NO
- (BOOL) isSet

Returns a boolean value that indicates whether the receiving instance is a set of any supported type.

Returns
YES if the receiving instance is a set, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isSet: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any set class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a set class, otherwise NO
+ (BOOL) isSetClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any set class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a set class, otherwise NO
- (BOOL) isSortable

Returns a boolean value that indicates whether the receiving instance is a sortable collection of any supported type.

Returns
YES if the receiving instance is a sortable collection, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isSortable: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any sortable collection class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a sortable collection class, otherwise NO
+ (BOOL) isSortableClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any sortable collection class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a sortable collection class, otherwise NO
- (BOOL) isStack

Returns a boolean value that indicates whether the receiving instance is a stack.

Returns
YES if the receiving instance is a stack, otherwise NO

Reimplemented from <SCCollection>.

+ (BOOL) isStack: (id)  object

Returns a boolean value that indicates whether a given object is an instance of any stack class.

Parameters
object- tested object
Returns
YES if the specified object is an instance of a stack class, otherwise NO
+ (BOOL) isStackClass: (NSString *)  name

Returns a boolean value that indicates whether a given string is a name of any stack class.

Parameters
name- tested string
Returns
YES if the specified string is a name of a stack class, otherwise NO
- (SCOrderedSet *) orderedSet

Returns the ordered set with the all objects from the receiving collection.

Returns
An ordered set with objects
SDK
macOS 10.7+, iOS 7.0+

Reimplemented from <SCCollection>.

Reimplemented in SCOrderedSet.

- (SCQueue *) queue

Returns the queue with the all objects from the receiving collection.

Returns
A queue with objects

Reimplemented from <SCCollection>.

Reimplemented in SCQueue.

- (void) removeAllObjects

Removes all objects from the receiving collection.

Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) removeCollection: (id<SCCollection>)  collection

Removes from the receiving collection objects that are present in the specified collection of any supported type.

Parameters
collection- the collection with the removed objects
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) removeObject: (id<SCCollectioning>)  object

Removes from the receiving collection the all occurrences of the specified object.

Parameters
object- the removed object
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (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.

Parameters
object- the first removed object
...- the other removed objects
NS_REQUIRES_NIL_TERMINATION- the mandatory nil pointer
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) removeObjectsWithClass: (Class)  oclass

Removes from the receiving collection all objects of the specified class.

Parameters
oclass- the class of removed objects
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) removeObjectsWithClassName: (NSString *)  name

Removes from the receiving collection all objects of the class with the specified name.

Parameters
name- the name of removed objects class
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) reverseEnumerate

Tells the instance delegate object for each object in the receiving collection, in reverse order.

- (void) reverseEnumerateWithDelegate: (id<SCCollectionDelegate>)  delegate

Tells the specified delegate object for each object in the receiving collection, in reverse order.

Parameters
delegate- delegate object
- (SCSet *) set

Returns the set with the all objects from the receiving collection.

Returns
A set with objects

Reimplemented from <SCCollection>.

Reimplemented in SCSet.

- (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.

Parameters
collection- existing source collection
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) setObject: (id<SCCollectioning>)  object

Replaces the content of the receiving collection by using the specified existing object.

Parameters
object- existing source object
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (void) setObjects: (id<SCCollectioning>)  object
,   NS_REQUIRES_NIL_TERMINATION 

Replaces the content of the receiving collection by using the objects from the specified nil terminated list.

Parameters
object- first source object
...- other source objects
NS_REQUIRES_NIL_TERMINATION- mandatory nil pointer
Exceptions
SCCollectionException- collection error detected

Reimplemented from <SCMutableCollection>.

- (SCStack *) stack

Returns the stack with the all objects from the receiving collection.

Returns
A stack with objects

Reimplemented from <SCCollection>.

Reimplemented in SCStack.

- (SCUnidirectionalList *) unidirectionalList

Returns the unidirectional list with the all objects from the receiving collection.

Returns
An unidirectional list with objects

Reimplemented from <SCCollection>.

Property Documentation

- (SCIndex) count
readnonatomicassign

Number of objects within the collection

- (id) delegate
readwritenonatomicretain

Collection delegate object

- (NSString *) description
readnonatomicretain

Collection description

- (BOOL) empty
readnonatomicassign

Determines whether the collection is empty or contains at least one object.

- (NSString *) name
readwritenonatomicretain

Collection instance name

- (NSEnumerator *) objectEnumerator
readnonatomicretain

Enumerator object that lets you access each object in the collection

- (BOOL) readOnly
readwritenonatomicassign

Determines whether the collection is in read only mode.

- (NSEnumerator *) reverseObjectEnumerator
readnonatomicretain

Enumerator object that lets you access each object in the collection, in reverse order

- (NSString *) typeName
readnonatomicretain

Collection type name


The documentation for this class was generated from the following files: