The type of all elements in the queue.
Creates an empty queue.
The type of all elements in the queue.
Initial anticipated number of elements to be stored in the queue.
Private
#elemsThe underlying array for storing queue elements of type T
.
Private
#numNumber of elements in the queue.
Private
#startPosition of the front element in the underlying array.
Static
Private
#growthGrowth factor for the underlying array.
Private
#endPosition of the one past the last queue element in the underlying array.
The maximum number of elements the queue can store without allocating additional memory.
Number of elements in the queue.
Private
#resizeIterates over all elements of this queue from the front.
The given operation will be performed on each element iterated.
The operation to be performed on each element.
Generated using TypeDoc
Circular array queue -- an implementation of the Queue ADT using a circular array along with a dynamic resizing scheme.
Implements