mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -33,23 +33,21 @@ void ForEachMwmTmp(std::string const & temporaryMwmPath, ToDo && toDo, size_t th
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::vector<std::string>> GetAffiliations(
|
||||
std::vector<feature::FeatureBuilder> const & fbs,
|
||||
feature::AffiliationInterface const & affiliation, size_t threadsCount);
|
||||
std::vector<std::vector<std::string>> GetAffiliations(std::vector<feature::FeatureBuilder> const & fbs,
|
||||
feature::AffiliationInterface const & affiliation,
|
||||
size_t threadsCount);
|
||||
|
||||
// Writes |fbs| to countries mwm.tmp files. Returns affiliations - country matches for |fbs|.
|
||||
template <class SerializationPolicy = feature::serialization_policy::MaxAccuracy>
|
||||
std::vector<std::vector<std::string>> AppendToMwmTmp(std::vector<feature::FeatureBuilder> const & fbs,
|
||||
feature::AffiliationInterface const & affiliation,
|
||||
std::string const & temporaryMwmPath, size_t threadsCount = 1)
|
||||
feature::AffiliationInterface const & affiliation,
|
||||
std::string const & temporaryMwmPath, size_t threadsCount = 1)
|
||||
{
|
||||
auto affiliations = GetAffiliations(fbs, affiliation, threadsCount);
|
||||
std::unordered_map<std::string, std::vector<size_t>> countryToFbsIndexes;
|
||||
for (size_t i = 0; i < fbs.size(); ++i)
|
||||
{
|
||||
for (auto const & country : affiliations[i])
|
||||
countryToFbsIndexes[country].emplace_back(i);
|
||||
}
|
||||
|
||||
base::ComputationalThreadPool pool(threadsCount);
|
||||
for (auto && p : countryToFbsIndexes)
|
||||
|
||||
Reference in New Issue
Block a user