Home

Queue

Queue of objects

Operations

New

Default constructor

New()

Add

Adds a value to the back of the queue

method : public : native : Add(value:Compare) ~ Nil
Parameters
NameTypeDescription
valueComparevalue to add

Empty

Clears the queue

method : public : Empty() ~ Nil

Head

Get the value from the head of the queue

method : public : native : Head() ~ Compare
Return
TypeDescription
Comparehead 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 : native : Remove() ~ Compare
Return
TypeDescription
Comparevalue removed

Size

Size of queue

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