Stack template class.
More...
#include <_src_base_stack.hh>
List of all members.
Public Member Functions |
| | Stack (const uint preallocate=32) |
| | Optionally reserve memory for the stack.
|
| | ~Stack () |
| void | Push (T obj) |
| T | Pop (void) |
| | Pop last object pushed. CALLER MUST NOT POP IF STACK IS EMPTY!!
|
| T | Top (void) |
| bool | IfEmpty (void) const |
| uint | GetCount (void) const |
| uint | size (void) const |
| | STL compatibility.
|
| bool | empty (void) const |
| | STL compatibility.
|
Private Attributes |
| std::deque< T > | mDeque |
Detailed Description
template<typename T>
class base::Stack< T >
Stack template class.
Constructor & Destructor Documentation
Optionally reserve memory for the stack.
Member Function Documentation
- Returns:
- Count of items in stack.
Pop last object pushed. CALLER MUST NOT POP IF STACK IS EMPTY!!
- Returns:
- Top of stack (doesn't pop it).
Member Data Documentation
The documentation for this class was generated from the following file: