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

Method InsertToCountryTree

libs/storage/country_tree.cpp:75–82  ·  view source on GitHub ↗

StoreInterface overrides:

Source from the content-addressed store, hash-verified

73
74 // StoreInterface overrides:
75 Country * InsertToCountryTree(CountryId const & id, MwmSize mapSize, string const & mapSha1, size_t depth,
76 CountryId const & parent) override
77 {
78 Country country(id, parent);
79 if (mapSize)
80 country.SetFile(platform::CountryFile{id, mapSize, mapSha1});
81 return &m_countries.AddAtDepth(depth, std::move(country));
82 }
83
84 void InsertOldMwmMapping(CountryId const & newId, CountryId const & oldId) override
85 {

Callers 1

LoadGroupImplFunction · 0.45

Calls 2

SetFileMethod · 0.80
AddAtDepthMethod · 0.80

Tested by

no test coverage detected