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

Method Get

libs/routing/routing_options.cpp:83–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83optional<RoutingOptions::Road> RoutingOptionsClassifier::Get(uint32_t type) const
84{
85 ftype::TruncValue(type, 2); // in case of highway-motorway-bridge
86
87 auto const it = m_data.find(type);
88 if (it != m_data.cend())
89 return it->second;
90 return {};
91}
92
93RoutingOptionsClassifier const & RoutingOptionsClassifier::Instance()
94{

Callers 4

GetMaxspeedMethod · 0.45
LoadMethod · 0.45
RouteSegmentClass · 0.45
IndexGraphMethod · 0.45

Calls 3

TruncValueFunction · 0.85
findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected