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

Method Add

generator/borders.hpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 CountryPolygonsCollection() = default;
100
101 void Add(CountryPolygons && countryPolygons)
102 {
103 auto const res = m_countryPolygonsMap.emplace(countryPolygons.GetName(), std::move(countryPolygons));
104 CHECK(res.second, ());
105
106 auto const & inserted = res.first->second;
107 inserted.ForEachPolygon([&inserted, this](Polygon const & polygon)
108 { m_regionsTree.Add(inserted, polygon.GetRect()); });
109 }
110
111 size_t GetSize() const { return m_countryPolygonsMap.size(); }
112

Callers

nothing calls this directly

Calls 4

emplaceMethod · 0.45
GetNameMethod · 0.45
ForEachPolygonMethod · 0.45
GetRectMethod · 0.45

Tested by

no test coverage detected