HOG2
|
#include <OpenClosedList.h>
Public Member Functions | |
OpenClosedList () | |
~OpenClosedList () | |
void | reset () |
Remove all objects from queue. More... | |
void | Add (OBJ val) |
Add object into OpenClosedList. 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 (const OBJ val) const |
Returns true if the object is in the OpenClosedList. More... | |
OBJ | Remove () |
Remove the item with the lowest key from the OpenClosedList & re-heapify. More... | |
void | pop () |
const OBJ | peek () const |
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 OpenClosedList. More... | |
unsigned | size () |
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 Heap class.
Definition at line 27 of file OpenClosedList.h.
|
private |
Definition at line 48 of file OpenClosedList.h.
OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::OpenClosedList |
Definition at line 54 of file OpenClosedList.h.
OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::~OpenClosedList |
Definition at line 59 of file OpenClosedList.h.
void OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::Add | ( | OBJ | val | ) |
Add object into OpenClosedList.
Definition at line 77 of file OpenClosedList.h.
Referenced by IRDijkstra::DoOneSearchStep(), IRAStar::DoOneSearchStep(), MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), IRDijkstra::ExpandNeighbors(), IRAStar::ExpandNeighbors(), IRDijkstra::ExtractAndRefinePath(), IRAStar::ExtractAndRefinePath(), IRDijkstra::InitializeSearch(), IRAStar::InitializeSearch(), CFOptimalRefinement::InitializeSearch(), MeroB::InitializeSearch(), IRDijkstra::RefineNode(), CFOptimalRefinement::RefineNode(), and CFOptimalRefinement::UpdateNode().
void OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::DecreaseKey | ( | OBJ | val | ) |
Indicate that the key for a particular object has decreased.
Definition at line 96 of file OpenClosedList.h.
Referenced by MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), IRDijkstra::ExpandNeighbors(), IRAStar::ExpandNeighbors(), IRAStar::Inconsistent(), and CFOptimalRefinement::MakeNeighborsOpen().
bool OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::Empty |
Returns true if no items are in the OpenClosedList.
Definition at line 174 of file OpenClosedList.h.
OBJ OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::find | ( | OBJ | val | ) |
find this object in the Heap and return
Definition at line 163 of file OpenClosedList.h.
Referenced by MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), and MeroB::ExtractPathToStart().
|
private |
Definition at line 215 of file OpenClosedList.h.
|
private |
**
Definition at line 195 of file OpenClosedList.h.
void OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::IncreaseKey | ( | OBJ | val | ) |
Indicate that the key for a particular object has increased.
Definition at line 109 of file OpenClosedList.h.
Referenced by MeroB::DoSingleStepBP().
bool OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::IsIn | ( | const OBJ | val | ) | const |
Returns true if the object is in the OpenClosedList.
Definition at line 121 of file OpenClosedList.h.
Referenced by MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), IRDijkstra::ExpandNeighbors(), IRAStar::ExpandNeighbors(), IRAStar::Inconsistent(), IRDijkstra::OpenGLDraw(), and IRAStar::OpenGLDraw().
|
inline |
Definition at line 38 of file OpenClosedList.h.
Referenced by IRDijkstra::OpenGLDraw(), IRAStar::OpenGLDraw(), and CFOptimalRefinement::OpenGLDraw().
|
inline |
Definition at line 37 of file OpenClosedList.h.
Referenced by IRDijkstra::DoOneSearchStep(), IRAStar::DoOneSearchStep(), and CFOptimalRefinement::DoOneSearchStep().
OBJ OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::Remove |
Remove the item with the lowest key from the OpenClosedList & re-heapify.
Definition at line 143 of file OpenClosedList.h.
Referenced by MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), and OpenClosedList< CFOptimalRefinementConstants::GNode, CFOptimalRefinementConstants::NodeHash, CFOptimalRefinementConstants::NodeEqual, CFOptimalRefinementConstants::NodeCompare >::pop().
void OpenClosedList< OBJ, HashKey, EqKey, CmpKey >::reset |
Remove all objects from queue.
Definition at line 67 of file OpenClosedList.h.
Referenced by IRDijkstra::DoOneSearchStep(), IRAStar::DoOneSearchStep(), MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), IRDijkstra::ExtractAndRefinePath(), IRAStar::ExtractAndRefinePath(), IRDijkstra::InitializeSearch(), IRAStar::InitializeSearch(), and MeroB::InitializeSearch().
|
inline |
Definition at line 42 of file OpenClosedList.h.
Referenced by IRDijkstra::DoOneSearchStep(), IRAStar::DoOneSearchStep(), MeroB::DoSingleStepA(), MeroB::DoSingleStepB(), and MeroB::DoSingleStepBP().
|
inline |
Definition at line 39 of file OpenClosedList.h.
Referenced by IRDijkstra::DoOneSearchStep(), IRAStar::DoOneSearchStep(), CFOptimalRefinement::DoOneSearchStep(), MeroB::DoSingleStepB(), MeroB::DoSingleStepBP(), and IRAStar::OpenGLDraw().
|
private |
Definition at line 45 of file OpenClosedList.h.
Referenced by OpenClosedList< CFOptimalRefinementConstants::GNode, CFOptimalRefinementConstants::NodeHash, CFOptimalRefinementConstants::NodeEqual, CFOptimalRefinementConstants::NodeCompare >::peek(), OpenClosedList< CFOptimalRefinementConstants::GNode, CFOptimalRefinementConstants::NodeHash, CFOptimalRefinementConstants::NodeEqual, CFOptimalRefinementConstants::NodeCompare >::size(), and OpenClosedList< CFOptimalRefinementConstants::GNode, CFOptimalRefinementConstants::NodeHash, CFOptimalRefinementConstants::NodeEqual, CFOptimalRefinementConstants::NodeCompare >::top().
|
private |
Definition at line 49 of file OpenClosedList.h.