diff --git a/src/planner.hpp b/src/planner.hpp index fee995c..23fe61e 100644 --- a/src/planner.hpp +++ b/src/planner.hpp @@ -88,22 +88,28 @@ struct PlannerNodeHasher { } }; -static _FORCE_INLINE_ bool operator==(PlannerNode const &lhs, PlannerNode const &rhs) { +static _FORCE_INLINE_ +bool operator==(PlannerNode const &lhs, PlannerNode const &rhs) { return PlannerNodeHasher::hash(lhs) == PlannerNodeHasher::hash(rhs); } -static _FORCE_INLINE_ bool operator!=(PlannerNode const &lhs, PlannerNode const &rhs) { +static _FORCE_INLINE_ +bool operator!=(PlannerNode const &lhs, PlannerNode const &rhs) { return !(lhs == rhs); } -static _FORCE_INLINE_ bool operator<(PlannerNode const &lhs, PlannerNode const &rhs) { +static _FORCE_INLINE_ +bool operator<(PlannerNode const &lhs, PlannerNode const &rhs) { return lhs.open_requirements.size() < rhs.open_requirements.size(); } -static _FORCE_INLINE_ bool operator>=(PlannerNode const &lhs, PlannerNode const &rhs) { +static _FORCE_INLINE_ +bool operator>=(PlannerNode const &lhs, PlannerNode const &rhs) { return !(lhs < rhs); } -static _FORCE_INLINE_ bool operator>(PlannerNode const &lhs, PlannerNode const &rhs) { +static _FORCE_INLINE_ +bool operator>(PlannerNode const &lhs, PlannerNode const &rhs) { return lhs.open_requirements.size() > rhs.open_requirements.size(); } -static _FORCE_INLINE_ bool operator<=(PlannerNode const &lhs, PlannerNode const &rhs) { +static _FORCE_INLINE_ +bool operator<=(PlannerNode const &lhs, PlannerNode const &rhs) { return !(lhs > rhs); } }