Queue of generics
OperationsDefault constructor
New()
Adds a value to the back of the queue
method : public : Add(value:H) ~ Nil
Name | Type | Description |
---|---|---|
value | H | value to add |
Clears the queue
method : public : Empty() ~ Nil
Get the value from the head of the queue
method : public : Head() ~ H
Type | Description |
---|---|
H | head value, Nil if queue is empty |
Checks to see if the queue is empty
method : public : IsEmpty() ~ Bool
Type | Description |
---|---|
Bool | true if empty, false otherwise |
Removes a value from the front of the queue
method : public : Remove() ~ H
Type | Description |
---|---|
H | value removed |
Size of queue
method : public : Size() ~ Int
Type | Description |
---|---|
Int | size of queue |