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:
authorvng <viktor.govako@gmail.com>2011-08-25 12:53:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:22:22 +0300
commit91909c81267e3b38e95005923a7b7a98d72a0d79 (patch)
treee35dd1f440700ac307d6f89286f26915d24224bf /indexer/interval_index_iface.hpp
parentcd7d41afd362028fb1d29a5f6e35a8365096370c (diff)
[Support Old Format] Add polymorphic index usage.
Diffstat (limited to 'indexer/interval_index_iface.hpp')
-rw-r--r--indexer/interval_index_iface.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/indexer/interval_index_iface.hpp b/indexer/interval_index_iface.hpp
new file mode 100644
index 0000000000..879ee59eb9
--- /dev/null
+++ b/indexer/interval_index_iface.hpp
@@ -0,0 +1,19 @@
+#pragma once
+#include "../std/function.hpp"
+
+
+class IntervalIndexIFace
+{
+public:
+ virtual ~IntervalIndexIFace() {}
+
+ class QueryIFace
+ {
+ public:
+ virtual ~QueryIFace() {}
+ };
+
+ typedef function<void (uint32_t)> FunctionT;
+
+ virtual void DoForEach(FunctionT const & f, uint64_t beg, uint64_t end, QueryIFace & query) = 0;
+};