Authors
- Generated by rh
-
- Declared in:
- SimpleQueue.h
A simple queue class using NSMutableArray
Instance Variables
Method summary
- (void)
dealloc;
release references and deallocate memory
- (id)
init;
default queue initialiser
- (BOOL)
isEmpty;
return YES
if the queue is empty
- (id)
peekObject;
return the element at the beginning of the queue without removing it
- (id)
popObject;
pop an object off the beginning of the queue
- (id)
pushObject: (id)object;
push an object onto the end of the queue
- (id)
swapTopMostObjects;
swap the two elements at the beginning of the queue
Instance Variables for SimpleQueue Class
@protected NSMutableArray* elements;
elements held by the queue