Home

Queue<H>

Queue of generics

Operations

New

Default constructor

New()

Add

Adds a value to the back of the queue

method : public : Add(value:H) ~ Nil
Parameters
NameTypeDescription
valueHvalue to add

Empty

Clears the queue

method : public : Empty() ~ Nil

Head

Get the value from the head of the queue

method : public : Head() ~ H
Return
TypeDescription
Hhead value, Nil if queue is empty

IsEmpty

Checks to see if the queue is empty

method : public : IsEmpty() ~ Bool
Return
TypeDescription
Booltrue if empty, false otherwise

Remove

Removes a value from the front of the queue

method : public : Remove() ~ H
Return
TypeDescription
Hvalue removed

Size

Size of queue

method : public : Size() ~ Int
Return
TypeDescription
Intsize of queue