Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-03-10 17:45:36 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:53:00 +0300
commit89c87a15c79af9cfd16979da7fa3bacf8e593dbe (patch)
treeaa49562b2f421287d25ae9404ad6590514d37a10 /storage/storage.hpp
parente80c37d2416cff876c2e50a6663cf294cdaacfe8 (diff)
[new downloader] Review fixes.
Diffstat (limited to 'storage/storage.hpp')
-rw-r--r--storage/storage.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/storage.hpp b/storage/storage.hpp
index f0d05b78cb..cf15258deb 100644
--- a/storage/storage.hpp
+++ b/storage/storage.hpp
@@ -193,6 +193,7 @@ private:
// |m_affiliations| is a mapping from countryId to the list of names of
// geographical objects (such as countries) that encompass this countryId.
+ // Note. Affiliations is inherited from ancestors of the countryId in country tree.
// |m_affiliations| is filled during Storage initialization or during migration process.
// It is filled with data of countries.txt (field "affiliations").
// Once filled |m_affiliations| is not changed.
@@ -583,10 +584,10 @@ void Storage::ForEachInSubtreeAndInQueue(TCountryId const & root, ToDo && toDo)
/// Calls functor |toDo| with signature
/// void(const TCountryId const & parentId, TCountriesVec const & descendantCountryId)
/// for each ancestor except for the main root of the tree.
-/// |descendantsCountryId| is a vector of country id of descendats of |parentId|.
/// Note. In case of disputable territories several nodes with the same name may be
/// present in the country tree. In that case ForEachAncestorExceptForTheRoot calls
-/// |toDo| for parents of each way to the root in the country tree.
+/// |toDo| for parents of each way to the root in the country tree. In case of diamond
+/// trees toDo is called for common part of ways to the root only once.
template <class ToDo>
void Storage::ForEachAncestorExceptForTheRoot(TCountryId const & countryId, ToDo && toDo) const
{