| 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 |
nothing calls this directly
no test coverage detected