HOG2
|
#include <GenericAStar.h>
Public Member Functions | |
GenericAStar () | |
virtual | ~GenericAStar () |
void | GetPath (OldSearchCode::SearchEnvironment *env, uint32_t from, uint32_t to, std::vector< uint32_t > &thePath) |
bool | InitializeSearch (OldSearchCode::SearchEnvironment *env, uint32_t from, uint32_t to, std::vector< uint32_t > &thePath) |
bool | DoSingleSearchStep (std::vector< uint32_t > &thePath) |
uint32_t | CheckNextNode () |
void | ExtractPathToStart (uint32_t n, std::vector< uint32_t > &thePath) |
virtual const char * | GetName () |
void | PrintStats () |
uint64_t | GetNodesExpanded () |
uint64_t | GetNodesTouched () |
void | ResetNodeCount () |
int | GetMemoryUsage () |
closedList_iterator | GetClosedListIter () const |
uint32_t | ClosedListIterNext (closedList_iterator &) const |
Private Member Functions | |
uint32_t | GetNextNode () |
void | UpdateWeight (uint32_t currOpenNode, uint32_t neighbor) |
void | AddToOpenList (uint32_t currOpenNode, uint32_t neighbor) |
Private Attributes | |
uint64_t | nodesTouched |
uint64_t | nodesExpanded |
GenericAStarUtil::PQueue | openQueue |
GenericAStarUtil::NodeLookupTable | closedList |
uint32_t | goal |
uint32_t | start |
std::vector< uint32_t > | neighbors |
OldSearchCode::SearchEnvironment * | env |
GenericAStarUtil::Corridor | eligibleNodes |
Definition at line 77 of file GenericAStar.h.
|
inline |
Definition at line 79 of file GenericAStar.h.
|
inlinevirtual |
Definition at line 80 of file GenericAStar.h.
|
private |
Definition at line 144 of file GenericAStar.cpp.
References verbose.
uint32_t GenericAStar::CheckNextNode | ( | ) |
Definition at line 114 of file GenericAStar.cpp.
uint32_t GenericAStar::ClosedListIterNext | ( | closedList_iterator & | it | ) | const |
Definition at line 188 of file GenericAStar.cpp.
References UINT32_MAX.
bool GenericAStar::DoSingleSearchStep | ( | std::vector< uint32_t > & | thePath | ) |
Definition at line 59 of file GenericAStar.cpp.
References UINT32_MAX, and verbose.
void GenericAStar::ExtractPathToStart | ( | uint32_t | n, |
std::vector< uint32_t > & | thePath | ||
) |
Definition at line 155 of file GenericAStar.cpp.
References GenericAStarUtil::SearchNode::currNode, and GenericAStarUtil::SearchNode::prevNode.
closedList_iterator GenericAStar::GetClosedListIter | ( | ) | const |
Definition at line 183 of file GenericAStar.cpp.
int GenericAStar::GetMemoryUsage | ( | ) |
Definition at line 178 of file GenericAStar.cpp.
|
virtual |
Definition at line 20 of file GenericAStar.cpp.
|
private |
Definition at line 119 of file GenericAStar.cpp.
References GenericAStarUtil::SearchNode::currNode.
|
inline |
Definition at line 93 of file GenericAStar.h.
References nodesExpanded.
Referenced by ClusterAbstraction::insertNode().
|
inline |
Definition at line 94 of file GenericAStar.h.
References nodesTouched.
Referenced by ClusterAbstraction::insertNode().
void GenericAStar::GetPath | ( | OldSearchCode::SearchEnvironment * | env, |
uint32_t | from, | ||
uint32_t | to, | ||
std::vector< uint32_t > & | thePath | ||
) |
Definition at line 28 of file GenericAStar.cpp.
Referenced by ClusterAbstraction::computeClusterPaths(), ClusterAbstraction::insertNode(), and ClusterAbstraction::setUpParents().
bool GenericAStar::InitializeSearch | ( | OldSearchCode::SearchEnvironment * | env, |
uint32_t | from, | ||
uint32_t | to, | ||
std::vector< uint32_t > & | thePath | ||
) |
Definition at line 37 of file GenericAStar.cpp.
References UINT32_MAX.
void GenericAStar::PrintStats | ( | ) |
Definition at line 172 of file GenericAStar.cpp.
|
inline |
Definition at line 95 of file GenericAStar.h.
References nodesExpanded, and nodesTouched.
|
private |
Definition at line 129 of file GenericAStar.cpp.
References GenericAStarUtil::SearchNode::fCost, fgreater(), GenericAStarUtil::SearchNode::gCost, and GenericAStarUtil::SearchNode::prevNode.
|
private |
Definition at line 108 of file GenericAStar.h.
|
private |
Definition at line 113 of file GenericAStar.h.
|
private |
Definition at line 112 of file GenericAStar.h.
|
private |
Definition at line 109 of file GenericAStar.h.
|
private |
Definition at line 111 of file GenericAStar.h.
|
private |
Definition at line 102 of file GenericAStar.h.
Referenced by GetNodesExpanded(), and ResetNodeCount().
|
private |
Definition at line 102 of file GenericAStar.h.
Referenced by GetNodesTouched(), and ResetNodeCount().
|
private |
Definition at line 107 of file GenericAStar.h.
|
private |
Definition at line 109 of file GenericAStar.h.