Public Member Functions | Private Attributes

base::Stack< T > Class Template Reference

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)
Pop (void)
 Pop last object pushed. CALLER MUST NOT POP IF STACK IS EMPTY!!
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

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

Optionally reserve memory for the stack.

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

Member Function Documentation

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

STL compatibility.

template<typename T>
uint base::Stack< T >::GetCount ( void   )  const [inline]
Returns:
Count of items in stack.
template<typename T>
bool base::Stack< T >::IfEmpty ( void   )  const [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>
void base::Stack< T >::Push ( obj  )  [inline]
template<typename T>
uint base::Stack< T >::size ( void   )  const [inline]

STL compatibility.

template<typename T>
T base::Stack< T >::Top ( void   )  [inline]
Returns:
Top of stack (doesn't pop it).

Member Data Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11