Home | Trees | Index | Help |
|
---|
Package driver :: Module utils :: Class PriorityQueue |
|
Method Summary | |
---|---|
__init__(self)
| |
Adds a function to the prioritymap and marks the PriorityQueue as "dirty" which means it needs to regenerate the ordered list before it hands it out. | |
int |
Returns how many functions are in the list. |
Retrieves the list. | |
Removes a func from the priority map. | |
Goes through the prioritymap and generates an orderedlist. |
Method Details |
---|
add(self, func, priority=99)Adds a function to the prioritymap and marks the PriorityQueue as "dirty" which means it needs to regenerate the ordered list before it hands it out.
|
count(self)Returns how many functions are in the list.
|
getList(self)Retrieves the list. It might regenerate it if the prioritymap has been adjusted since the last time we regenerated the list. |
remove(self, func)Removes a func from the priority map.
|
_generateList(self)Goes through the prioritymap and generates an orderedlist. This saves cycles since it puts the ordering of the list up front rather than when the orderedlist is retrieved. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Wed Jan 21 21:00:06 2004 | http://epydoc.sf.net |