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