CStackableclass serves as a base class for objects that should not be created on the heap. This class is used to maintain a last-in, first-out (LIFO) collection of objects created with an automatic storage class. It also provides collection management (stack) of all objects of this type that have been constructed on the stack frame.
thisis the top-most item and, if not, to make
thisthe top-most item.
A list of the |
CStackable();The constructor, which adds the constructed object to
virtual ~CStackable();The destructor, which removes the destructed object from
BOOLEAN IsTop(void) const;
virtual void DoUpdate(void) = 0;
static RWGDlist(CStackable) & GetStack(void);
deleteoperators are overloaded to provide
CStackablefunctionality, the following two methods are canceled:
void * operator new(size_t theSize); void operator delete(void *theObject);