Samond Classes Library 1.2.1-RELEASE build 181
|
Standard class NSSet functionality extending category. More...
#import <NSSet+SCSet.h>
Creating Sets | |
(instancetype) | + setWithCoder: |
(instancetype) | + setWithContentsOfSerializedFile: |
(instancetype) | + setWithDataDictionary: |
(instancetype) | + setWithDataDictionaryFromFile: |
(instancetype) | + setWithStream: |
(instancetype) | + setWithFileStream: |
(instancetype) | + setWithCollection: |
Initializing Sets | |
(instancetype) | - initWithCollection: |
Protocol SCCollection Implementation | |
BOOL | empty |
BOOL | readOnly |
(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 |
Finding Objects in a Set | |
(BOOL) | - containsObjects: |
(BOOL) | - containsCollection: |
(BOOL) | - containsAnyObject: |
(BOOL) | - containsAnyObjectFromCollection: |
Converting Sets | |
SCArray * | array |
SCSet * | set |
SCOrderedSet * | orderedSet |
SCDictionary * | dictionary |
SCStack * | stack |
SCQueue * | queue |
SCUnidirectionalList * | unidirectionalList |
SCBidirectionalList * | bidirectionalList |
NSArray * | foundationArray |
NSSet * | foundationSet |
NSOrderedSet * | foundationOrderedSet |
NSDictionary * | foundationDictionary |
Additional Inherited Members | |
![]() | |
(NSString *) | - name |
(void) | - setName: |
(SCIndex) | - count |
(BOOL) | - containsObject: |
(NSEnumerator *) | - objectEnumerator |
(NSEnumerator *) | - reverseObjectEnumerator |
![]() | |
NSString * | name |
SCIndex | count |
BOOL | empty |
NSString * | description |
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 |
Standard class NSSet functionality extending category.
Implements the additional methods for add into the standard class NSSet the enhanced functionality.
- (BOOL) containsAnyObject: | (id<SCCollectioning>) | object | |
, | NS_REQUIRES_NIL_TERMINATION | ||
Returns a boolean value that indicates whether the receiving set contains at least one object from the specified list.
object | - the first object to find within the receiving set |
... | - a comma-separated list of additional objects, ending with nil pointer |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
Reimplemented from <SCCollection>.
- (BOOL) containsAnyObjectFromCollection: | (id<SCCollection>) | collection |
Returns a boolean value that indicates whether the receiving set contains at least one object from the specified collection of any supported type.
collection | - the collection with the required objects |
Reimplemented from <SCCollection>.
- (BOOL) containsCollection: | (id<SCCollection>) | collection |
Returns a boolean value that indicates whether the receiving set contains all objects from the specified collection of any supported type.
collection | - the collection with the required objects |
Reimplemented from <SCCollection>.
- (BOOL) containsObjects: | (id<SCCollectioning>) | object | |
, | NS_REQUIRES_NIL_TERMINATION | ||
Returns a boolean value that indicates whether the receiving set contains all objects from the specified list.
object | - the first object to find within the receiving set |
... | - a comma-separated list of additional objects, ending with nil pointer |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
Reimplemented from <SCCollection>.
- (instancetype) initWithCollection: | (id<SCCollection>) | collection |
Initializes a set using the specified existing collection of any supported type.
collection | - the source collection |
SCCollectionException | - collection error detected |
Reimplemented from <SCCollection>.
- (BOOL) isArray |
Returns a boolean value that indicates whether the receiving instance is an array of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isCollection |
Returns a boolean value that indicates whether the receiving instance is a collection of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isDictionary |
Returns a boolean value that indicates whether the receiving instance is a dictionary of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isFoundationArray |
Returns a boolean value that indicates whether the reciving instance is a standard array.
Reimplemented from <SCCollection>.
- (BOOL) isFoundationCollection |
Returns a boolean value that indicates whether the receiving instance is a standard collection.
Reimplemented from <SCCollection>.
- (BOOL) isFoundationDictionary |
Returns a boolean value that indicates whether the receiving instance is a standard dictionary.
Reimplemented from <SCCollection>.
- (BOOL) isFoundationOrderedSet |
Returns a boolean value that indicates whether the receiving instance is a standard ordered set.
Reimplemented from <SCCollection>.
- (BOOL) isFoundationSet |
Returns a boolean value that indicates whether the receiving instance is a standard set.
Reimplemented from <SCCollection>.
- (BOOL) isLibraryArray |
Returns a boolean value that indicates whether the receiving instance is a library array.
Reimplemented from <SCCollection>.
- (BOOL) isLibraryCollection |
Returns a boolean value that indicates whether the receiving instance is a library collection.
Reimplemented from <SCCollection>.
- (BOOL) isLibraryDictionary |
Returns a boolean value that indicates whether the receiving instance is a library dictionary.
Reimplemented from <SCCollection>.
- (BOOL) isLibraryOrderedSet |
Returns a boolean value that indicates whether the receiving instance is a library ordered set.
Reimplemented from <SCCollection>.
- (BOOL) isLibrarySet |
Returns a boolean value that indicates whether the receiving instance is a library set.
Reimplemented from <SCCollection>.
- (BOOL) isList |
Returns a boolean value that indicates whether the receiving instance is a list of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isOrderedSet |
Returns a boolean value that indicates whether the receiving instance is an ordered set of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isQueue |
Returns a boolean value that indicates whether the receiving instance is a queue.
Reimplemented from <SCCollection>.
- (BOOL) isSet |
Returns a boolean value that indicates whether the receiving instance is a set of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isSortable |
Returns a boolean value that indicates whether the receiving instance is a sortable collection of any supported type.
Reimplemented from <SCCollection>.
- (BOOL) isStack |
Returns a boolean value that indicates whether the receiving instance is a stack.
Reimplemented from <SCCollection>.
+ (instancetype) setWithCoder: | (NSCoder *) | coder |
Returns a set created by using the specified coder.
coder | - the source coder |
+ (instancetype) setWithCollection: | (id<SCCollection>) | collection |
Returns a set created by using the specified existing collection of any supported type.
collection | - the source collection |
SCCollectionException | - collection error detected |
+ (instancetype) setWithContentsOfSerializedFile: | (NSString *) | path |
Returns a set created by using the content of serialized file with the specified path.
path | - the path to the source serialized file |
+ (instancetype) setWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a set created by using the specified data dictionary.
dictionary | - the source data dictionary |
+ (instancetype) setWithDataDictionaryFromFile: | (NSString *) | path |
Returns a set created by using the data dictionary from the specified file.
path | - the path to the source file with the data dictionary |
+ (instancetype) setWithFileStream: | (NSString *) | path |
Returns a set created by using the data from the file stream with the specified path.
path | - the path to the source file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
+ (instancetype) setWithStream: | (SCStream *) | stream |
Returns a set created by using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
|
readnonatomicretain |
An array with the all objects from the receiving set
|
readnonatomicretain |
A bidirectional list with the all objects from the receiving set
|
readnonatomicretain |
A dictionary with the all objects from the receiving set
|
readnonatomicassign |
Determines whether the set is empty or contains at least one object
|
readnonatomicretain |
A foundation array with the all objects from the receiving set
|
readnonatomicretain |
A foundation dictionary with all objects from the receiving set
|
readnonatomicretain |
A foundation ordered set with the all objects from the receiving set
|
readnonatomicretain |
A foundation set with the all objects from the receiving set
|
readnonatomicretain |
An ordered set with the all objects from the receiving set
|
readnonatomicretain |
A queue with the all objects from the receiving set
|
readnonatomicassign |
Determines whether the set is in read only mode
|
readnonatomicretain |
A set with the all objects from the receiving set
|
readnonatomicretain |
A stack with the all objects from the receiving set
|
readnonatomicretain |
An unidirectional list with the all objects from the receiving set