#include <stack.h>
Inheritance diagram for Stack:

Public Methods | |
| Stack (void) | |
| A constructor. More... | |
| virtual | ~Stack (void) |
| A destructor. More... | |
| virtual T_ * | top (void) |
| Get the data from the top of the stack. More... | |
| virtual void | push (T_ *item) |
| Push data. More... | |
| virtual T_ * | pop (void) |
| Pop data. More... | |
| virtual void | clear (void) |
| Empty the stack. More... | |
Protected Methods | |
| virtual void | initStack (void) |
| Initialize the stack. | |
Protected Attributes | |
| StackLinkedList< T_ > * | topNode_ |
| Linked list of items of the stack. | |
Definition at line 51 of file stack.h.
|
||||||||||
|
A constructor.
Calls initStack() |
|
||||||||||
|
A destructor.
Calls clear() |
|
||||||||||
|
Empty the stack.
If auto deletion is enabled, all data items will be removed from memory.
Implements Collection. Definition at line 149 of file stack.h. Referenced by ElementModelEntropyCalculator::calculate, and Stack< ElementModelerInfo >::~Stack. |
|
||||||||||
|
Pop data.
Definition at line 119 of file stack.h. Referenced by ElementModelEntropyCalculator::calculate. |
|
||||||||||
|
Push data.
Definition at line 94 of file stack.h. Referenced by ElementModelEntropyCalculator::calculate. |
|
||||||||||
|
Get the data from the top of the stack.
Top item isn't tremoved.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002