Queue

A simple Queue of type T

Members

Functions

array
T[] array()

Raw array access

clear
void clear()

Clear the entire queue

empty
bool empty()

Returns true if the queue is empty

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

setSize
void setSize(size_t size)

Set the size of the array

size
size_t size()

Get the size of the array.

Meta