|
Samond Classes Library 1.1.6-RELEASE build 132
|
Objects unordered set class. More...
#import <SCSet.h>
Objects unordered set class.
Class implements the representation of an class instances unordered collection called set and declares items management methods.
Class was introduced in version 1.1.3.
Class declares the following properties:
| - (SCArray *) allObjects |
Returns an array containing the set's members.
| - (id) anyObject |
Returns one of the objects in the set.
| - (id) init |
Initializes the set using the default settings.
Reimplemented from SCCollection.
| - (id) initWithCapacity: | (SCULong) | capacity |
Initializes the set using the specified capacity.
| capacity | - set capacity |
| - (id) initWithCollection: | (id) | collection |
Initializes the set using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - set error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Initializes the set using the specified delegate object.
| delegate | - set delegate object |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Initializes the set using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - set error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Initializes the set using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing object |
| SCCollectionException | - set error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Initializes the set using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - set error detected |
| - (id) initWithObject: | (id) | object |
Initializes the set using the specified existing object.
| object | - existing object |
| SCCollectionException | - set error detected |
| - (id) initWithObjects: | (id) | object | |
| , | ... | ||
Initializes the set using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - set error detected |
| - (id) initWithSet: | (SCSet *) | set |
Initializes the set using the existing set.
| set | - source set |
| SCCollectionError | - set error detected |
| - (id) initWithSetName: | (NSString *) | name |
Initializes the set using the specified set name.
| name | - set name |
| - (id) initWithSetName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
Initializes the set using the sepcified set name and capacity.
| name | - set name |
| capacity | - set capacity |
| - (void) intersectCollection: | (id) | collection |
Removes from the receiving set each object that isn't a member of the specified collection.
| collection | - collection with which to perform the intersection |
| SCCollectionException | - set error detected |
| - (BOOL) intersectsCollection: | (id) | collection |
Returns a boolean value that indicates whether at least one object in the receiving set is also present in a given set.
| collection | - collection with which to compare the receiving set |
| SCCollectionException | - set error detected |
| - (BOOL) isSubsetOfCollection: | (id) | collection |
Returns a boolean value that indicates whether every object in the receiving set is also present in a given collection.
| collection | - collection with which to compare the receiving set |
| SCCollectionException | - set error detected |
| - (void) minusCollection: | (id) | collection |
Removes each object in another given collection from the receiving set, if present.
| collection | - collection of objects to remove from the receiving set |
| SCCollectionException | - set error detected |
| - (void) removeBool: | (BOOL) | boolean |
Removes from the set the specified boolean value.
| boolean | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeByte: | (SCByte) | byte |
Removes from the set the specified signed 8-bit integer value.
| byte | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeChar: | (char) | chr |
Removes from the set the specified char value.
| chr | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeCharString: | (const char *) | string |
Removes from the set the specified char string.
| string | - string to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeDouble: | (SCDouble) | dbl |
Removes from the set the specified double precision float value.
| dbl | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeFloat: | (SCFloat) | flt |
Removes from the set the specified single precision float value.
| flt | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeInteger: | (SCInteger) | integer |
Removes from the set the specified signed 32-bit integer value.
| integer | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeLong: | (SCLong) | longint |
Removes from the set the specified signed 64-bit integer value.
| longint | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeObject: | (id) | object |
Removes a given object from the set.
| object | - object to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeObjects: | (id) | object | |
| , | ... | ||
Removes from the set objects from the specified nil terminated list.
| object | - first object to remove from the set |
| ... | - other objects to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeObjectsEqualTo: | (id) | object |
Removes from the receiving set all objects which equal to the specified object.
| object | - template object |
| SCCollectionException | - set error detected |
| - (void) removeObjectsInCollection: | (id) | collection |
Removes from the receiving set the objects in the specified collection.
| collection | - collection containing the objects to be removed from the receiving set |
| SCCollectionException | - set error detected |
| - (void) removeShort: | (SCShort) | shortint |
Removes from the set the specified signed 16-bit integer value.
| shortint | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeUByte: | (SCUByte) | byte |
Removes from the set the specified unsigned 8-bit integer value.
| byte | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeUInteger: | (SCUInteger) | integer |
Removes from the set the specified unsigned 32-bit integer value.
| integer | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeULong: | (SCULong) | longint |
Removes from the set the specified unsigned 64-bit integer value.
| longint | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeUnichar: | (unichar) | chr |
Removes from the set the specified unichar value.
| chr | - value to remove from the set |
| SCCollectionException | - set error detected |
| - (void) removeUShort: | (SCUShort) | shortint |
Removes from the set the specified unsigned 16-bit integer value.
| shortint | - value to remove from the set |
| SCCollectionException | - set error detected |
| + (SCSet *) set |
Return the set created by using the default settings.
Reimplemented from SCCollection.
| - (NSString *) setName |
Returns the receiving set name.
| - (void) setSetName: | (NSString *) | name |
Sets the name of the receiving set.
| name | - set name |
Returns the set created by using the specified capacity.
| capacity | - set capacity |
| + (SCSet *) setWithCoder: | (NSCoder *) | coder |
Returns a set created by using the specified coder.
| coder | - source coder |
| + (SCSet *) setWithCollection: | (id) | collection |
Returns the set created by using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - set error detected |
| + (SCSet *) setWithContentsOfSerializedFile: | (NSString *) | path |
Returns a set created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCSet *) setWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a set created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCSet *) setWithDataDictionaryFromFile: | (NSString *) | path |
Returns a set created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCSet *) setWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Returns the set created by using the specified delegate object.
| delegate | - set delegate object |
| + (SCSet *) setWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Returns the set created by using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - set error detected |
| + (SCSet *) setWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Returns the set created by using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing object |
| SCCollectionException | - set error detected |
| + (SCSet *) setWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Returns the set created by using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - set error detected |
| + (SCSet *) setWithFileStream: | (NSString *) | path |
Returns a set created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (SCSet *) setWithObject: | (id) | object |
Returns the set created by using the specified existing object.
| object | - existing object |
| SCCollectionException | - set error detected |
| + (SCSet *) setWithObjects: | (id) | object | |
| , | ... | ||
Returns the set created by using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - set error detected |
Returns the set created by using the existing set.
| set | - source set |
| SCCollectionError | - set error detected |
| + (SCSet *) setWithSetName: | (NSString *) | name |
Returns the set created by using the specified set name.
| name | - set name |
Returns the set created by using the specified set name and capacity.
| name | - set name |
| capacity | - set capacity |
Returns a set created from the specified stream.
| stream | - stream for reading set |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) unionCollection: | (id) | collection |
Adds each object from the specified collection to the receiving set, if not present.
| collection | - collection of objects to add to the receiving set |
| SCCollectionException | - set error detected |
1.7.3