diff options
author | Maxim Pimenov <m@maps.me> | 2015-09-01 17:37:19 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:03:40 +0300 |
commit | d05142ff1cd106839d1c592743d299af2408208d (patch) | |
tree | 5f6e435833f783a9ada63d20efac63978164a473 /indexer/scale_index.hpp | |
parent | fb97d4384e4170d773b67e5c2e896a1ba57a0f99 (diff) |
[omim] [indexer] Move ScaleIndexBase implementation into the .hpp file.
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r-- | indexer/scale_index.hpp | 10 |
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> |