ME 305 Group 6 Documentation
|
A queue of shared data. More...
Public Member Functions | |
def | __init__ (self) |
Constructs an empty queue of shared values. | |
def | put (self, item) |
Adds an item to the end of the queue. More... | |
def | get (self) |
Remove the first item from the front of the queue. More... | |
def | num_in (self) |
Find the number of items in the queue. More... | |
A queue of shared data.
Values can be accessed with placed into queue with put() or removed from the queue with get(). Check if there are items in the queue with num_in() before using get().
def shares_02.Queue_02.get | ( | self | ) |
Remove the first item from the front of the queue.
def shares_02.Queue_02.num_in | ( | self | ) |
def shares_02.Queue_02.put | ( | self, | |
item | |||
) |
Adds an item to the end of the queue.
item | The new item to append to the queue. |