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

Method ComplexLoader

generator/complex_loader.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33ComplexLoader::ComplexLoader(std::string const & filename)
34{
35 auto trees = hierarchy::LoadHierachy(filename);
36 base::EraseIf(trees, [](auto const & e) { return !IsComplex(e); });
37 for (auto const & tree : trees)
38 m_forests[GetCountry(tree)].Append(tree);
39}
40
41tree_node::Forest<HierarchyEntry> const & ComplexLoader::GetForest(storage::CountryId const & country) const
42{

Callers

nothing calls this directly

Calls 5

LoadHierachyFunction · 0.85
EraseIfFunction · 0.85
IsComplexFunction · 0.85
GetCountryFunction · 0.85
AppendMethod · 0.45

Tested by

no test coverage detected