Parent class of the object list classes.
More...
#import <SCList.h>
Parent class of the object list classes.
- Since
- version 1.1.3
Class declares the common methods for classes, which represent the lists of objects.
Class instances can thrown the following exceptions:
Returns the current object within the receiving list as a boolean value.
- Returns
- A current object or NO if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a signed 8-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a character.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
- See also
- - currentUnichar
- (const char *) currentCharString |
|
|
|
Returns the current object within the receiving list as a character string.
- Returns
- A current object or nil if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a double value.
- Returns
- A current object or 0.0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a float value.
- Returns
- A current object or 0.0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a signed 32-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a signed 64-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as a signed 16-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as an unsigned 8-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as an unsigned 32-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the current object within the receiving list as an unsigned 64-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
- (unichar) currentUnichar |
|
|
|
Returns the current object within the receiving list as a character.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
- See also
- - currentChar
Returns the current object within the receiving list as an unsigned 16-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
- (void) duplicateCurrentObject |
|
|
|
Duplicates the current object within the receiving list.
- Exceptions
-
- (void) duplicateFirstObject |
|
|
|
Duplicates the first object within the receiving list.
- Exceptions
-
Returns the first object within the receiving list as a boolean value.
- Returns
- A current object or NO if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a signed 8-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a character.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
- See also
- - firstUnichar
- (const char *) firstCharString |
|
|
|
Returns the first object within the receiving list as a character string.
- Returns
- A current object or nil if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a double value.
- Returns
- A current object or 0.0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a float value.
- Returns
- A current object or 0.0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a signed 32-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a signed 64-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a signed 16-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as an unsigned 8-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as an unsigned 32-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as an unsigned 64-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Returns the first object within the receiving list as a character.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
- See also
- - firstChar
Returns the first object within the receiving list as an unsigned 16-bit integer value.
- Returns
- A current object or 0 if the list is empty
- Exceptions
-
Initializes an empty unnamed list.
- Returns
- A newly initialized list
- (id) initWithCollection: |
|
(id) |
collection |
|
Initializes a newly allocated list with objects from the specified collection of any supported type.
- Parameters
-
collection | - a collection with objects to add into the list |
- Returns
- An initialized list with the objects from a given collection
- Exceptions
-
Reimplemented from SCCollection.
- (id) initWithList: |
|
(SCList *) |
list |
|
Initializes a newly allocated list by placing in it the objects contained in another given list.
- Attention
- Designed initializer
- Parameters
-
list | - a list containing the objects with which to initialize the new list |
- Returns
- An initialized list containing the objects found in the specified source list
- Exceptions
-
- (id) initWithName: |
|
(NSString *) |
name |
|
Initializes an empty list using the specified list name.
- Attention
- Designed initializer
- Parameters
-
- Returns
- A newly initialized list
- (id) initWithObject: |
|
(id) |
object |
|
Initializes a newly allocated list containing a given object.
- Parameters
-
object | - the object to adding into the list |
- Returns
- An initialized list containing a single object
- (id) initWithObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Initializes a newly allocated list containing objects from the specified list.
- Parameters
-
object | - the first object to add into the list |
... | - a null-terminated list of alternating objects to add into the list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Returns
- An initialized list containing the specified objects
- (void) insertCurrentBool: |
|
(BOOL) |
value |
|
Inserts a given boolean value into the receiving list before the current object.
- Parameters
-
value | - the boolean value to add into the list |
- Exceptions
-
- (void) insertCurrentByte: |
|
(SCByte) |
value |
|
Inserts a given signed 8-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentChar: |
|
(char) |
value |
|
Inserts a given character into the receiving list before the current object.
- Parameters
-
value | - the character to add into the list |
- Exceptions
-
- See also
- - insertCurrentUnichar:
- (void) insertCurrentCharString: |
|
(const char *) |
string |
|
Inserts a given character string into the receiving list before the current object.
- Parameters
-
string | - the character string to add into the list |
- Exceptions
-
- (void) insertCurrentCollection: |
|
(id) |
collection |
|
Inserts the objects from the specified collection into the receiving list before the current object.
- Parameters
-
collection | - the collection of objects to add into the receiving list |
- Exceptions
-
- (void) insertCurrentDouble: |
|
(SCDouble) |
value |
|
Inserts a given double value into the receiving list before the current object.
- Parameters
-
value | - the double value to add into the list |
- Exceptions
-
- (void) insertCurrentFloat: |
|
(SCFloat) |
value |
|
Inserts a given float value into the receiving list before the current object.
- Parameters
-
value | - the float value to add into the list |
- Exceptions
-
- (void) insertCurrentInteger: |
|
(SCInteger) |
value |
|
Inserts a given signed 32-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentLong: |
|
(SCLong) |
value |
|
Inserts a given signed 64-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentObject: |
|
(id) |
object |
|
Inserts a given object into the receiving list before the current object.
- Parameters
-
object | - the object to add into the list |
- Exceptions
-
- (void) insertCurrentObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Inserts the objects from the specified list into the receiving list before the current object.
- Parameters
-
object | - the first object to add into the list |
... | - other objects from the null-terminated list to add into the receiving list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Exceptions
-
- (void) insertCurrentShort: |
|
(SCShort) |
value |
|
Inserts a given signed 16-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentUByte: |
|
(SCUByte) |
value |
|
Inserts a given unsigned 8-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentUInteger: |
|
(SCUInteger) |
value |
|
Inserts a given unsigned 32-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentULong: |
|
(SCULong) |
value |
|
Inserts a given unsigned 64-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertCurrentUnichar: |
|
(unichar) |
value |
|
Inserts a given character into the receiving list before the current object.
- Parameters
-
value | - the character to add into the list |
- Exceptions
-
- See also
- - insertCurrentChar:
- (void) insertCurrentUShort: |
|
(SCUShort) |
value |
|
Inserts a given unsigned 16-bit integer value into the receiving list before the current object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstBool: |
|
(BOOL) |
value |
|
Inserts a given boolean value into the receiving list before the first object.
- Parameters
-
value | - the boolean value to add into the list |
- Exceptions
-
- (void) insertFirstByte: |
|
(SCByte) |
value |
|
Inserts a given signed 8-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstChar: |
|
(char) |
value |
|
Inserts a given character into the receiving list before the first object.
- Parameters
-
value | - the character to add into the list |
- Exceptions
-
- See also
- - insertFirstUnichar:
- (void) insertFirstCharString: |
|
(const char *) |
string |
|
Inserts a given character string into the receiving list before the first object.
- Parameters
-
string | - the character string to add into the list |
- Exceptions
-
- (void) insertFirstCollection: |
|
(id) |
collection |
|
Inserts the objects from the specified collection into the receiving list before the first object.
- Parameters
-
collection | - the collection of objects to add into the receiving list |
- Exceptions
-
- (void) insertFirstDouble: |
|
(SCDouble) |
value |
|
Inserts a given boolean value into the receiving list before the first object.
- Parameters
-
value | - the double value to add into the list |
- Exceptions
-
- (void) insertFirstFloat: |
|
(SCFloat) |
value |
|
Inserts a given float value into the receiving list before the first object.
- Parameters
-
value | - the float value to add into the list |
- Exceptions
-
- (void) insertFirstInteger: |
|
(SCInteger) |
value |
|
Inserts a given signed 32-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstLong: |
|
(SCLong) |
value |
|
Inserts a given signed 64-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstObject: |
|
(id) |
object |
|
Inserts a given object into the receiving list before the first object.
- Parameters
-
object | - the object to add into the list |
- Exceptions
-
- (void) insertFirstObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Inserts the objects from the specified list into the receiving list before the first object.
- Parameters
-
object | - the first object to add into the list |
... | - other objects from the null-terminated list to add into the receiving list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Exceptions
-
- (void) insertFirstShort: |
|
(SCShort) |
value |
|
Inserts a given signed 16-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstUByte: |
|
(SCUByte) |
value |
|
Inserts a given unsigned 8-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
Inserts a given unsigned 32-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstULong: |
|
(SCULong) |
value |
|
Inserts a given unsigned 64-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (void) insertFirstUnichar: |
|
(unichar) |
value |
|
Inserts a given character into the receiving list before the first object.
- Parameters
-
value | - the character to add into the list |
- Exceptions
-
- See also
- - insertFirstChar:
- (void) insertFirstUShort: |
|
(SCUShort) |
value |
|
Inserts a given unsigned 16-bit integer value into the receiving list before the first object.
- Parameters
-
value | - the value to add into the list |
- Exceptions
-
- (BOOL) isEqualToContentsOfList: |
|
(SCList *) |
list |
|
Returns a boolean value that indicates whether the contents of the receiving list are equal to the contents of another given list.
- Parameters
-
list | - the list with which to compare the receiving list |
- Returns
- YES if the contents of the specified list are equal to the contents of the receiving list, otherwise NO
- (BOOL) isEqualToList: |
|
(SCList *) |
list |
|
Returns a boolean value that indicates whether the settings and contents of the receiving list are equal to the settings and contents of another given list.
- Parameters
-
list | - the list with which to compare the receiving list |
- Returns
- YES if the settings and contents of the specified list are equal to the settings and contents of the receiving list, otherwise NO
Shifts the current object pointer to the next object in the receiving list and returns a pointer to the next object.
- Returns
- A next object or nil if the current object is a last object within the list
- (void) removeCurrentObject |
|
|
|
Removes from the receiving list the current object.
- Exceptions
-
- (void) removeFirstObject |
|
|
|
Removes the first object from the receiving list.
- Exceptions
-
- (void) replaceCurrentObjectWithBool: |
|
(BOOL) |
value |
|
Replaces the current object with a given boolean value.
- Parameters
-
value | - the boolean value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithByte: |
|
(SCByte) |
value |
|
Replaces the current object with a given signed 8-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithChar: |
|
(char) |
value |
|
Replaces the current object with a given character.
- Parameters
-
value | - the character with which to replace the current object |
- Exceptions
-
- See also
- - replaceCurrentObjectWithUnichar:
- (void) replaceCurrentObjectWithCharString: |
|
(const char *) |
string |
|
Replaces the current object with a given character string.
- Parameters
-
string | - the character string with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithDouble: |
|
(SCDouble) |
value |
|
Replaces the current object with a given double value.
- Parameters
-
value | - the double value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithFloat: |
|
(SCFloat) |
value |
|
Replaces the current object with a given float value.
- Parameters
-
value | - the float value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithInteger: |
|
(SCInteger) |
value |
|
Replaces the current object with a given signed 32-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithLong: |
|
(SCLong) |
value |
|
Replaces the current object with a given signed 64-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithObject: |
|
(id) |
object |
|
Replaces the current object with a given object.
- Parameters
-
object | - the object with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithShort: |
|
(SCShort) |
value |
|
Replaces the current object with a given signed 16-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithUByte: |
|
(SCUByte) |
value |
|
Replaces the current object with a given unsigned 8-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithUInteger: |
|
(SCUInteger) |
value |
|
Replaces the current object with a given unsigned 32-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithULong: |
|
(SCULong) |
value |
|
Replaces the current object with a given unsigned 64-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceCurrentObjectWithUnichar: |
|
(unichar) |
value |
|
Replaces the current object with a given character.
- Parameters
-
value | - the character with which to replace the current object |
- Exceptions
-
- See also
- - replaceCurrentObjectWithChar:
- (void) replaceCurrentObjectWithUShort: |
|
(SCUShort) |
value |
|
Replaces the current object with a given unsigned 16-bit integer value.
- Parameters
-
value | - the value with which to replace the current object |
- Exceptions
-
- (void) replaceFirstObjectWithBool: |
|
(BOOL) |
value |
|
Replaces the first object with a given boolean value.
- Parameters
-
value | - the boolean value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithByte: |
|
(SCByte) |
value |
|
Replaces the first object with a given signed 8-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithChar: |
|
(char) |
value |
|
Replaces the first object with a given character.
- Parameters
-
value | - the character with which to replace the first object |
- Exceptions
-
- See also
- - replaceFirstObjectWithUnichar:
- (void) replaceFirstObjectWithCharString: |
|
(const char *) |
string |
|
Replaces the first object with a given character string.
- Parameters
-
string | - the character string with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithDouble: |
|
(SCDouble) |
value |
|
Replaces the first object with a given double value.
- Parameters
-
value | - the double value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithFloat: |
|
(SCFloat) |
value |
|
Replaces the first object with a given float value.
- Parameters
-
value | - the float value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithInteger: |
|
(SCInteger) |
value |
|
Replaces the first object with a given signed 32-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithLong: |
|
(SCLong) |
value |
|
Replaces the first object with a given signed 64-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithObject: |
|
(id) |
object |
|
Replaces the first object with a given object.
- Parameters
-
object | - the object with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithShort: |
|
(SCShort) |
value |
|
Replaces the first object with a given signed 16-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithUByte: |
|
(SCUByte) |
value |
|
Replaces the first object with a given unsigned 8-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithUInteger: |
|
(SCUInteger) |
value |
|
Replaces the first object with a given unsigned 32-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithULong: |
|
(SCULong) |
value |
|
Replaces the first object with a given unsigned 64-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) replaceFirstObjectWithUnichar: |
|
(unichar) |
value |
|
Replaces the first object with a given character.
- Parameters
-
value | - the character with which to replace the first object |
- Exceptions
-
- See also
- - replaceFirstObjectWithChar:
- (void) replaceFirstObjectWithUShort: |
|
(SCUShort) |
value |
|
Replaces the first object with a given unsigned 16-bit integer value.
- Parameters
-
value | - the value with which to replace the first object |
- Exceptions
-
- (void) setList: |
|
(SCList *) |
list |
|
Sets the settings and contents of the receiving list to settings and objects in a given list.
- Parameters
-
- Exceptions
-
- (NSNumber *) currentNumber |
|
readnonatomicretain |
The current object within the list as a number
The current object within the list or nil if the list is empty
- (NSString *) currentString |
|
readnonatomicretain |
The current object within the list as a string
- (NSNumber *) firstNumber |
|
readnonatomicretain |
The first object within the list as a number
The first object within the list or if the list is empty
Returns the current object within the receiving list as a float value.
- Returns
- A current object or 0.0 if the list is empty
- Exceptions
-
- (NSString *) firstString |
|
readnonatomicretain |
The first object within the list as a string
The documentation for this class was generated from the following files: