HOG2
|
A simple & efficient Heap class. More...
#include <OpenListB.h>
Public Member Functions | |
OpenListB () | |
~OpenListB () | |
void | reset () |
Remove all objects from queue. More... | |
void | Add (OBJ val) |
Add object into OpenListB. More... | |
void | DecreaseKey (OBJ val) |
Indicate that the key for a particular object has decreased. More... | |
void | IncreaseKey (OBJ val) |
Indicate that the key for a particular object has increased. More... | |
bool | IsIn (OBJ val) |
Returns true if the object is in the OpenListB. More... | |
OBJ | Remove () |
Remove the item with the lowest key from the OpenListB & re-heapify. More... | |
void | pop () |
OBJ | top () |
OBJ | find (OBJ val) |
find this object in the Heap and return More... | |
bool | Empty () |
Returns true if no items are in the OpenListB. More... | |
unsigned | size () |
OBJ | FindSpecialMin (double F) |
OBJ | FindTieFMin (double F) |
Private Types | |
typedef std::unordered_map< OBJ, unsigned int, HashKey, EqKey > | IndexTable |
Private Member Functions | |
void | HeapifyUp (unsigned int index) |
** More... | |
void | HeapifyDown (unsigned int index) |
Private Attributes | |
std::vector< OBJ > | _elts |
IndexTable | table |
A simple & efficient Heap class.
Definition at line 28 of file OpenListB.h.
|
private |
Definition at line 51 of file OpenListB.h.
OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::OpenListB |
Definition at line 57 of file OpenListB.h.
OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::~OpenListB |
Definition at line 62 of file OpenListB.h.
void OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::Add | ( | OBJ | val | ) |
Add object into OpenListB.
Definition at line 80 of file OpenListB.h.
void OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::DecreaseKey | ( | OBJ | val | ) |
Indicate that the key for a particular object has decreased.
Definition at line 95 of file OpenListB.h.
bool OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::Empty |
Returns true if no items are in the OpenListB.
Definition at line 164 of file OpenListB.h.
OBJ OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::find | ( | OBJ | val | ) |
find this object in the Heap and return
Definition at line 153 of file OpenListB.h.
OBJ OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::FindSpecialMin | ( | double | F | ) |
Definition at line 239 of file OpenListB.h.
OBJ OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::FindTieFMin | ( | double | F | ) |
Definition at line 282 of file OpenListB.h.
|
private |
Definition at line 205 of file OpenListB.h.
|
private |
**
Definition at line 185 of file OpenListB.h.
void OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::IncreaseKey | ( | OBJ | val | ) |
Indicate that the key for a particular object has increased.
Definition at line 108 of file OpenListB.h.
bool OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::IsIn | ( | OBJ | val | ) |
Returns true if the object is in the OpenListB.
Definition at line 120 of file OpenListB.h.
|
inline |
Definition at line 38 of file OpenListB.h.
OBJ OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::Remove |
Remove the item with the lowest key from the OpenListB & re-heapify.
Definition at line 133 of file OpenListB.h.
void OpenListB< OBJ, HashKey, EqKey, CmpKey, SpecialKey, CmpKeyStrictExtract >::reset |
Remove all objects from queue.
Definition at line 70 of file OpenListB.h.
|
inline |
Definition at line 42 of file OpenListB.h.
|
inline |
Definition at line 39 of file OpenListB.h.
|
private |
Definition at line 48 of file OpenListB.h.
Referenced by OpenListB< PropUtil::SearchNode, PropUtil::SearchNodeHash, PropUtil::SearchNodeEqual, PropUtil::GGreater, PropUtil::GGreater, PropUtil::FExtract >::size(), and OpenListB< PropUtil::SearchNode, PropUtil::SearchNodeHash, PropUtil::SearchNodeEqual, PropUtil::GGreater, PropUtil::GGreater, PropUtil::FExtract >::top().
|
private |
Definition at line 52 of file OpenListB.h.