#include <CNCL/Queue.h>
CN_QUEUE
CNObject
CNPrioQueueFIFO, CNQueueFIFO, CNQueueLIFO, CNQueueRandom, CNQueueSPT,
CNSink
CNJob, CNStack
CNQueue
is a queue of any CNCL compatible object.
Constructors:
CNQueue();
CNQueue(CNParam *param);
In addition to the member functions required by CNCL, CNQueue
provides the following abstract member function, which must be
implemented by the derived classes:
virtual bool empty() const = 0;
TRUE
, if the queue is empty.
virtual bool full() const = 0;
TRUE
, if the queue is full.
virtual int length() const = 0;
virtual void put(CNObject *obj) = 0;
void put(CNObject &obj);
virtual CNObject *get() = 0;
virtual CNObject *peek() = 0;
get()
, the object is
not removed from the queue.
virtual void delete_all() = 0;
Go to the first, previous, next, last section, table of contents.