#include <CNCL/Stack.h>
CN_STACK
CNQueue
None
CNDLList, CNQueueFIFO, CNQueueLIFO, CNQueueRandom, CNQueueSPT, CNPrioQueueFIFO, CNSink, CNJob
CNStack
is a stack, implemented as a LIFO queue which can hold any
number of CNCL compatible objects. It acts very much like a LIFO queue but
provides another kind of user interface.
Constructors:
CNStack();
CNStack(CNParam *param);
CNStack(long elem);
In addition to the member functions required by CNCL, CNStack
provides:
bool empty();
TRUE
when stack is empty.
long depth() const;
void push(CNObject *obj);
CNObject *pull();
CNObject *pop();
pull()
. Retrieves the last object from the stack.
void clear();
long size();
void size(long num);
Go to the first, previous, next, last section, table of contents.