| 10 | using namespace feature; |
| 11 | |
| 12 | bool Less(FeatureBuilder const & lhs, FeatureBuilder const & rhs) |
| 13 | { |
| 14 | auto const lGeomType = static_cast<int8_t>(lhs.GetGeomType()); |
| 15 | auto const rGeomType = static_cast<int8_t>(rhs.GetGeomType()); |
| 16 | |
| 17 | // may be empty IDs |
| 18 | auto const lId = lhs.GetMostGenericOsmId(); |
| 19 | auto const rId = rhs.GetMostGenericOsmId(); |
| 20 | |
| 21 | auto const lPointsCount = lhs.GetPointsCount(); |
| 22 | auto const rPointsCount = rhs.GetPointsCount(); |
| 23 | |
| 24 | auto const lKeyPoint = lhs.GetKeyPoint(); |
| 25 | auto const rKeyPoint = rhs.GetKeyPoint(); |
| 26 | |
| 27 | return std::tie(lGeomType, lId, lPointsCount, lKeyPoint) < std::tie(rGeomType, rId, rPointsCount, rKeyPoint); |
| 28 | } |
| 29 | |
| 30 | void Order(std::vector<FeatureBuilder> & fbs) |
| 31 | { |
nothing calls this directly
no test coverage detected