| 63 | TypesCollector() : m_namesCount(0), m_totalCount(0) {} |
| 64 | |
| 65 | void operator()(FeatureType & f, uint32_t) |
| 66 | { |
| 67 | ++m_totalCount; |
| 68 | if (f.GetTranslatedName().m_primary.has_value()) |
| 69 | ++m_namesCount; |
| 70 | |
| 71 | m_currFeatureTypes.clear(); |
| 72 | f.ForEachType([this](uint32_t type) { m_currFeatureTypes.push_back(type); }); |
| 73 | CHECK(!m_currFeatureTypes.empty(), ("Feature without any type???")); |
| 74 | |
| 75 | auto found = m_stats.insert(make_pair(m_currFeatureTypes, 1)); |
| 76 | if (!found.second) |
| 77 | found.first->second++; |
| 78 | } |
| 79 | }; |
| 80 | |
| 81 | template <class T> |
nothing calls this directly
no test coverage detected