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

Method GetLocalMaps

libs/storage/storage.cpp:637–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637void Storage::GetLocalMaps(vector<LocalFilePtr> & maps) const
638{
639 // CHECK_THREAD_CHECKER(m_threadChecker, ());
640
641 for (auto const & p : m_localFiles)
642 maps.push_back(GetLatestLocalFile(p.first));
643
644 for (auto const & p : m_localFilesForFakeCountries)
645 maps.push_back(p.second);
646
647 maps.erase(unique(maps.begin(), maps.end()), maps.end());
648}
649
650size_t Storage::GetDownloadedFilesCount() const
651{

Callers 1

RegisterAllMapsMethod · 0.80

Calls 5

uniqueFunction · 0.85
push_backMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected