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>2015-09-01 17:37:19 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:40 +0300
commitd05142ff1cd106839d1c592743d299af2408208d (patch)
tree5f6e435833f783a9ada63d20efac63978164a473 /indexer/scale_index.hpp
parentfb97d4384e4170d773b67e5c2e896a1ba57a0f99 (diff)
[omim] [indexer] Move ScaleIndexBase implementation into the .hpp file.
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r--indexer/scale_index.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/indexer/scale_index.hpp b/indexer/scale_index.hpp
index 6c3e60b3c2..d290b1a1a3 100644
--- a/indexer/scale_index.hpp
+++ b/indexer/scale_index.hpp
@@ -12,13 +12,17 @@
/// Index bucket <--> Draw scale range.
+/// Using default one-to-one mapping.
class ScaleIndexBase
{
public:
- static uint32_t GetBucketsCount();
- static uint32_t BucketByScale(uint32_t scale);
+ static uint32_t GetBucketsCount() { return 18; }
+ static uint32_t BucketByScale(uint32_t scale) { return scale; }
/// @return Range like [x, y).
- static pair<uint32_t, uint32_t> ScaleRangeForBucket(uint32_t bucket);
+ static pair<uint32_t, uint32_t> ScaleRangeForBucket(uint32_t bucket)
+ {
+ return {bucket, bucket + 1};
+ }
};
template <class ReaderT>