#include<CNCL/QueueFIFO.h>
CN_QUEUEFIFO
CNQueue
none
CNDLList, CNQueueLIFO, CNQueueRandom, CNQueueSPT, CNPrioQueueFIFO, CNSink, CNJob, CNStack
CNQueueFIFO
is a queue, implemented as a doubly linked list, that
can contain any number (well, sort of ... ;-) CNCL compatible objects.
The queueing strategy is FIFO (First In, First Out).
Constructors:
CNQueueFIFO();
CNQueueFIFO(CNParam *param);
In addition to the member functions required by CNCL, CNQueueFIFO
provides:
virtual bool empty() const;
TRUE
, if the queue is empty.
virtual bool full() const;
TRUE
.
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.