Unordered set class.
More...
#import <SCSet.h>
Unordered set class.
- Since
- version 1.1.3
Implements the unordered object sets.
Class instances can thrown the following exceptions:
Initializes an empty unnamed set using the default settings.
- Returns
- A newly initialized set
- (id) initWithCollection: |
|
(id) |
collection |
|
Initializes a set using the objects from the specified collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A newly initialized set with the objects from the specified collection
- Exceptions
-
Reimplemented from SCCollection.
- (id) initWithName: |
|
(NSString *) |
name |
|
Initializes an empty set using the specified set name.
- Attention
- Designed initializer
- Parameters
-
- Returns
- A newly initialized set
- (id) initWithObject: |
|
(id) |
object |
|
Initializes a set using the specified existing object.
- Parameters
-
object | - existing source object |
- Returns
- A newly initializes set with the specified object
- Exceptions
-
- (id) initWithObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Initializes a set using the existing objects from the specified nil terminated list.
- Parameters
-
object | - first object within the list |
... | - other objects within the list |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Returns
- A newly initialized set with the objects from the specified list
- (id) initWithSet: |
|
(SCSet *) |
set |
|
Initializes a set using the settings and content of the specified existing set.
- Attention
- Designed initializer
- Parameters
-
- Returns
- A newly initialized set with the settings and content of the specified set
- Exceptions
-
- (void) intersectSet: |
|
(id) |
set |
|
Removes from the receiving set each object that isn't a member of the specified collection of any supported type.
- Parameters
-
set | - collection with which to perform the intersection |
- Exceptions
-
- (BOOL) intersectsSet: |
|
(id) |
set |
|
Returns a boolean value that indicates whether at least one object in the receiving set is also present in the specified collection of any supported type.
- Parameters
-
set | - collection with which to compare the receiving set |
- Returns
- YES if at least one object in the receiving set is also present in the specified collection, otherwise NO
- Exceptions
-
- (BOOL) isEqualToContentsOfSet: |
|
(SCSet *) |
set |
|
Compares the contents of the receiving set to the contents of the specified collection of any supported type.
- Parameters
-
set | - collection with which to compare the receiving set |
- Returns
- YES if the contents of the specified collection is equal to the contents of the receiving set, otherwise NO
- (BOOL) isEqualToSet: |
|
(SCSet *) |
set |
|
Compares the settings and contents of the receiving set to the settings and contents of the specified collection of any supported type.
- Parameters
-
set | - collection with which to compare the receiving set |
- Returns
- YES if the settings and contents of the specified collection are equal to the settings and contents of the receing set, otherwise NO
- (BOOL) isSubsetOfSet: |
|
(id) |
set |
|
Returns a boolean value that indicates whether every object in the receiving set is also present in the specified collection of any supported type.
- Parameters
-
set | - collection with which to compare the receiving set |
- Returns
- YES if every object in the receiving set is also present in the specified collection, otherwise NO
- Exceptions
-
- (void) minusSet: |
|
(id) |
set |
|
Removes each object in the specified collection of any supported type from the receiving set, if present.
- Parameters
-
set | - collection of objects to remove from the receiving list |
- Exceptions
-
Returns an empty unnamed set created by using the default settings.
- Returns
- A created set
Reimplemented from SCCollection.
- (void) setSet: |
|
(SCSet *) |
set |
|
Empties the receiving set, then copies the settings and adds each object contained in another given set.
- Parameters
-
set | - set whose members replace the receiving set content and settings. |
- Exceptions
-
+ (SCSet *) setWithCoder: |
|
(NSCoder *) |
coder |
|
Returns a set created by using the specified coder.
- Parameters
-
- Returns
- A created set
+ (SCSet *) setWithCollection: |
|
(id) |
collection |
|
Returns a set created by using the objects from the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A created set with the objects from the specified collection
- Exceptions
-
+ (SCSet *) setWithContentsOfSerializedFile: |
|
(NSString *) |
path |
|
Returns a set created by using the content of serialized file with the specified path.
- Parameters
-
path | - path of the source serialized file |
- Returns
- A created set
+ (SCSet *) setWithDataDictionary: |
|
(NSDictionary *) |
dictionary |
|
Returns a set created by using the specified data dictionary.
- Parameters
-
dictionary | - source data dictionary |
- Returns
- A created set
+ (SCSet *) setWithDataDictionaryFromFile: |
|
(NSString *) |
path |
|
Returns a set created by using the data dictionary from the specified file.
- Parameters
-
path | - path of the source dictionary file |
- Returns
- A created set
+ (SCSet *) setWithFileStream: |
|
(NSString *) |
path |
|
Returns a set created by using the data from the file stream with the specified path.
- Parameters
-
path | - path of the source file stream |
- Returns
- A created set
- Exceptions
-
+ (SCSet *) setWithName: |
|
(NSString *) |
name |
|
Returns an empty set created by using the specified set name.
- Parameters
-
- Returns
- A created set
+ (SCSet *) setWithObject: |
|
(id) |
object |
|
Returns a set created by using the specified existing object.
- Parameters
-
object | - existing source object |
- Returns
- A created set with the specified object
- Exceptions
-
+ (SCSet *) setWithObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Returns a set created by using the existing objects from the specified nil terminated list.
- Parameters
-
object | - first object within the list |
... | - other objects within the list |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Returns
- A created set with the specified objects
Returns a set created by using the specified existing set.
- Parameters
-
- Returns
- A created set with the settings and objects from the specified existing set
- Exceptions
-
Returns a set created by using the data from the specified stream.
- Parameters
-
- Returns
- A created set
- Exceptions
-
- (void) unionSet: |
|
(id) |
set |
|
Adds each object in the specified collection of any supported type to the receiving set, if not present.
- Parameters
-
set | - collection of objects to add to the receiving list |
- Exceptions
-
An array containing the members of the set, or an empty array if the set has no members
One of the objects in the set, or nil if the set contains no objects
The documentation for this class was generated from the following files: