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

Method Geometry

libs/routing/geometry.cpp:285–291  ·  view source on GitHub ↗

Geometry ----------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

283
284// Geometry ----------------------------------------------------------------------------------------
285Geometry::Geometry(unique_ptr<GeometryLoader> loader, size_t roadsCacheSize) : m_loader(std::move(loader))
286{
287 CHECK(m_loader, ());
288
289 m_featureIdToRoad = make_unique<RoutingCacheT>(
290 roadsCacheSize, [this](uint32_t featureId, RoadGeometry & road) { m_loader->Load(featureId, road); });
291}
292
293RoadGeometry const & Geometry::GetRoad(uint32_t featureId)
294{

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected