|
Samond Classes Library 1.2.0-RELEASE build 166
|
Collection classes protocol. More...
#import <SCCollectionProtocol.h>
Primary Collection Properties | |
| SCULong | count |
| BOOL | empty |
| NSString * | description |
Additional Collection Properties | |
| SCArray * | array |
| SCSet * | set |
| SCOrderedSet * | orderedSet |
| SCDictionary * | dictionary |
| SCStack * | stack |
| SCQueue * | queue |
| SCUnidirectionalList * | unidirectionalList |
| SCBidirectionalList * | bidirectionalList |
| NSArray * | foundationArray |
| NSSet * | foundationSet |
| NSOrderedSet * | foundationOrderedSet |
| NSDictionary * | foundationDictionary |
| NSEnumerator * | objectEnumerator |
Accessing Collection Properties | |
| (SCULong) | - count |
| (NSString *) | - description |
| (BOOL) | - empty |
| (BOOL) | - readOnly |
Initializing Collections | |
| (id) | - initWithCollection: |
Finding Objects in a Collection | |
| (BOOL) | - containsObject: |
| (BOOL) | - containsObjects: |
| (BOOL) | - containsCollection: |
| (BOOL) | - containsAnyObject: |
| (BOOL) | - containsAnyObjectFromCollection: |
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 |
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 |
Objects Enumerators | |
| (NSEnumerator *) | - objectEnumerator |
| (NSEnumerator *) | - reverseObjectEnumerator |
Collection classes protocol.
Declares the properties and methods that are mandatory for collections of any supported types.
These properties and methods does not changes the collection content.
| - (SCArray *) array |
Returns the array which contains the all objects from the receiving collection.
Reimplemented in SCArray, and SCCollection.
| - (SCBidirectionalList *) bidirectionalList |
Returns the bidirectional list which contains the all objects from the receiving collection.
Reimplemented in SCCollection.
| - (BOOL) containsAnyObject: | (id) | 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.
| object | - first desired object |
| ... | - other desired objects |
| NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) containsAnyObjectFromCollection: | (id) | collection |
Returns a boolean value that indicates whether the receiving collection contains at least one object from the specified collection of any supported type.
| collection | - collection with the desired objects |
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) containsCollection: | (id) | collection |
Returns a boolean value that indicates whether the receiving collection contains all objects from the specified collection of any supported type.
| collection | - collection with the desired objects |
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) containsObject: | (id) | object |
Returns a boolean value that indicates whether an equivalent of the given object is present in the receiving collection.
| object | - desired object |
Reimplemented in SCCollection, and NSDictionary(SCNSDictionary).
| - (BOOL) containsObjects: | (id) | object | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Returns a boolean value that indicates whether the receiving collection contains all objects from the specified nil terminated list.
| object | - first desired object |
| ... | - other desired objects |
| NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (SCULong) count |
Returns the count of objects within the receiving collection.
| - (NSString *) description |
Returns the receiving collection description.
| - (SCDictionary *) dictionary |
Returns the dictionary which contains the all objects from the receiving collection.
Reimplemented in SCCollection, and SCDictionary.
| - (BOOL) empty |
Determines whether the receiving collection is empty or contains at least one object.
| - (NSArray *) foundationArray |
Returns the class NSArray instance which contains the all objects from the receiving collection.
Reimplemented in SCCollection.
| - (NSDictionary *) foundationDictionary |
Returns the class NSDictionary instance which contains the all objects from the receiving collection.
Reimplemented in SCCollection.
| - (NSOrderedSet *) foundationOrderedSet |
Returns the class NSOrderedSet instance which contains the all objects from the receiving collection.
Reimplemented in SCCollection.
| - (NSSet *) foundationSet |
Returns the class NSSet instance which contains the all objects from the receiving collection.
Reimplemented in SCCollection.
| - (id) initWithCollection: | (id) | collection |
Initializes a collection using the specified existing collection of any supported type.
| collection | - existing source collection |
| SCCollectionException | - collection error detected |
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCArray, SCOrderedSet, SCCollection, NSDictionary(SCNSDictionary), NSSet(SCNSSet), SCDictionary, SCQueue, SCList, SCStack, and SCSet.
| - (BOOL) isArray |
Returns a boolean value that indicates whether a receiving instance is an array of any supported type.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isCollection |
Returns a boolean value that indicates whether a receiving instance is a collection of any supported type.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isDictionary |
Returns a boolean value that indicates whether a receiving instance is a dictionary of any supported type.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isFoundationArray |
Returns a boolean value that indicates whether a receiving instance is a standard array (instances of the classes NSArray and NSMutableArray).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isFoundationCollection |
Returns a boolean value that indicates whether a receiving instance is a standard Objective-C collection.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isFoundationDictionary |
Returns a boolean value that indicates whether a receiving instance is a standard dictionary (instances of the classes NSDictionary and NSMutableDictionary).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isFoundationOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a standard orderde set (instances of the classes NSOrderedSet and NSMutableOrderedSet).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isFoundationSet |
Returns a boolean value that indicates whether a receiving instance is a standard set (instances of the classes NSSet and NSMutableSet).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isLibraryArray |
Returns a boolean value that indicates whether a receiving instance is a library array (class SCArray instance).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isLibraryCollection |
Returns a boolean value that indicates whether a receiving instance is a library collection.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isLibraryDictionary |
Returns a boolean value that indicates whether a receiving instance is a library dictionary (class SCDictionary instance).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isLibraryOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a library ordered set (class SCOrderedSet instance).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isLibrarySet |
Returns a boolean value that indicates whether a receiving instance is a library set (class SCSet instance).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isList |
Returns a boolean value that indicates whether a receiving instance is a list (instances of the classes SCUnidirectionalList and SCBidirectionalList).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isOrderedSet |
Returns a boolean value that indicates whether a receiving instance is an ordered set of any supported type.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isQueue |
Returns a boolean value that indicates whether a receiving instance is a queue (class SCQueue instance).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isSet |
Returns a boolean value that indicates whether a receiving instance is a set of any supported type.
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isSortable |
Returns a boolean value that indicates whether a receiving instance is a sortable collection (array or ordered set of any supported type).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (BOOL) isStack |
Returns a boolean value that indicates whether a receiving instance is a stack (class SCStack instance).
Reimplemented in NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), SCCollection, NSDictionary(SCNSDictionary), and NSSet(SCNSSet).
| - (NSEnumerator *) objectEnumerator |
Returns an enumerator object that lets you access each object within the collection.
| - (SCOrderedSet *) orderedSet |
Returns the ordered set which contains the all objects from the receiving collection.
Reimplemented in SCOrderedSet, and SCCollection.
| - (SCQueue *) queue |
Returns the queue which contains the all objects from the receiving collection.
Reimplemented in SCCollection, and SCQueue.
| - (BOOL) readOnly |
Determines whether the receiving collection is in read only mode.
| - (NSEnumerator *) reverseObjectEnumerator |
Returns an enumerator object that lets you access each object within the collection, in reverse order.
| - (SCSet *) set |
Returns the set which contains the all objects from the receiving collection.
Reimplemented in SCCollection, and SCSet.
| - (SCStack *) stack |
Returns the stack which contains the all objects from the receiving collection.
Reimplemented in SCCollection, and SCStack.
| - (SCUnidirectionalList *) unidirectionalList |
Returns the unidirectional list which contains the all objects from the receiving collection.
Reimplemented in SCCollection.
|
readnonatomicretain |
Array with the all collection objects.
|
readnonatomicretain |
Bidirectional list with the all collection objects.
|
readnonatomicassign |
Number of objects within the collection.
|
readnonatomicretain |
Collection description.
|
readnonatomicretain |
Dictionary with the all collection objects.
|
readnonatomicassign |
Determines whether the collection is empty or contains at least one object.
|
readnonatomicretain |
Class NSArray instance with the all collection objects.
|
readnonatomicretain |
Class NSDictionary instance with the all collection objects.
|
readnonatomicretain |
Class NSOrderedSet instance with the all collection objects.
|
readnonatomicretain |
Class NSSet instance with the all collection objects.
|
readnonatomicretain |
Enumerate object that lets you access each object within collection.
|
readnonatomicretain |
Ordered set with the all collection objects.
|
readnonatomicretain |
Queue with the all collection objects.
|
readnonatomicretain |
Set with the all collection objects.
|
readnonatomicretain |
Stack with the all collection objects.
|
readnonatomicretain |
Unidirectional list with the all collection objects.
1.8.9.1