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

Method LocalitiesSource

libs/search/localities_source.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace search
6{
7LocalitiesSource::LocalitiesSource()
8{
9 auto & c = classif();
10
11 auto const city = c.GetTypeByPath({"place", "city"});
12 c.ForEachInSubtree([this](uint32_t c) { m_cities.push_back(c); }, city);
13
14 auto const town = c.GetTypeByPath({"place", "town"});
15 c.ForEachInSubtree([this](uint32_t t) { m_towns.push_back(t); }, town);
16}
17} // namespace search

Callers

nothing calls this directly

Calls 3

GetTypeByPathMethod · 0.80
ForEachInSubtreeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected