MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

generator/dumper.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
81template <class T>

Callers

nothing calls this directly

Calls 7

has_valueMethod · 0.80
GetTranslatedNameMethod · 0.80
clearMethod · 0.45
ForEachTypeMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected