Code review fixes.

This commit is contained in:
vng 2017-11-13 13:42:28 +03:00 committed by Michael Krasnyk
parent 8fa98ed27d
commit a53794f864
2 changed files with 7 additions and 4 deletions

View File

@ -12,12 +12,10 @@ struct EdgeBasedNode
{
GeometryID geometry_id;
ComponentID component_id;
AnnotationID annotation_id : 31;
bool segregated : 1;
std::uint32_t annotation_id : 31;
std::uint32_t segregated : 1;
};
static_assert(sizeof(EdgeBasedNode) == 3 * 4, "Should be 3 * sizeof(uint32_t)");
} // namespace extractor
} // namespace osrm

View File

@ -103,6 +103,11 @@ class Extractor
const std::string &path,
std::vector<ConditionalTurnRestriction> &conditional_turn_restrictions);
// Find all "segregated" edges, e.g. edges that can be skipped in turn instructions.
// The main cases are:
// - middle edges between two osm ways in one logic road (U-turn)
// - staggered intersections (X-cross)
// - square/circle intersections
std::unordered_set<EdgeID> FindSegregatedNodes(NodeBasedGraphFactory &factory);
};
}