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

Method MacroToSpeed

libs/routing_common/maxspeed_conversion.cpp:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248SpeedInUnits MaxspeedConverter::MacroToSpeed(SpeedMacro macro) const
249{
250 uint8_t const m = static_cast<uint8_t>(macro);
251 ASSERT_LESS(m, m_macroToSpeed.size(), ());
252 return m_macroToSpeed[m];
253}
254
255SpeedMacro MaxspeedConverter::SpeedToMacro(SpeedInUnits const & speed) const
256{

Callers 4

GetMaxspeedMethod · 0.80
DeserializeMethod · 0.80
UNIT_TESTFunction · 0.80
DebugPrintFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64