◆ stack()
◆ ~stack()
◆ clear()
template<class Type >
| void stack< Type >::clear |
( |
| ) |
|
|
inline |
◆ display()
template<class Type >
| void stack< Type >::display |
( |
| ) |
|
|
inline |
Show stack
23 while (current != NULL) {
25 current = current->next;
◆ isEmptyStack()
template<class Type >
| bool stack< Type >::isEmptyStack |
( |
| ) |
|
|
inline |
Determine whether the stack is empty
◆ operator=()
Overload "=" the assignment operator
91 current = current->next;
93 while (current != NULL) {
95 newNode->data = current->data;
99 current = current->next;
102 size = otherStack.size;
◆ pop()
template<class Type >
| void stack< Type >::pop |
( |
| ) |
|
|
inline |
Remove the top element of the stack
◆ push()
template<class Type >
| void stack< Type >::push |
( |
Type |
item | ) |
|
|
inline |
Add new item to the stack
◆ top()
template<class Type >
| Type stack< Type >::top |
( |
| ) |
|
|
inline |
Return the top element of the stack
◆ stackTop
The documentation for this class was generated from the following file: