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

Method SetIgnoreBarriers

generator/road_access_generator.cpp:345–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void RoadAccessTagProcessor::SetIgnoreBarriers(OsmElement const & elem)
346{
347 if (!m_highwaysToIgnoreWABarriers)
348 return;
349
350 for (auto const & tag : elem.m_tags)
351 {
352 if (m_highwaysToIgnoreWABarriers->count(tag) > 0)
353 {
354 m_ignoreWABarriers.push_back(true);
355 return;
356 }
357 }
358
359 m_ignoreWABarriers.push_back(false);
360}
361
362bool RoadAccessTagProcessor::IsIgnoreBarriers(size_t wayIdx) const
363{

Callers 1

CollectFeatureMethod · 0.80

Calls 2

countMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected