Definition at line 9 of file utils.cpp.
◆ operator()()
bool NodeComparator::operator() |
( |
const std::shared_ptr< Node > & |
a, |
|
|
const std::shared_ptr< Node > & |
b |
|
) |
| |
|
inline |
Definition at line 11 of file utils.cpp.
11 {
12 if (!a || !b) {
13 throw std::invalid_argument("Null node pointer in comparison");
14 }
15 return a->path_cost + a->heuristic > b->path_cost + b->heuristic;
16 }
The documentation for this class was generated from the following file: