Samond Classes Library 1.2.6-STABLE build 219
|
Collection classes protocol. More...
#import <SCCollectionProtocols.h>
Primary Collection Properties | |
NSString * | name |
SCIndex | count |
BOOL | empty |
BOOL | readOnly |
id< SCCollectionDelegate > | delegate |
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 |
Objects Enumerators | |
NSEnumerator * | objectEnumerator |
NSEnumerator * | reverseObjectEnumerator |
(NSUInteger) | - countByEnumeratingWithState:objects:count: |
Detecting Collection Type | |
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 |
Initializing Collections | |
(instancetype) | - initWithCollection: |
Finding Objects in a Collection | |
(BOOL) | - containsObject: |
(BOOL) | - containsObjects: |
(BOOL) | - containsCollection: |
(BOOL) | - containsAnyObject: |
(BOOL) | - containsAnyObjectFromCollection: |
Comparing Collections | |
(BOOL) | - isEqualToCollection: |
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.
- (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.
object | - first desired object |
... | - other desired objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
Reimplemented in SCCollection, NSOrderedSet(SCOrderedSet), NSArray(SCArray), NSDictionary(SCDictionary), and NSSet(SCSet).
- (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.
collection | - collection with the desired objects |
Reimplemented in SCCollection, NSOrderedSet(SCOrderedSet), NSArray(SCArray), NSDictionary(SCDictionary), and NSSet(SCSet).
- (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.
collection | - collection with the desired objects |
Reimplemented in SCCollection, NSOrderedSet(SCOrderedSet), NSArray(SCArray), NSDictionary(SCDictionary), and NSSet(SCSet).
- (BOOL) containsObject: | (id< SCCollectioning >) | 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(SCDictionary).
- (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.
object | - first desired object |
... | - other desired objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
Reimplemented in SCCollection, NSOrderedSet(SCOrderedSet), NSArray(SCArray), NSDictionary(SCDictionary), and NSSet(SCSet).
- (NSUInteger) countByEnumeratingWithState: | (NSFastEnumerationState *) | state | |
objects: | (id *) | objects | |
count: | (NSUInteger) | count | |
Returns by reference a C array of objects over which the sender should iterate, and as the return value the number of objects in the array.
state | - context information that is used in the enumeration to, in addition to other possibilities, ensure that the collection has not been mutated |
objects | - a C array of objects over which the sender is to iterate |
count | - the maximum number of objects to return in a C array |
Reimplemented in SCCollection.
- (instancetype) initWithCollection: | (id< SCCollection >) | collection |
Initializes a collection using the specified existing collection of any supported type.
collection | - existing source collection |
SCCollectionException | - collection error detected |
Reimplemented in SCCollection, NSOrderedSet(SCOrderedSet), NSArray(SCArray), NSDictionary(SCDictionary), NSSet(SCSet), SCArray, SCOrderedSet, SCDictionary, SCQueue, SCStack, SCSet, and SCList.
- (BOOL) isEqualToCollection: | (id< SCCollection >) | collection |
Returns a boolean value that indicates whether the contents of the receiving collection is equals to the contents of another given collection.
collection | - the collection with which to compare the receiving collection |
Reimplemented in SCCollection, NSOrderedSet(SCOrderedSet), NSArray(SCArray), NSDictionary(SCDictionary), and NSSet(SCSet).
|
readnonatomicassign |
Array with the all collection objects
|
readnonatomicassign |
Bidirectional list with the all collection objects
|
readnonatomicassign |
A type of the collection
|
readnonatomicassign |
Number of objects within the collection
|
readnonatomicretain |
Collection delegate object
|
readnonatomicassign |
Dictionary with the all collection objects.
|
readnonatomicassign |
Determines whether the collection is empty or contains at least one object
|
readnonatomicassign |
Class NSArray instance with the all collection objects
|
readnonatomicassign |
Class NSDictionary instance with the all collection objects
|
readnonatomicassign |
Class NSOrderedSet instance with the all collection objects
|
readnonatomicassign |
Class NSSet instance with the all collection objects
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is an array of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a collection of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a dictionary of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard array (instances of the classes NSArray and NSMutableArray)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard Objective-C collection
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard dictionary (instances of the classes NSDictionary and NSMutableDictionary)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard orderde set (instances of the classes NSOrderedSet and NSMutableOrderedSet)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard set (instances of the classes NSSet and NSMutableSet)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library array (class SCArray instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library collection
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library dictionary (class SCDictionary instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library ordered set (class SCOrderedSet instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library set (class SCSet instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a list (instances of the classes SCUnidirectionalList and SCBidirectionalList)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is an ordered set of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a queue (class SCQueue instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a set of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a sortable collection (array or ordered set of any supported type)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a stack (class SCStack instance)
|
readnonatomicretain |
Name of the collection
|
readnonatomicassign |
Enumerate object that lets you access each object within collection
|
readnonatomicassign |
Ordered set with the all collection objects
|
readnonatomicassign |
Queue with the all collection objects
|
readnonatomicassign |
Determines whether the collection is in read only mode
|
readnonatomicassign |
Enumerate object that lets you access each object within collection, in reverse order
|
readnonatomicassign |
Set with the all collection objects
|
readnonatomicassign |
Stack with the all collection objects
|
readnonatomicassign |
Unidirectional list with the all collection objects