#include <stack.h>
Inheritance diagram for Stack:
Public Member Functions | |
Stack () | |
Stack constructor. | |
~Stack () | |
Stack destructor. The items on the stack are not deleted. | |
void | Push (ListItem *Item) |
Pushes Item onto the stack. | |
ListItem * | Pop (void) |
Removes the item from the top of the stack, and returns it. | |
ListItem * | GetTop (void) |
Allows you to find out what item is on the top of the stack (the item is not removed). | |
INT32 | Size () |
For finding the size of the stack. | |
void | DeleteAll () |
Removes and deletes all items on the stack. | |
Private Attributes | |
List | stack |
- | [INPUTS] | |
- | [OUTPUTS] |
Errors: -
Definition at line 123 of file stack.h.
|
Stack constructor.
Definition at line 130 of file stack.cpp.
|
|
Stack destructor. The items on the stack are not deleted.
Definition at line 149 of file stack.cpp.
|
|
Removes and deletes all items on the stack.
Definition at line 231 of file stack.cpp.
|
|
Allows you to find out what item is on the top of the stack (the item is not removed).
Definition at line 210 of file stack.cpp.
|
|
Removes the item from the top of the stack, and returns it.
Definition at line 189 of file stack.cpp. 00190 { 00191 return (stack.RemoveTail()); 00192 }
|
|
Pushes Item onto the stack.
Definition at line 169 of file stack.cpp.
|
|
For finding the size of the stack.
Definition at line 251 of file stack.cpp.
|
|
|