|
Samond Classes Library 1.1.6-RELEASE build 132
|
Objects queue class. More...
#import <SCQueue.h>
Objects queue class.
Class represents the objects queue - collection, in which the items are stored in a manner discordant with the order of adding, with access only to the first of the added items.
Class was intriduced in version 1.1.3.
Class declares the following properties:
| - (void) duplicateFirstObject |
Duplicates the first object within the receiving queue.
| SCCollectionException | - queue error detected |
| - (void) duplicateLastObject |
Duplicates the last object within the receiving queue.
| SCCollectionException | - queue error detected |
| - (BOOL) firstBool |
Returns as a boolean value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCByte) firstByte |
Returns as a signed 8-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (char) firstChar |
Returns as a char value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (const char *) firstCharString |
Returns as a char string the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCDouble) firstDouble |
Returns as a double precision float value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCFloat) firstFloat |
Returns as a single precision float value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCInteger) firstInteger |
Returns as a signed 32-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCLong) firstLong |
Returns as a signed 64-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (NSNumber *) firstNumber |
Returns as a number the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (id) firstObject |
Returns the first object from the receiving queue.
| - (SCShort) firstShort |
Returns as a signed 16-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (NSString *) firstString |
Returns as a string the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCUByte) firstUByte |
Returns as an unsigned 8-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCUInteger) firstUInteger |
Returns as an unsigned 32-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCULong) firstULong |
Returns as an unsigned 64-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (unichar) firstUnichar |
Returns as an unichar value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCUShort) firstUShort |
Returns as an unsigned 16-bit integer value the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (BOOL) getAndRemoveBool |
Returns as a boolean value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCByte) getAndRemoveByte |
Returns as a signed 8-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (char) getAndRemoveChar |
Returns as a char value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (const char *) getAndRemoveCharString |
Returns as a char string and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCDouble) getAndRemoveDouble |
Returns as a double precision float value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCFloat) getAndRemoveFloat |
Returns as a single precision float value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCInteger) getAndRemoveInteger |
Returns as a signed 32-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCLong) getAndRemoveLong |
Returns as a signed 64-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (NSNumber *) getAndRemoveNumber |
Returns as a number and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (id) getAndRemoveObject |
Returns and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCShort) getAndRemoveShort |
Returns as a signed 16-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (NSString *) getAndRemoveString |
Returns as a string and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCUByte) getAndRemoveUByte |
Returns as an unsigned 8-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCUInteger) getAndRemoveUInteger |
Returns as an unsigned 32-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCULong) getAndRemoveULong |
Returns as an unsigned 64-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (unichar) getAndRemoveUnichar |
Returns as an unichar value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (SCUShort) getAndRemoveUShort |
Returns as an unsigned 16-bit integer value and removes the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (id) init |
Initializes the queue using the default settings.
Reimplemented from SCCollection.
| - (id) initWithCapacity: | (SCULong) | capacity |
Initializes the queue using the specified queue capacity.
| capacity | - queue capacity |
| - (id) initWithCapacity: | (SCULong) | capacity | |
| reusable: | (BOOL) | reusable | |
Initializes the queue using the specified queue capacity and reusing flag.
| capacity | - queue capacity |
| reusable | - reusing flag |
| - (id) initWithCollection: | (id) | collection |
Initializes the queue using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - queue error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Initializes the queue using the specified delegate object.
| delegate | - delegate object |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Initializes the queue using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - queue error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Initializes the queue using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing source object |
| SCCollectionException | - queue error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Initializes the queue using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - queue error detected |
| - (id) initWithObject: | (id) | object |
Initializes the queue using the specified existing object.
| object | - existing source object |
| SCCollectionException | - queue error detected |
| - (id) initWithObjects: | (id) | object | |
| , | ... | ||
Initializes the queue using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - queue error detected |
| - (id) initWithQueue: | (SCQueue *) | queue |
Initializes the queue using the specified existing queue.
| queue | - existing source queue |
| SCCollectionException | - queue error detected |
| - (id) initWithQueueName: | (NSString *) | name |
Initializes the queue using the specified queue name.
| name | - queue name |
| - (id) initWithQueueName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
Initializes the queue using the specified queue name and capacity.
| name | - queue name |
| capacity | - queue capacity |
| - (id) initWithQueueName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
| reusable: | (BOOL) | reusable | |
Initializes the queue using the specified queue name, capacity and reusing flag.
| name | - queue name |
| capacity | - queue capacity |
| reusable | - reusing flag |
| - (BOOL) isReusable |
Returns the receiver's queue reusing flag.
| + (SCQueue *) queue |
Returns the queue created by using the default settings.
Reimplemented from SCCollection.
| - (NSString *) queueName |
Returns the receiving queue name.
Returns the queue created by using the specified queue capacity.
| capacity | - queue capacity |
Returns the queue created by using the specified queue capacity and reusing flag.
| capacity | - queue capacity |
| reusable | - reusing flag |
| + (SCQueue *) queueWithCoder: | (NSCoder *) | coder |
Returns a queue created by using the specified coder.
| coder | - source coder |
| + (SCQueue *) queueWithCollection: | (id) | collection |
Returns the queue created by using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - queue error detected |
| + (SCQueue *) queueWithContentsOfSerializedFile: | (NSString *) | path |
Returns a queue created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCQueue *) queueWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a queue created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCQueue *) queueWithDataDictionaryFromFile: | (NSString *) | path |
Returns a queue created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCQueue *) queueWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Returns the queue created by using the specified delegate object.
| delegate | - delegate object |
| + (SCQueue *) queueWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Returns the queue created by using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - queue error detected |
| + (SCQueue *) queueWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Returns the queue created by using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing source object |
| SCCollectionException | - queue error detected |
| + (SCQueue *) queueWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Returns the queue created by using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - queue error detected |
| + (SCQueue *) queueWithFileStream: | (NSString *) | path |
Returns a queue created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (SCQueue *) queueWithObject: | (id) | object |
Returns the queue created by using the specified existing object.
| object | - existing source object |
| SCCollectionException | - queue error detected |
| + (SCQueue *) queueWithObjects: | (id) | object | |
| , | ... | ||
Returns the queue created by using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - queue error detected |
Returns the queue created by using the specified existing queue.
| queue | - existing source queue |
| SCCollectionException | - queue error detected |
| + (SCQueue *) queueWithQueueName: | (NSString *) | name |
Returns the queue created by using the specified queue name.
| name | - queue name |
Returns the queue created by using the specified queue name and capacity.
| name | - queue name |
| capacity | - queue capacity |
| + (SCQueue *) queueWithQueueName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
| reusable: | (BOOL) | reusable | |
Returns the queue created by using the specified queue name, capacity and reusing flag.
| name | - queue name |
| capacity | - queue capacity |
| reusable | - reusing flag |
Returns a queue created from the specified stream.
| stream | - stream for reading queue |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) removeFirstObject |
Remove the first object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (void) removeLastObject |
Remove the last object from the receiving queue.
| SCCollectionException | - queue error detected |
| - (void) setQueueName: | (NSString *) | name |
Sets the receiving queue name.
| name | - queue name |
| - (void) setReusable: | (BOOL) | reusable |
Sets the receiver's queue reusing flag.
| reusable | YES for reusing supporting, otherwise NO |
1.7.3