Symphony 1.0
Loading...
Searching...
No Matches
NodeComparator Class Reference

Public Member Functions

bool operator() (const std::shared_ptr< Node > &a, const std::shared_ptr< Node > &b)
 

Detailed Description

Definition at line 9 of file utils.cpp.

Member Function Documentation

◆ 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: