#include <search.h>
Definition at line 55 of file search.h.
◆ Solution()
Solution::Solution |
( |
Node * |
node | ) |
|
|
inline |
◆ print()
Definition at line 28 of file search.cpp.
28 {
30 std::vector<Action> actions;
31 auto parent = current->
parent;
32
33 while (parent != nullptr) {
34 actions.push_back(*current->
action);
35 current = parent.get();
37 }
38
39 for (auto it = actions.rbegin(); it != actions.rend(); ++it) {
40 std::cout << it->name << std::endl;
41 }
42
43}
std::shared_ptr< Node > parent
const std::shared_ptr< Action > action
References Node::action, node, and Node::parent.
◆ node
The documentation for this class was generated from the following files: