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

Method GetBestType

libs/indexer/ftypes_matcher.cpp:593–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593uint32_t IsPartOfTourismAttractionsChecker::GetBestType(FeatureParams::Types const & types) const
594{
595 auto additionalType = ftype::GetEmptyValue();
596 auto const itAdditional = m_types.begin() + m_additionalTypesStart;
597
598 for (auto type : types)
599 {
600 type = PrepareToMatch(type, m_level);
601 if (binary_search(m_types.begin(), itAdditional, type))
602 return type;
603
604 if (binary_search(itAdditional, m_types.end(), type))
605 additionalType = type;
606 }
607
608 return additionalType;
609}
610
611IsPlaceChecker::IsPlaceChecker() : BaseChecker(1 /* level */)
612{

Callers 3

GetMainTypeFunction · 0.45
GetLocalizedTypeMethod · 0.45

Calls 3

GetEmptyValueFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected