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

Method Get

tools/openlr/road_info_getter.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20RoadInfoGetter::RoadInfoGetter(DataSource const & dataSource) : m_dataSource(dataSource) {}
21
22RoadInfoGetter::RoadInfo RoadInfoGetter::Get(FeatureID const & fid)
23{
24 auto it = m_cache.find(fid);
25 if (it != end(m_cache))
26 return it->second;
27
28 FeaturesLoaderGuard g(m_dataSource, fid.m_mwmId);
29 auto ft = g.GetOriginalFeatureByIndex(fid.m_index);
30 CHECK(ft, ());
31
32 RoadInfo info(*ft);
33 it = m_cache.emplace(fid, info).first;
34
35 return it->second;
36}
37} // namespace openlr

Callers 7

ProcessMethod · 0.45
WriteAsMappingForSparkFunction · 0.45
GetFrcScoreFunction · 0.45
PassesRestrictionFunction · 0.45
PassesRestrictionV3Function · 0.45
ConformLfrcnpFunction · 0.45
WriteAssessmentFileFunction · 0.45

Calls 4

endFunction · 0.50
findMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected