Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CAllocStack< T > Class Template Reference

Object pointer stack with auto-deletion semantics. More...

#include <AllocStack.h>

List of all members.

Public Member Functions

void push (T *x)
 Add an item to the stack.
void pop ()
 Pop the item on the stack top.
T * top () const
 Return the item on the stack top.
 ~CAllocStack ()
 Destroy all objects on the stack.
bool empty ()
 Check if the stack is empty.


Detailed Description

template<class T>
class OW32::CAllocStack< T >

Object pointer stack with auto-deletion semantics.


Member Function Documentation

template<class T>
bool OW32::CAllocStack< T >::empty  )  [inline]
 

Check if the stack is empty.

Returns:
true if the stack is empty, false if not.

template<class T>
void OW32::CAllocStack< T >::push T *  x  )  [inline]
 

Add an item to the stack.

Parameters:
x The item to add

template<class T>
T* OW32::CAllocStack< T >::top  )  const [inline]
 

Return the item on the stack top.

Returns:
The item on the stack top.


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:20 2005 for OW32 by  doxygen 1.3.9.1