#include <CNCL/QueueRandom.h>
CN_QUEUERANDOM
CNQueue
None
CNDLList, CNQueueFIFO, CNQueueLIFO, CNQueueSPT, CNPrioQueueFIFO, CNSink, CNJob, CNStack
CNQueueRandom
is a queue, implemented as a doubly linked list, that
can contain any number (well, sort of ... ;-) CNCL compatible objects.
The queueing strategy is Random, that means there is no ordering in the
queue.
Constructors:
CNQueueRandom();
CNQueueRandom(CNParam *param);
CNQueueRandom(CNRNG *rng);
CNFiboG
.)
In addition to the member functions required by CNCL, CNQueueRandom
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.