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:
authorYury Melnichek <melnichek@gmail.com>2011-02-13 01:12:01 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:12:13 +0300
commitcc940c7a09a3c472a02b13f4af6248cc8ff95eb1 (patch)
treef5f89184f1c9aae6e49042ee7a803da0031cdf06 /indexer/index.hpp
parentdfb8ff6ff9048de29d426b9a65a665616cd9dda4 (diff)
Store IntervalIndex cache in Query. Should speed up index.
Diffstat (limited to 'indexer/index.hpp')
-rw-r--r--indexer/index.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indexer/index.hpp b/indexer/index.hpp
index 7ae0af75a2..c8cd4a1ead 100644
--- a/indexer/index.hpp
+++ b/indexer/index.hpp
@@ -257,9 +257,7 @@ template <class BaseT> class UniqueOffsetAdapter : public BaseT
{
public:
// Defines base Query type.
- // If someone in BaseT want's to do that, use the following line and pass query in ForEachXXX().
- // class Query : public typename BaseT::Query
- class Query
+ class Query : public BaseT::Query
{
// TODO: Remember max offsets.size() and initialize offsets with it?
unordered_set<uint32_t> m_Offsets;
@@ -277,7 +275,7 @@ public:
Query & query) const
{
UniqueOffsetFunctorAdapter<F> uniqueOffsetFunctorAdapter(query.m_Offsets, f);
- BaseT::ForEachInIntervalAndScale(uniqueOffsetFunctorAdapter, beg, end, scale);
+ BaseT::ForEachInIntervalAndScale(uniqueOffsetFunctorAdapter, beg, end, scale, query);
}
private: