#include <CNCL/QueueLIFO.h>
CN_QUEUELIFO
CNQueue
None
CNDLList, CNQueueFIFO, CNQueueRandom, CNQueueSPT, CNPrioQueueFIFO, CNSink, CNJob, CNStack
CNQueueLIFO
is a queue, implemented as a doubly linked list, that
can contain any number (well, sort of ... ;-) CNCL compatible objects.
The queueing strategy is LIFO (Last In, First Out).
Constructors:
CNQueueLIFO();
CNQueueLIFO(CNParam *param);
In addition to the member functions required by CNCL, CNQueueLIFO
provides:
virtual bool empty() const;
TRUE
, if the queue is empty.
virtual bool full() const;
FALSE
.
virtual int length() const;
virtual void put(CNObject *obj);
virtual CNObject *get();
virtual CNObject *peek();
get()
, the object is
not removed from the queue.
virtual void delete_all();
Go to the first, previous, next, last section, table of contents.