|
Samond Classes Library 1.1.6-RELEASE build 132
|
Objects stack representation class. More...
#import <SCStack.h>
Objects stack representation class.
Class represents the objects stack - collection, in which items are stored in reverse order of adding, with access only to the last added item.
Class was introduced in version 1.1.3.
Class declares the following properties:
| - (void) duplicateLastObject |
Duplicates the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (id) init |
Initializes the stack using the default settings.
Reimplemented from SCCollection.
| - (id) initWithCapacity: | (SCULong) | capacity |
Initializes the stack using the specified stack capacity.
| capacity | - stack capacity |
| - (id) initWithCollection: | (id) | collection |
Initializes the stack using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - stack error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Initializes the stack using the specified delegate object.
| delegate | - delegate object |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Initializes the stack using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - stack error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Initializes the stack using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing source object |
| SCCollectionException | - stack error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Initializes the stack using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - stack error detected |
| - (id) initWithObject: | (id) | object |
Initializes the stack using the specified existing object.
| object | - existing source object |
| SCCollectionException | - stack error detected |
| - (id) initWithObjects: | (id) | object | |
| , | ... | ||
Initializes the stack using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - stack error detected |
| - (id) initWithStack: | (SCStack *) | stack |
Initializes the stack using the existing stack.
| stack | - source stack |
| SCCollectionError | - stack error detected |
| - (id) initWithStackName: | (NSString *) | name |
Initializes the stack using the specified stack name.
| name | - stack name |
| - (id) initWithStackName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
Initializes the stack using the specified stack name and capacity.
| name | - stack name |
| capacity | - stack capacity |
| - (BOOL) lastBool |
Returns as a boolean value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCByte) lastByte |
Returns as a signed 8-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (char) lastChar |
Returns as a char value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (const char *) lastCharString |
Returns as a char string the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCDouble) lastDouble |
Returns as a double precision float value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCFloat) lastFloat |
Returns as a single precision float value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCInteger) lastInteger |
Returns as a signed 32-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCLong) lastLong |
Returns as a signed 64-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (NSNumber *) lastNumber |
Returns as a number the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (id) lastObject |
Returns the object from the top of the receiving stack without deleting.
| - (SCShort) lastShort |
Returns as a signed 16-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (NSString *) lastString |
Returns as a string the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCUByte) lastUByte |
Returns as an unsigned 8-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCUInteger) lastUInteger |
Returns as an unsigned 32-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCULong) lastULong |
Returns as an unsigned 64-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (unichar) lastUnichar |
Returns as an unichar value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (SCUShort) lastUShort |
Returns as an unsigned 16-bit value the object from the top of the receiving stack without deleting.
| SCCollectionException | - stack error detected |
| - (void) pop |
Removes the object from the top of the receiving stack without returning the poped object.
| SCCollectionException | - stack error detected |
| - (BOOL) popBool |
Returns as a bolean value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCByte) popByte |
Returns as a signed 8-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (char) popChar |
Returns as a char value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (const char *) popCharString |
Returns as a char string and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCDouble) popDouble |
Returns as a double precision float value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCFloat) popFloat |
Returns as a single precision float value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCInteger) popInteger |
Returns as a signed 32-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCLong) popLong |
Returns as a signed 64-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (NSNumber *) popNumber |
Returns as a number and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (id) popObject |
Returns and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCShort) popShort |
Returns as a signed 16-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (NSString *) popString |
Returns as a string and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCUByte) popUByte |
Returns as an unsigned 8-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCUInteger) popUInteger |
Returns as an unsigned 32-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCULong) popULong |
Returns as an unsigned 64-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (unichar) popUnichar |
Returns as an unichar value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (SCUShort) popUShort |
Returns as an unsigned 16-bit integer value and removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (void) pushBool: | (BOOL) | boolean |
Pushes into the receiving stack the specified boolean value.
| boolean | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushByte: | (SCByte) | byte |
Pushes into the receiving stack the specified signed 8-bit integer value.
| byte | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushChar: | (char) | chr |
Pushes into the receiving stack the specified char value.
| chr | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushCharString: | (const char *) | string |
Pushes into the receiving stack the specified char string.
| string | - pushed string |
| SCCollectionException | - stack error detected |
| - (void) pushDouble: | (SCDouble) | dbl |
Pushes into the receiving stack the specified double precision float value.
| dbl | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushFloat: | (SCFloat) | flt |
Pushes into the receiving stack the specified single precision float value.
| flt | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushInteger: | (SCInteger) | integer |
Pushes into the receiving stack the specified signed 32-bit integer value.
| integer | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushLong: | (SCLong) | longint |
Pushes into the receiving stack the specified signed 64-bit integer value.
| longint | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushObject: | (id) | object |
Pushes into the receiving stack the specified object.
| object | - pushed object |
| SCCollectionException | - stack error detected |
| - (void) pushObjects: | (id) | object | |
| , | ... | ||
Pushes into the receiving stack the objects from the specified nil terminated list.
| object | - first pushed object |
| ... | - other pushed objects |
| SCCollectionException | - stack error detected |
| - (void) pushObjectsFromCollection: | (id) | collection |
Pushes into the receiving stack the objects from the specified collection.
| collection | - source collection |
| SCCollectionException | - stack error detected |
| - (void) pushShort: | (SCShort) | shortint |
Pushes into the receiving stack the specified signed 16-bit integer value.
| shortint | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushUByte: | (SCUByte) | byte |
Pushes into the receiving stack the specified unsigned 8-bit integer value.
| byte | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushUInteger: | (SCUInteger) | integer |
Pushes into the receiving stack the specified unsigned 32-bit integer value.
| integer | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushULong: | (SCULong) | longint |
Pushes into the receiving stack the specified unsigned 64-bit integer value.
| longint | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushUnichar: | (unichar) | chr |
Pushes into the receiving stack the specified unichar value.
| chr | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) pushUShort: | (SCUShort) | shortint |
Pushes into the receiving stack the specified unsigned 16-bit integer value.
| shortint | - pushed value |
| SCCollectionException | - stack error detected |
| - (void) removeLastObject |
Removes the object from the top of the receiving stack.
| SCCollectionException | - stack error detected |
| - (void) setStackName: | (NSString *) | name |
Sets the receiving stack name.
| name | - stack name |
| + (SCStack *) stack |
Returns the stack created by using the default settings.
Reimplemented from SCCollection.
| - (NSString *) stackName |
Returns the receiving stack name.
Returns the stack created by using the specified stack capacity.
| capacity | - stack capacity |
| + (SCStack *) stackWithCoder: | (NSCoder *) | coder |
Returns a stack created by using the specified coder.
| coder | - source coder |
| + (SCStack *) stackWithCollection: | (id) | collection |
Returns the stack created by using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - stack error detected |
| + (SCStack *) stackWithContentsOfSerializedFile: | (NSString *) | path |
Returns a stack created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCStack *) stackWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a stack created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCStack *) stackWithDataDictionaryFromFile: | (NSString *) | path |
Returns a stack created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCStack *) stackWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Returns the stack created by using the specified delegate object.
| delegate | - delegate object |
| + (SCStack *) stackWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Returns the stack created by using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - stack error detected |
| + (SCStack *) stackWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Returns the stack created by using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing source object |
| SCCollectionException | - stack error detected |
| + (SCStack *) stackWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Returns the stack created by using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - stack error detected |
| + (SCStack *) stackWithFileStream: | (NSString *) | path |
Returns a stack created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
Returns a stack created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCStack *) stackWithObject: | (id) | object |
Returns the stack created by using the specified existing object.
| object | - existing source object |
| SCCollectionException | - stack error detected |
| + (SCStack *) stackWithObjects: | (id) | object | |
| , | ... | ||
Returns the stack created by using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - array error detected |
Returns the stack created by using the existing stack.
| stack | - source stack |
| SCCollectionError | - stack error detected |
| + (SCStack *) stackWithStackName: | (NSString *) | name |
Returns the stack created by using the specified stack name.
| name | - stack name |
Returns the stack created by using the specified stack name and capacity.
| name | - stack name |
| capacity | - stack capacity |
Returns a stack created from the specified stream.
| stream | - stream for reading stack |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
1.7.3