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

Function GetMinMax

libs/map/style_tests/classificator_tests.cpp:135–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133{
134
135pair<int, int> GetMinMax(int level, vector<uint32_t> const & types, drule::TypeT ruleType)
136{
137 pair<int, int> res(numeric_limits<int>::max(), numeric_limits<int>::min());
138
139 drule::KeysT keys;
140 feature::GetDrawRule(types, level, feature::GeomType::Area, keys);
141
142 for (size_t i = 0; i < keys.size(); ++i)
143 {
144 if (keys[i].m_type != ruleType)
145 continue;
146
147 if (keys[i].m_priority < res.first)
148 res.first = keys[i].m_priority;
149 if (keys[i].m_priority > res.second)
150 res.second = keys[i].m_priority;
151 }
152
153 return res;
154}
155
156string CombineArrT(base::StringIL const & arrT)
157{

Callers 1

CheckPriorityFunction · 0.85

Calls 2

GetDrawRuleFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected