gml_TStack Class Template Reference

#include <gml_Stack.h>

Inherits gml_TStack_Base, and gml_TArray< T >.

Collaboration diagram for gml_TStack:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T>
class gml_TStack< T >

A template for fixed-length, typed stack (last in, first out) containers.


Public Member Functions

gml_TError Init (UInt32 stackSize=sDefaultStackSize)
 Allocate resources for a stack of size stackSize.
void Dispose ()
 Release resources.
gml_TError Push (const T object)
 Push an object into the stack. Will fail on memory exhaustion.
gml_TError Pop (T &object)
 Remove the oldest object from the stack and return it in object. Will fail if the stack is empty.
unsigned Height ()
 Return the current stack length (number of items).

The documentation for this class was generated from the following file:
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.