#import <cstack.h>
Public Member Functions | |
(id) | - init |
Initialize stack. | |
(void) | - dealloc |
Deallocate stack. | |
(void) | - push: |
Push object to stack. | |
(id) | - pop |
Pop data from stack. | |
(uint_t) | - num |
Get number of objects in the stack. | |
(id) | - objectAtTop |
Get object at the top of stack. | |
(id) | - objectAtIndex: |
Get object by index. | |
Protected Attributes | |
CStackElmPtr | stack_bottom |
uint_t | current_num |
uint_t | max_num |
|
Deallocate stack.
|
|
Initialize stack.
|
|
Get number of objects in the stack.
|
|
Get object by index.
|
|
Get object at the top of stack.
|
|
Pop data from stack.
|
|
Push object to stack.
|
|
Number of valid objects in the stack |
|
Maximum size of stack |
|
Pointer of the stack. The lower address contains deeper data in the stack. |