Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Stack Class Template Reference

#include <Stack.hh>

List of all members.

Public Methods

 Stack (size_t) throw (StackError, bad_alloc)
 ~Stack ()
void push (const T &) throw (StackError)
pop () throw (StackError)
top () const throw (StackError)
size_t size () const

Private Attributes

T * data
size_t max
size_t ptr

template<typename T>
class Stack< T >


Constructor & Destructor Documentation

template<typename T>
Stack< T >::Stack size_t    throw (StackError, bad_alloc)
 

Definition at line 48 of file Stack.hh.

template<typename T>
Stack< T >::~Stack   [inline]
 

Definition at line 35 of file Stack.hh.

References data, max, and ptr.


Member Function Documentation

template<typename T>
T Stack< T >::pop   throw (StackError)
 

Definition at line 68 of file Stack.hh.

template<typename T>
void Stack< T >::push const T &    throw (StackError)
 

Definition at line 58 of file Stack.hh.

template<typename T>
size_t Stack< T >::size   const [inline]
 

Definition at line 42 of file Stack.hh.

References ptr.

template<typename T>
T Stack< T >::top   const throw (StackError)
 

Definition at line 76 of file Stack.hh.


Member Data Documentation

template<typename T>
T* Stack::data [private]
 

Definition at line 29 of file Stack.hh.

Referenced by ~Stack.

template<typename T>
size_t Stack::max [private]
 

Definition at line 30 of file Stack.hh.

Referenced by ~Stack.

template<typename T>
size_t Stack::ptr [private]
 

Definition at line 31 of file Stack.hh.

Referenced by size, and ~Stack.


The documentation for this class was generated from the following file:
Generated on Tue Apr 2 15:33:24 2002 for libccunit by doxygen 1.2.14 written by Dimitri van Heesch, © 1997-2002

Project hosted on sourceforge SourceForge Logo