Home

IntQueue

Queue of integer values

Operations

New

Default constructor

New()

Add

Adds a value to the back of the queue

method : public : native : Add(value:Int) ~ Nil
Parameters
NameTypeDescription
valueIntvalue to add

Empty

Clears the queue

method : public : Empty() ~ Nil

Head

Get the value from the head of the queue

method : public : native : Head() ~ Int
Return
TypeDescription
Inthead value, 0 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() ~ Int
Return
TypeDescription
Intvalue removed

Size

Size of queue

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