Solution

Declared in astar/Solution.h; the same struct on the site of Doxygen.

template<class State, class Cost>
struct Solution

a path from the initial state to a goal, and its cost

path.front() is the initial state and path.back() the goal; the path is empty unless status == Status::solved.

Public Functions

inline bool solved(void) const noexcept

true if a path has been found

Public Members

Status status = Status::unsolvable

how the search ended

Cost cost = {}

the cost of the path

std::vector<State> path

the states along the path

SearchStats stats

the counters of the search