Métodos de Busca no Pacman
Public Member Functions | Public Attributes | List of all members
util.PriorityQueueWithFunction Class Reference
Inheritance diagram for util.PriorityQueueWithFunction:
util.PriorityQueue

Public Member Functions

def __init__ (self, priorityFunction)
 
def push (self, item)
 
- Public Member Functions inherited from util.PriorityQueue
def __init__ (self)
 
def push (self, item, priority)
 
def pop (self)
 
def isEmpty (self)
 

Public Attributes

 priorityFunction
 
- Public Attributes inherited from util.PriorityQueue
 heap
 

Detailed Description

Implements a priority queue with the same push/pop signature of the
Queue and the Stack classes. This is designed for drop-in replacement for
those two classes. The caller has to provide a priority function, which
extracts each item's priority.

The documentation for this class was generated from the following file: