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:
authorMaxim Pimenov <m@maps.me>2016-04-26 20:48:19 +0300
committerAlex Zolotarev <alex@maps.me>2016-05-01 10:28:03 +0300
commit861cdb910ca40f48dbaf8e096707f0b3b912bb42 (patch)
tree9599e020017dde614929b28a07aceead73363319 /indexer/categories_index.hpp
parent0b20c90890459444778897c1fa5cd6a68538f30a (diff)
[editor] Implemented search of a category for a newly added object.
Diffstat (limited to 'indexer/categories_index.hpp')
-rw-r--r--indexer/categories_index.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/categories_index.hpp b/indexer/categories_index.hpp
index 09859499ad..bda1bbb1fc 100644
--- a/indexer/categories_index.hpp
+++ b/indexer/categories_index.hpp
@@ -22,6 +22,13 @@ public:
CategoriesIndex(CategoriesHolder const & catHolder) : m_catHolder(catHolder) {}
+ CategoriesIndex(CategoriesIndex && other)
+ : m_catHolder(other.m_catHolder), m_trie(move(other.m_trie))
+ {
+ }
+
+ CategoriesHolder const & GetCategoriesHolder() const { return m_catHolder; }
+
// Adds all categories that match |type|. Only synonyms
// in language |lang| are added. See indexer/categories_holder.cpp
// for language enumeration.