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

Function GetHighwayClass

libs/indexer/ftypes_matcher.cpp:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125HighwayClass GetHighwayClass(feature::TypesHolder const & types)
126{
127 static HighwayClasses highwayClasses;
128
129 for (auto t : types)
130 {
131 for (uint8_t level : {3, 2})
132 {
133 ftype::TruncValue(t, level);
134 HighwayClass const hc = highwayClasses.Get(t);
135 if (hc != HighwayClass::Undefined)
136 return hc;
137 }
138 }
139
140 return HighwayClass::Undefined;
141}
142
143uint32_t BaseChecker::PrepareToMatch(uint32_t type, uint8_t level)
144{

Callers 8

RoadInfoMethod · 0.85
ProcessEdgeMethod · 0.85
GetRoadShieldsFunction · 0.85
UNIT_TESTFunction · 0.85
ProcessLineStyleMethod · 0.85
LoadPathAttributesMethod · 0.85

Calls 2

TruncValueFunction · 0.85
GetMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68