base::Stack< T > Class Template Reference

Stack template class. More...

#include <base_stack.hh>

List of all members.

Public Member Functions

 Stack (const uint preallocate=32)
 
Parameters:
Optionally reserve memory for the stack.

 ~Stack ()
void Push (T obj)
Pop (void)
 Pop last object pushed. CALLER MUST NOT POP IF STACK IS EMPTY!!
bool IfEmpty (void) const
uint Cnt (void) const
 
Returns:
Count of items in stack.

uint size (void) const
 STL compatibility.
bool empty (void) const
 STL compatibility.

Private Attributes

deque< T > mDeque


Detailed Description

template<typename T>
class base::Stack< T >

Stack template class.

Constructor & Destructor Documentation

template<typename T>
base::Stack< T >::Stack ( const uint  preallocate = 32  )  [inline]

Parameters:
Optionally reserve memory for the stack.

template<typename T>
base::Stack< T >::~Stack (  )  [inline]


Member Function Documentation

template<typename T>
void base::Stack< T >::Push ( obj  )  [inline]

template<typename T>
T base::Stack< T >::Pop ( void   )  [inline]

Pop last object pushed. CALLER MUST NOT POP IF STACK IS EMPTY!!

template<typename T>
bool base::Stack< T >::IfEmpty ( void   )  const [inline]

template<typename T>
uint base::Stack< T >::Cnt ( void   )  const [inline]

Returns:
Count of items in stack.

template<typename T>
uint base::Stack< T >::size ( void   )  const [inline]

STL compatibility.

template<typename T>
bool base::Stack< T >::empty ( void   )  const [inline]

STL compatibility.


Member Data Documentation

template<typename T>
deque<T> base::Stack< T >::mDeque [private]


The documentation for this class was generated from the following file: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:19 2007