HOG2
|
#include <UnitCostBidirectionalBFS.h>
Public Member Functions | |
UnitCostBidirectionalBFS () | |
virtual | ~UnitCostBidirectionalBFS () |
void | GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< state > &thePath) |
void | GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< action > &thePath) |
uint64_t | GetNodesExpanded () |
uint64_t | GetNodesTouched () |
Private Types | |
typedef std::unordered_map< uint64_t, state, Hash64 > | BFSClosedList |
Private Member Functions | |
bool | ExtractPath (SearchEnvironment< state, action > *env, std::vector< state > &thePath) |
bool | ExpandLayer (SearchEnvironment< state, action > *env, std::vector< state > &nodesToExpand, std::vector< state > &expansionLocation, BFSClosedList &duplicateHash, BFSClosedList &completionHash) |
Private Attributes | |
unsigned long | nodesExpanded |
unsigned long | nodesTouched |
std::vector< state > | startOpenA |
std::vector< state > | startOpenB |
std::vector< state > | goalOpenA |
std::vector< state > | goalOpenB |
BFSClosedList | startNodeTable |
BFSClosedList | goalNodeTable |
state | middle |
Definition at line 19 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 31 of file UnitCostBidirectionalBFS.h.
|
inline |
Definition at line 21 of file UnitCostBidirectionalBFS.h.
|
inlinevirtual |
Definition at line 22 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 189 of file UnitCostBidirectionalBFS.h.
References SearchEnvironment< state, action >::GetStateHash(), and SearchEnvironment< state, action >::GetSuccessors().
|
private |
Definition at line 128 of file UnitCostBidirectionalBFS.h.
References SearchEnvironment< state, action >::GetStateHash().
|
inline |
Definition at line 28 of file UnitCostBidirectionalBFS.h.
References UnitCostBidirectionalBFS< state, action >::nodesExpanded.
|
inline |
Definition at line 29 of file UnitCostBidirectionalBFS.h.
References UnitCostBidirectionalBFS< state, action >::nodesTouched.
void UnitCostBidirectionalBFS< state, action >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< action > & | thePath | ||
) |
Definition at line 120 of file UnitCostBidirectionalBFS.h.
void UnitCostBidirectionalBFS< state, action >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< state > & | thePath | ||
) |
Definition at line 55 of file UnitCostBidirectionalBFS.h.
References SearchEnvironment< state, action >::GetStateHash().
|
private |
Definition at line 50 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 45 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 46 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 51 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 41 of file UnitCostBidirectionalBFS.h.
Referenced by UnitCostBidirectionalBFS< state, action >::GetNodesExpanded().
|
private |
Definition at line 41 of file UnitCostBidirectionalBFS.h.
Referenced by UnitCostBidirectionalBFS< state, action >::GetNodesTouched().
|
private |
Definition at line 49 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 43 of file UnitCostBidirectionalBFS.h.
|
private |
Definition at line 44 of file UnitCostBidirectionalBFS.h.