LHS road classification is strictly less than RHS, if it belongs to a lower general category of roads. E.g. normal city roads are strictly less of a priority than a motorway and alleys are strictly less than inner-city roads.
| 167 | // of roads. E.g. normal city roads are strictly less of a priority than a motorway and alleys |
| 168 | // are strictly less than inner-city roads. |
| 169 | inline bool strictlyLess(const RoadClassification lhs, const RoadClassification rhs) |
| 170 | { |
| 171 | if (!lhs.IsLowPriorityRoadClass() && rhs.IsLowPriorityRoadClass()) |
| 172 | return false; |
| 173 | if (lhs.IsLowPriorityRoadClass() && !rhs.IsLowPriorityRoadClass()) |
| 174 | return true; |
| 175 | |
| 176 | return getRoadGroup(lhs) > getRoadGroup(rhs); |
| 177 | } |
| 178 | |
| 179 | // check whether a link class is the fitting link class to a road |
| 180 | inline bool isLinkTo(const RoadClassification link, const RoadClassification road) |
no test coverage detected