Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
#include <stack.h>
Public Member Functions | |
void | display () |
stack () | |
stack (const stack< Type > &otherStack) | |
~stack () | |
bool | isEmptyStack () |
void | push (Type item) |
Type | top () |
void | pop () |
void | clear () |
stack< Type > & | operator= (const stack< Type > &otherStack) |
Private Attributes | |
node< Type > * | stackTop |
int | size |
size of stack | |
Definition of the stack class
Type | type of data nodes of the linked list in the stack should contain |
Default constructor
Copy constructor
|
inline |
Show stack
|
inline |
Determine whether the stack is empty
|
inline |
Overload "=" the assignment operator
|
inline |
Remove the top element of the stack
|
inline |
Add new item to the stack
|
inline |