Queue

A simple Queue of type T.

Members

Functions

clear
void clear()

Clear the entire queue

peakBack
T peakBack()

Peaks at the last item in the queue.

peakFront
T peakFront()

Peaks at the first item in the queue.

pop
T pop()

Pops a single item off the front of the queue. Throws an exception if the

push
bool push(T item)

Push an item to the back of the queue. Returns false if the queue is full.

push
bool push(T[] arr)

Push multiple items to the back of the queue. Returns false if the queue is

Properties

array
T[] array [@property getter]

Raw array access

empty
bool empty [@property getter]

Returns true if the queue is empty

Meta