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:
Diffstat (limited to 'indexer/search_trie.hpp')
-rw-r--r--indexer/search_trie.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/indexer/search_trie.hpp b/indexer/search_trie.hpp
index 1840d592c2..27001b34dd 100644
--- a/indexer/search_trie.hpp
+++ b/indexer/search_trie.hpp
@@ -9,6 +9,10 @@
namespace search
{
+static const uint8_t CATEGORIES_LANG = 128;
+static const uint8_t POINT_CODING_BITS = 20;
+} // namespace search
+
namespace trie
{
@@ -42,19 +46,15 @@ public:
}
};
-typedef ::trie::reader::EmptyValueReader EdgeValueReader;
+typedef EmptyValueReader EdgeValueReader;
-} // namespace search::trie
+typedef trie::Iterator<trie::ValueReader::ValueType, trie::EdgeValueReader::ValueType>
+ DefaultIterator;
- typedef ::trie::Iterator<
- trie::ValueReader::ValueType,
- trie::EdgeValueReader::ValueType> TrieIterator;
-
- static const uint8_t CATEGORIES_LANG = 128;
- static const uint8_t POINT_CODING_BITS = 20;
+inline serial::CodingParams GetCodingParams(serial::CodingParams const & orig)
+{
+ return serial::CodingParams(search::POINT_CODING_BITS,
+ PointU2PointD(orig.GetBasePoint(), orig.GetCoordBits()));
+}
- inline serial::CodingParams GetCPForTrie(serial::CodingParams const & orig)
- {
- return serial::CodingParams(POINT_CODING_BITS, PointU2PointD(orig.GetBasePoint(), orig.GetCoordBits()));
- }
-} // namespace search
+} // namespace trie