Package elisa :: Package extern :: Module priority_queue :: Class PriorityQueue
[hide private]
[frames] | no frames]

Class PriorityQueue

source code


Instance Methods [hide private]
 
_init(self, maxsize) source code
 
_put(self, item) source code
 
_get(self) source code
 
_insort_right(self, x)
Insert item x in list, and keep it sorted assuming a is sorted.
source code
 
top(self)
non-destructively return smallest element in pqueue
source code
 
contents(self) source code

Inherited from Queue.Queue: __init__, empty, full, get, get_nowait, join, put, put_nowait, qsize, task_done

Inherited from Queue.Queue (private): _empty, _full, _qsize

Method Details [hide private]

_init(self, maxsize)

source code 
Overrides: Queue.Queue._init

_put(self, item)

source code 
Overrides: Queue.Queue._put

_get(self)

source code 
Overrides: Queue.Queue._get

_insort_right(self, x)

source code 

Insert item x in list, and keep it sorted assuming a is sorted.

If x is already in list, insert it to the right of the rightmost x.