diff options
author | vng <viktor.govako@gmail.com> | 2011-08-25 12:53:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:22:22 +0300 |
commit | 91909c81267e3b38e95005923a7b7a98d72a0d79 (patch) | |
tree | e35dd1f440700ac307d6f89286f26915d24224bf /indexer/interval_index_iface.hpp | |
parent | cd7d41afd362028fb1d29a5f6e35a8365096370c (diff) |
[Support Old Format] Add polymorphic index usage.
Diffstat (limited to 'indexer/interval_index_iface.hpp')
-rw-r--r-- | indexer/interval_index_iface.hpp | 19 |
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; +}; |