Util::Stack< TYPE > Class Template Reference
#include <stack.h>
Detailed Description
template<class TYPE>
class Util::Stack< TYPE >
Nebula3's stack class (a FILO container).(C) 2006 Radon Labs GmbH
Public Member Functions | |
| Stack () | |
| constructor | |
| Stack (const Stack< TYPE > &rhs) | |
| copy constructor | |
| void | operator= (const Stack< TYPE > &rhs) |
| assignment operator | |
| TYPE & | operator[] (IndexT index) const |
| access element by index, 0 is the topmost element | |
| bool | operator== (const Stack< TYPE > &rhs) const |
| equality operator | |
| bool | operator!= (const Stack< TYPE > &rhs) const |
| inequality operator | |
| SizeT | Size () const |
| returns number of elements on stack | |
| bool | IsEmpty () const |
| returns true if stack is empty | |
| void | Clear () |
| remove all elements from the stack | |
| bool | Contains (const TYPE &e) const |
| return true if stack contains element | |
| void | Push (const TYPE &e) |
| push an element on the stack | |
| TYPE & | Peek () const |
| get reference of topmost element of stack, without removing it | |
| TYPE | Pop () |
| get topmost element of stack, remove element | |