chore: updated operator formatting

This commit is contained in:
Sara 2024-05-02 15:05:28 +02:00
parent c689d16dfd
commit c55d6b67ef

View file

@ -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); 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); 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(); 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); 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(); 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); return !(lhs > rhs);
} }
} }