MCPcopy Create free account
hub / github.com/comaps/comaps / AddRoad

Method AddRoad

generator/generator_tests_support/routing_helpers.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void TestGeometryLoader::AddRoad(uint32_t featureId, bool oneWay, float speed, RoadGeometry::Points const & points)
61{
62 auto const it = m_roads.find(featureId);
63 CHECK(it == m_roads.end(), ("Already contains feature", featureId));
64 m_roads[featureId] = RoadGeometry(oneWay, speed, speed, points);
65 m_roads[featureId].SetPassThroughAllowedForTests(true);
66}
67
68void TestGeometryLoader::SetPassThroughAllowed(uint32_t featureId, bool passThroughAllowed)
69{

Callers 2

BuildTwoCubeGraphFunction · 0.45
BuildTwoCubeGraphFunction · 0.45

Calls 4

RoadGeometryClass · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by 2

BuildTwoCubeGraphFunction · 0.36
BuildTwoCubeGraphFunction · 0.36