#include <LinkedStack.hpp>
Public Methods | |
| LinkedStack () | |
| virtual | ~LinkedStack () |
| void | clear () |
| void | push (const Elem item) |
| Elem | pop () |
| Elem | topValue () const |
| BOOL | isEmpty () const |
| BOOL | isFilled () const |
Private Attributes | |
| SLink * | top |
|
|
Definition at line 9 of file LinkedStack.hpp. 00009 : top( NULL ) { } // Default Constructor |
|
|
Definition at line 11 of file LinkedStack.hpp. 00011 { // Destructor: return Elems
00012 clear();
00013 }
|
|
|
Referenced by ~LinkedStack().
|
|
|
Definition at line 30 of file LinkedStack.hpp. 00031 {
00032 return (top == NULL);
00033 }
|
|
|
Definition at line 35 of file LinkedStack.hpp. 00036 {
00037 return (top != NULL);
00038 }
|
|
|
|
|
|
Definition at line 17 of file LinkedStack.hpp. 00018 {
00019 top = new SLink( item, top );
00020 }
|
|
|
Definition at line 24 of file LinkedStack.hpp. |
|
|
Definition at line 41 of file LinkedStack.hpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001