The type of elements held in the queue.
Creates a new instance of the CircularQueue class.
The maximum size of the queue, or an array of elements to initialize the queue with.
Protected
_dataProtected
_headProtected
_tailThe number of elements in the list.
Returns true if the queue has available space.
True if the queue has available space, false otherwise.
Returns whether the queue is empty.
Returns whether the queue is full.
Returns an array of all elements in the queue.
An array of all elements in the queue or an empty array if the queue is empty.
Returns the number of available spaces in the queue.
Removes all elements from the queue.
The queue instance.
A circular queue data structure.