PQueue Class Reference
#include <PQueue.h>
List of all members.
Constructor & Destructor Documentation
PQueue::PQueue |
( |
int |
maxNumNodes, |
|
|
int |
maxGain | |
|
) |
| | [inline] |
PQueue::~PQueue |
( |
|
) |
[inline] |
Member Function Documentation
GNode PQueue::getMax |
( |
|
) |
[inline] |
return the node with the max gain in the queue
void PQueue::insert |
( |
GNode |
node, |
|
|
int |
gain | |
|
) |
| | [inline] |
insert a node with its gain
void PQueue::remove |
( |
GNode |
value, |
|
|
int |
gain | |
|
) |
| | [inline] |
delete a node from the queue
void PQueue::reset |
( |
|
) |
[inline] |
int PQueue::size |
( |
|
) |
[inline] |
void PQueue::update |
( |
GNode |
value, |
|
|
int |
oldgain, |
|
|
int |
newgain | |
|
) |
| | [inline] |
after changing the gain of a node, its position in the queue has to be updated
Member Data Documentation
The documentation for this class was generated from the following file: