|
Samond Classes Library 1.1.6-RELEASE build 132
|
Abstract parent class of library collection classes. More...
#import <SCCollection.h>
Abstract parent class of library collection classes.
Class contains the declaration of all common collection methods.
Class was introduced in version 1.1.3.
Class declares the following properties:
| - (void) addBool: | (BOOL) | boolean |
Adds into the receiving collection the specified boolean variable.
| boolean | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addByte: | (SCByte) | byte |
Adds into the receiving collection the specified signed 8-bit integer variable.
| byte | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addChar: | (char) | chr |
Adds into the receiving collection the specified char variable.
| chr | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addCharString: | (const char *) | string |
Adds into the receiving collection the specified char string variable.
| string | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addDouble: | (SCDouble) | dbl |
Adds into the receiving collection the specified double precision float variable.
| dbl | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addFloat: | (SCFloat) | flt |
Adds into the receiving collection the specified single precision float variable.
| flt | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addInteger: | (SCInteger) | integer |
Adds into the receiving collection the specified signed 32-bit integer variable.
| integer | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addLong: | (SCLong) | longint |
Adds into the receiving collection the specified signed 64-bit integer variable.
| longint | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addObject: | (id) | object |
Adds into the receiving collection the specified object.
| object | - added object |
| SCCollectionException | - collection error detected |
| - (void) addObjects: | (id) | object | |
| , | ... | ||
Adds into the collection the specified objects.
| object | - first object |
| ... | - other objects with nil terminate |
| SCCollectionException | - exception error detected |
| - (void) addObjectsFromCollection: | (id) | collection |
Adds into the receiving collection the objects from the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - collection error detected |
| - (void) addShort: | (SCShort) | sht |
Adds into the receiving collection the specified signed 16-bit integer variable.
| sht | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addUByte: | (SCUByte) | byte |
Adds into the receiving collection the specified unsigned 8-bit integer variable.
| byte | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addUInteger: | (SCUInteger) | integer |
Adds into the receiving collection the specified unsigned 32-bit integer variable.
| integer | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addULong: | (SCULong) | longint |
Adds into the receiving collection the specified unsigned 64-bit integer variable.
| longint | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addUnichar: | (unichar) | chr |
Adds into the receiving collection the specified unichar variable.
| chr | - added variable |
| SCCollectionException | - collection error detected |
| - (void) addUShort: | (SCUShort) | sht |
Adds into the receiving collection the specified unsigned 16-bit integer variable.
| sht | - added variable |
| SCCollectionException | - collection error detected |
| - (SCArray *) array |
Returns the array with the copy of all receiving collection objects.
Reimplemented in SCArray.
| - (SCBidirectionalList *) bidirectionalList |
Returns the bidirectional list with the copy of all receiving collection objects.
| - (SCULong) capacity |
Returns the collection max size.
| - (NSString *) collectionName |
Returns the collection name.
| - (BOOL) containsAnyObject: | (id) | object | |
| , | ... | ||
Returns a Boolean value that indicates whether the receiver's collection contains at least one object from the specified nil terminated list.
| object | - fist desired object |
| ... | - other desired objects |
| - (BOOL) containsAnyObjectFromCollection: | (id) | collection |
Returns a Boolean value that indicates whether the receiver's collection contains at least one object from the specified collection.
| collection | - source collection |
| SCCollectionException | - collection error detected |
| - (BOOL) containsBool: | (BOOL) | boolean |
Returns a Boolean value that indicates whether a equivalent of the given boolean value is present in the receiver's collection.
| boolean | - desired value |
| - (BOOL) containsByte: | (SCByte) | byte |
Returns a Boolean value that indicates whether a equivalent of the given signed 8-bit integer value is present in the receiver's collection.
| byte | - desired value |
| - (BOOL) containsChar: | (char) | chr |
Returns a Boolean value that indicates whether a equivalent of the given char value is present in the receiver's collection.
| chr | - desired value |
| - (BOOL) containsCharString: | (const char *) | string |
Returns a Boolean value that indicates whether a equivalent of the given char string value is present in the receiver's collection.
| string | - desired value |
| - (BOOL) containsDouble: | (SCDouble) | dbl |
Returns a Boolean value that indicates whether a equivalent of the given double precision float value is present in the receiver's collection.
| dbl | - desired value |
| - (BOOL) containsFloat: | (SCFloat) | flt |
Returns a Boolean value that indicates whether a equivalent of the given single precision float value is present in the receiver's collection.
| flt | - desired value |
| - (BOOL) containsInteger: | (SCInteger) | integer |
Returns a Boolean value that indicates whether a equivalent of the given signed 32-bit integer value is present in the receiver's collection.
| integer | - desired value |
| - (BOOL) containsLong: | (SCLong) | longint |
Returns a Boolean value that indicates whether a equivalent of the given signed 64-bit integer value is present in the receiver's collection.
| longint | - desired value |
| - (BOOL) containsObject: | (id) | object |
Returns a Boolean value that indicates whether a equivalent of the given object is present in the receiver's collection.
| object | - desired object |
| - (BOOL) containsObjects: | (id) | object | |
| , | ... | ||
Returns a Boolean value that indicates whether the receiver's collection contains the all objects from the specified nil terminated list.
| object | - fist desired object |
| ... | - other desired objects |
| - (BOOL) containsObjectsFromCollection: | (id) | collection |
Returns a Boolean value that indicates whether the receiver's collection contains the all objects from the specified collection.
| collection | - source collection |
| SCCollectionException | - collection error detected |
| - (BOOL) containsShort: | (SCShort) | sht |
Returns a Boolean value that indicates whether a equivalent of the given signed 16-bit integer value is present in the receiver's collection.
| sht | - desired value |
| - (BOOL) containsUByte: | (SCUByte) | byte |
Returns a Boolean value that indicates whether a equivalent of the given unsigned 8-bit integer value is present in the receiver's collection.
| byte | - desired value |
| - (BOOL) containsUInteger: | (SCUInteger) | integer |
Returns a Boolean value that indicates whether a equivalent of the given unsigned 32-bit integer value is present in the receiver's collection.
| integer | - desired value |
| - (BOOL) containsULong: | (SCULong) | longint |
Returns a Boolean value that indicates whether a equivalent of the given unsigned 64-bit integer value is present in the receiver's collection.
| longint | - desired value |
| - (BOOL) containsUnichar: | (unichar) | chr |
Returns a Boolean value that indicates whether a equivalent of the given unichar value is present in the receiver's collection.
| chr | - desired value |
| - (BOOL) containsUShort: | (SCUShort) | sht |
Returns a Boolean value that indicates whether a equivalent of the given unsigned 16-bit integer value is present in the receiver's collection.
| sht | - desired value |
| - (void) copyFromCollection: | (id) | collection |
Replaces the content and settings of the receiving collection of content and settings from the specified existing collection.
| collection | - existing collection |
| SCCollectionException | - collection error detected |
| - (void) copyFromObject: | (id) | object |
Replaces the content of the receiving collection by the specified object.
| object | - existing source object |
| SCCollectionException | - collection error detected |
| - (void) copyFromObjects: | (id) | object | |
| , | ... | ||
Replaces the receiver's collection content by the items from the specified existing objects.
| object | - first source object |
| ... | - other objects nil terminated list |
| SCCollectionException | - collection error detected |
| - (SCULong) count |
Returns the count of collection items.
| + (SCULong) countOfCollection: | (id) | collection |
Returns the count of objects within the specified collection.
| collection | - source collection |
| SCCollectionException | - collection error detected |
| - (id< SCCollectionDelegate >) delegate |
Returns the collection events delegate object.
| - (NSString *) description |
Returns the string with the receiving collection description.
| - (SCDictionary *) dictionary |
Returns the dictionary with the copy of all receiving collection objects.
Reimplemented in SCDictionary.
| - (void) enumerate |
Tells the collection delegate object for each objects in the receiving collection.
| - (void) enumerateWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Tells the specified delegate object for each objects in the receiving collection.
| delegate | - delegate object |
| - (NSArray *) foundationArray |
Returns the foundation array with the copy of all receiving collection objects.
| - (NSDictionary *) foundationDictionary |
Returns the foundation dictionary with the copy of all receiving collection objects.
| - (NSSet *) foundationSet |
Returns the foundation set with the copy of all receiving collection objects.
| - (SCLong) freeCount |
Returns the collection free items count.
| - (BOOL) freeItemsAvailable |
Determines whether the receiver's collection have the available free space for adding items.
| - (BOOL) isArray |
Returns a boolean value that indicates whether a receiving instance is an array.
| + (BOOL) isArray: | (id) | object |
Returns a boolean value that indicates whether a given instance is an array.
| object | - tested instance |
| + (BOOL) isArrayClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is an array class name.
| name | - tested class name |
| - (BOOL) isCollection |
Returns a boolean value that indicates whether a receiving instance is a collection.
| + (BOOL) isCollection: | (id) | object |
Returns a boolean value that indicates whether a given instance is a collection.
| object | - tested instance |
| + (BOOL) isCollectionClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a collection class name.
| name | - tested class name |
| - (BOOL) isDictionary |
Returns a boolean value that indicates whether a receiving instance is a dictionary.
| + (BOOL) isDictionary: | (id) | object |
Returns a boolean value that indicates whether a given instance is a dictionary.
| object | - tested instance |
| + (BOOL) isDictionaryClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a dictionary class name.
| name | - tested class name |
| - (BOOL) isEmpty |
Determines whether the receiver's collection is empty or contains at least one item.
| - (BOOL) isEqual: | (id) | object |
Returns a boolean value that indicates whether the receiver and a given object are equal.
| object | - object to be compared to the receiver |
Reimplemented from SCObject.
| - (BOOL) isEqualToCollection: | (id) | collection |
Returns a boolean value that indicates whether the contents and settings of the receiving collection are equal to the contents and settings of another given collection.
| collection | - collection with which to compare the receiving collection |
| SCCollectionException | - collection error detected |
| - (BOOL) isEqualToContentsOfCollection: | (id) | collection |
Returns a boolean value that indicates whether the contents of the receiving collection are equal to the contents of another given collection.
| collection | - collection with which to compare the receiving collection |
| SCCollectionException | - collection error detected |
| - (BOOL) isFoundationArray |
Returns a boolean value that indicates whether a receiving instance is a foundation array.
| + (BOOL) isFoundationArray: | (id) | object |
Returns a boolean value that indicates whether a given instance is a foundation array.
| object | - tested instance |
| + (BOOL) isFoundationArrayClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is foundation array class name.
| name | - tested class name |
| - (BOOL) isFoundationCollection |
Returns a boolean value that indicates whether a receiving instance is a foundation collection.
| + (BOOL) isFoundationCollection: | (id) | object |
Returns a boolean value that indicates whether a given instance is a foundation collection.
| object | - tested instance |
| + (BOOL) isFoundationCollectionClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a foundation collection class name.
| name | - tested class name |
| - (BOOL) isFoundationDictionary |
Returns a boolean value that indicates whether a receiving instance is a foundation dictionary.
| + (BOOL) isFoundationDictionary: | (id) | object |
Returns a boolean value that indicates whether a given instance is a foundation dictionary.
| object | - tested instance |
| + (BOOL) isFoundationDictionaryClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a foundation dictionary class name.
| name | - tested class name |
| - (BOOL) isFoundationOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a foundation ordered set.
| + (BOOL) isFoundationOrderedSet: | (id) | object |
Returns a boolean value that indicates whether a given instance is a foundation ordered set.
| object | - tested instance |
| + (BOOL) isFoundationOrderedSetClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a foundation ordered set class name.
| name | - tested class name |
| - (BOOL) isFoundationSet |
Returns a boolean value that indicates whether a receiving instance is a foundation set.
| + (BOOL) isFoundationSet: | (id) | object |
Returns a boolean value that indicates whether a given instance is a foundation set.
| object | - tested instance |
| + (BOOL) isFoundationSetClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a foundation set class name.
| name | - tested class name |
| - (BOOL) isIndexed |
Determines whether the receiver's collection supports indexing of items.
| - (BOOL) isLibraryArray |
Returns a boolean value that indicates whether a receiving instance is a library array.
| + (BOOL) isLibraryArray: | (id) | object |
Returns a boolean value that indicates whether a given instance is a library array.
| object | - tested instance |
| + (BOOL) isLibraryArrayClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a library array class name.
| name | - tested class name |
| - (BOOL) isLibraryCollection |
Returns a boolean value that indicates whether a receiving instance is a library collection.
| + (BOOL) isLibraryCollection: | (id) | object |
Returns a boolean value that indicates whether a given instance is a library collection.
| object | - tested instance |
| + (BOOL) isLibraryCollectionClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a library collection class name.
| name | - tested class name |
| - (BOOL) isLibraryDictionary |
Returns a boolean value that indicates whether a receiving instance is a library dictionary.
| + (BOOL) isLibraryDictionary: | (id) | object |
Returns a boolean value that indicates whether a given instance is a library dictionary.
| object | - tested instance |
| + (BOOL) isLibraryDictionaryClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a library dictionary class name.
| name | - tested class name |
| - (BOOL) isLibraryOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a library ordered set.
| + (BOOL) isLibraryOrderedSet: | (id) | object |
Returns a boolean value that indicates whether a given instance is a library ordered set.
| object | - tested instance |
| + (BOOL) isLibraryOrderedSetClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a library ordered set class name.
| name | - tested class name |
| - (BOOL) isLibrarySet |
Returns a boolean value that indicates whether a receiving instance is a library set.
| + (BOOL) isLibrarySet: | (id) | object |
Returns a boolean value that indicates whether a given instance is a library set.
| object | - tested instance |
| + (BOOL) isLibrarySetClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a library set class name.
| name | - tested class name |
| - (BOOL) isList |
Returns a boolean value that indicates whether a receiving instance is a list.
| + (BOOL) isList: | (id) | object |
Returns a boolean value that indicates whether a given instance is a list.
| object | - tested instance |
| + (BOOL) isListClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a list class name.
| name | - tested class name |
| - (BOOL) isOrderedSet |
Returns a boolean value that indicates whether a receiving instance is an ordered set.
| + (BOOL) isOrderedSet: | (id) | object |
Returns a boolean value that indicates whether a given instance is an ordered set.
| object | - tested instance |
| + (BOOL) isOrderedSetClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a ordered set class name.
| name | - tested class name |
| - (BOOL) isQueue |
Returns a boolean value that indicates whether a receiving instance is a queue.
| + (BOOL) isQueue: | (id) | object |
Returns a boolean value that indicates whether a given instance is a queue.
| object | - tested instance |
| + (BOOL) isQueueClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a queue class name.
| name | - tested class name |
| - (BOOL) isRandomAccess |
Determines whether the receiver's collection supports random acceess to items.
| - (BOOL) isReadOnly |
Determines whether the receiver's collection in read only mode.
| - (BOOL) isSet |
Returns a boolean value that indicates whether a receiving instance is a set.
| + (BOOL) isSet: | (id) | object |
Returns a boolean value that indicates whether a given instance is a set.
| object | - tested instance |
| + (BOOL) isSetClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a set class name.
| name | - tested class name |
| - (BOOL) isSortable |
Returns a boolean value that indicates whether a receiving instance is a sortable collection.
| + (BOOL) isSortable: | (id) | object |
Returns a boolean value that indicates whether a given instance is a sortable collection.
| object | - tested istance |
| + (BOOL) isSortableClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a sortable collection class name.
| name | - tested class name |
| - (BOOL) isStack |
Returns a boolean value that indicates whether a receiving instance is a stack.
| + (BOOL) isStack: | (id) | object |
Returns a boolean value that indicates whether a given instance is a stack.
| object | - tested instance |
| + (BOOL) isStackClass: | (NSString *) | name |
Returns a boolean value that indicates whether a given class name is a stack class name.
| name | - tested class name |
| - (BOOL) isUnlimited |
Determines whether the receiver's collection have unlimited size.
| - (NSEnumerator *) objectEnumerator |
Returns an enumerator object that lets you access each object in the collection.
| - (SCQueue *) queue |
Returns the queue with the copy of all receiving collection objects.
Reimplemented in SCQueue.
| - (void) removeAllObjects |
Removes all objects from the receiver's collection.
| SCCollectionException | - collection error detected |
| - (void) removeObjectsWithClass: | (Class) | oclass |
Removes from the receiver's collection all objects of the specified class.
| oclass | - class of removed objects |
| SCCollectionException | - collection error detected |
| - (void) removeObjectsWithClassName: | (NSString *) | name |
Removes from the receiver's collection all objects of the specified class name.
| name | - class name |
| SCCollectionException | - collection error detected |
| - (void) reverseEnumerate |
Tells the collection delegate object for each objects in the receiving collection, in reverse order.
| - (void) reverseEnumerateWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Tells the specified delegate object for each objects in the receiving collection, in reverse order.
| delegate | - delegate object |
| - (NSEnumerator *) reverseObjectEnumerator |
Returns an enumerator object that lets you access each object in the collection, in reverse order.
| - (SCSet *) set |
Returns the set with the copy of all receiving collection objects.
Reimplemented in SCSet.
| - (void) setCapacity: | (SCULong) | capacity |
Sets the collection max size.
| - (void) setCollectionName: | (NSString *) | name |
Sets the collection name.
| name | - collection name |
| - (void) setDelegate: | (id<SCCollectionDelegate>) | delegate |
Sets the collection events delegate objects.
| delegate | - delegate object |
| - (void) setReadOnly: | (BOOL) | flag |
Sets the receiver's collection read only mode flag.
| flag | - YES for set read only mode, otherwise NO |
| - (SCStack *) stack |
Returns the stack with the copy of all receiving collection objects.
Reimplemented in SCStack.
| - (SCCollectionType) type |
Returns the collection type.
| - (NSString *) typeName |
Returns the collection type name.
| - (SCUnidirectionalList *) unidirectionalList |
Returns the unidirectional list with the copy of all receiving collection objects.
1.7.3