Home

FloatQueue

Queue of float values

Operations

New

Default constructor

New()

Add

Adds a value to the back of the queue

method : public : native : Add(value:Float) ~ Nil
Parameters
NameTypeDescription
valueFloatvalue to add

Empty

Clears the queue

method : public : Empty() ~ Nil

Head

Get the value from the head of the queue

method : public : native : Head() ~ Float
Return
TypeDescription
Floathead value, 0.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() ~ Float
Return
TypeDescription
Floatvalue removed

Size

Size of queue

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