GStack.h
403 Bytes
#ifndef __GStack__
#define __GStack__
#include "AeTypes.h"
template <class T> class GStack
{
public:
GStack (int size);
virtual ~GStack (void);
void Push (const T&);
Boolean Pop (T&);
int GetNum (void);
private:
T * fBase;
T * fTop;
int fSize;
#ifndef NDEBUG
public:
static Boolean Test (void);
#endif
};
#endif __GStack__