Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
AStar::Node< State > Struct Template ReferenceStores user state along with search context. More...
Detailed Descriptiontemplate<class State>
|
Classes | |
struct | CostCmp |
Search nodes should be sorted based on total cost (total). More... | |
Public Member Functions | |
Node (const Node *p, float c, float r, const State &st) | |
constructor, pass parent node p, cost so far c, remaining cost heuristic r, and user state st | |
Public Attributes | |
const Node * | parent |
source for this search node | |
float | cost |
cost to reach this node from start state | |
float | remain |
estimated cost remaining to goal | |
float | total |
cached value of cost + remain | |
State | state |
user state |
AStar::Node< State >::Node | ( | const Node< State > * | p, | |
float | c, | |||
float | r, | |||
const State & | st | |||
) |
float AStar::Node< State >::cost |
cost to reach this node from start state
Definition at line 22 of file AStar.h.
Referenced by AStar::astar(), and AStar::Node< State >::CostCmp::operator()().
const Node* AStar::Node< State >::parent |
source for this search node
Definition at line 21 of file AStar.h.
Referenced by AStar::astar(), and AStar::reconstruct().
float AStar::Node< State >::remain |
State AStar::Node< State >::state |
user state
Definition at line 25 of file AStar.h.
Referenced by AStar::astar(), AStar::StateEq< State >::operator()(), AStar::StateHash< State >::operator()(), AStar::StateCmp< State, Cmp >::operator()(), and AStar::reconstruct().
float AStar::Node< State >::total |
Definition at line 24 of file AStar.h.
Referenced by AStar::astar(), and AStar::Node< State >::CostCmp::operator()().
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:19 2016 by Doxygen 1.6.3 |