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

Method GetAltitudesLoader

libs/routing/features_road_graph.cpp:311–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311feature::AltitudeLoaderCached * FeaturesRoadGraph::GetAltitudesLoader(MwmSet::MwmId const & mwmId) const
312{
313 auto it = m_altitudes.find(mwmId);
314 if (it == m_altitudes.end())
315 {
316 auto const & handle = m_dataSource.GetHandle(mwmId);
317 it = m_altitudes.emplace(mwmId, *handle.GetValue()).first;
318 }
319 return &(it->second);
320}
321
322void FeaturesRoadGraph::ClearState()
323{

Callers

nothing calls this directly

Calls 5

GetHandleMethod · 0.80
findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected