class documentation
class ArrayQueue:
FIFO queue implementation using a Python list as underlying storage.
Method | __init__ |
Create an empty queue. |
Method | __len__ |
Return the number of elements in the queue. |
Method | dequeue |
Remove and return the first element of the queue (i.e., FIFO). |
Method | enqueue |
Add an element to the back of queue. |
Method | first |
Return (but do not remove) the element at the front of the queue. |
Method | is |
Return True if the queue is empty. |
Constant | DEFAULT |
Undocumented |
Method | _resize |
Resize to a new list of capacity >= len(self). |
Instance Variable | _data |
Undocumented |
Instance Variable | _f |
Undocumented |
Instance Variable | _size |
Undocumented |