StackT< Object > Class Template Reference

Generic StackT. More...

#include <genstack.h>

List of all members.

Public Types

typedef ListT< Object >::ValueType ValueType
typedef ListT< Object >::SizeType SizeType

Public Member Functions

BOOL Empty () const
SizeType Size () const
ValueTypeTop ()
const ValueTypeTop () const
ValueTypeBottom ()
const ValueTypeBottom () const
BOOL Push (const ValueType &x)
void Pop ()
ListT< Object > * GetListT ()
const ListT< Object > * GetListT () const

Protected Attributes

ListT< Object > m_Container


Detailed Description

template<class Object>
class StackT< Object >

Generic StackT.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from STL)
Date:
20/12/96

Definition at line 122 of file genstack.h.


Member Typedef Documentation

template<class Object>
typedef ListT<Object>::SizeType StackT< Object >::SizeType
 

Definition at line 129 of file genstack.h.

template<class Object>
typedef ListT<Object>::ValueType StackT< Object >::ValueType
 

Definition at line 128 of file genstack.h.


Member Function Documentation

template<class Object>
const ValueType& StackT< Object >::Bottom  )  const [inline]
 

Definition at line 142 of file genstack.h.

00142 { return m_Container.Front(); }

template<class Object>
ValueType& StackT< Object >::Bottom  )  [inline]
 

Definition at line 141 of file genstack.h.

00141 { return m_Container.Front(); }

template<class Object>
BOOL StackT< Object >::Empty  )  const [inline]
 

Definition at line 135 of file genstack.h.

00135 { return m_Container.Empty(); }

template<class Object>
const ListT<Object>* StackT< Object >::GetListT  )  const [inline]
 

Definition at line 148 of file genstack.h.

00148 { return &m_Container; }

template<class Object>
ListT<Object>* StackT< Object >::GetListT  )  [inline]
 

Definition at line 147 of file genstack.h.

00147 { return &m_Container; }

template<class Object>
void StackT< Object >::Pop  )  [inline]
 

Definition at line 145 of file genstack.h.

00145 { m_Container.PopBack();    }

template<class Object>
BOOL StackT< Object >::Push const ValueType x  )  [inline]
 

Definition at line 144 of file genstack.h.

00144 { return m_Container.PushBack(x); }

template<class Object>
SizeType StackT< Object >::Size  )  const [inline]
 

Definition at line 136 of file genstack.h.

00136 { return m_Container.Size(); }

template<class Object>
const ValueType& StackT< Object >::Top  )  const [inline]
 

Definition at line 139 of file genstack.h.

00139 { return m_Container.Back(); }

template<class Object>
ValueType& StackT< Object >::Top  )  [inline]
 

Definition at line 138 of file genstack.h.

00138 { return m_Container.Back(); }


Member Data Documentation

template<class Object>
ListT<Object> StackT< Object >::m_Container [protected]
 

Definition at line 132 of file genstack.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:01:23 2007 for Camelot by  doxygen 1.4.4