Go to the previous, next section.
Queues are declared as an "abstract" class. They are currently implemented in any of three ways.
VQueue
XPQueue
SLQueue
All possess the same capabilities; they differ only in constructors.
VQueue
constructors require a fixed maximum capacity argument.
XPQueue
constructors optionally take a chunk size argument.
SLQueue
constructors take no argument.
Assume the declaration of a base element x
.
Queue q; or Queue q(int capacity);
q.empty()
q.full()
q.length()
q.enq(x)
x = q.deq()
q.front()
q.del_front()
q.clear()
Go to the previous, next section.