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

Method CleanIndex

libs/drape_frontend/user_mark_generator.cpp:179–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void UserMarkGenerator::CleanIndex()
180{
181 for (auto tileIt = m_index.begin(); tileIt != m_index.end();)
182 if (tileIt->second->empty())
183 tileIt = m_index.erase(tileIt);
184 else
185 ++tileIt;
186
187 for (auto & tileGroups : m_index)
188 {
189 for (auto groupIt = tileGroups.second->begin(); groupIt != tileGroups.second->end();)
190 if (groupIt->second->IsEmpty())
191 groupIt = tileGroups.second->erase(groupIt);
192 else
193 ++groupIt;
194 }
195}
196
197void UserMarkGenerator::SetGroupVisibility(kml::MarkGroupId groupId, bool isVisible)
198{

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
eraseMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected