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

Method Load

libs/routing/routing_tests/index_graph_tools.cpp:98–103  ·  view source on GitHub ↗

ZeroGeometryLoader ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

96
97// ZeroGeometryLoader ------------------------------------------------------------------------------
98void ZeroGeometryLoader::Load(uint32_t /* featureId */, routing::RoadGeometry & road)
99{
100 // Any valid road will do.
101 auto const points = routing::RoadGeometry::Points({{0.0, 0.0}, {0.0, 1.0}});
102 road = RoadGeometry(true /* oneWay */, 1.0 /* weightSpeedKMpH */, 1.0 /* etaSpeedKMpH */, points);
103}
104
105// TestIndexGraphLoader ----------------------------------------------------------------------------
106IndexGraph & TestIndexGraphLoader::GetIndexGraph(NumMwmId mwmId)

Callers

nothing calls this directly

Calls 2

PointsFunction · 0.85
RoadGeometryClass · 0.50

Tested by

no test coverage detected