Skip to content

class queue (shared-side)

Available since version: 0.1.0

This class represents FIFO queue.

Properties

No properties.


Methods

len

Available since version: 0.1.0

This method will get size of the queue.

int len()

Returns int:

the size of the queue.


empty

Deprecated since version: 0.1.10

This method is to check if the queue is empty.

bool empty()

Returns bool:

true if queue is empty, otherwise false.


front

Available since version: 0.1.0

This method will get the oldest element from the queue.

any front()

Returns any:

the element that is placed on front of the queue.


back

Available since version: 0.1.0

This method will get the newest element from the queue.

any back()

Returns any:

the element that is placed on back of the queue.


push

Available since version: 0.1.0

This method will insert element at the begining of the queue. The added element, can be acces by queue.back method.

void push()

pop

Available since version: 0.1.0

This method will pop oldest element from the queue and returns it.

any pop()

Returns any:

the element that was at the front of the queue.


clear

Available since version: 0.1.10

This method will remove all elements from the queue.

void clear()