Welcome to mirror list, hosted at ThFree Co, Russian Federation.

scale_index.cpp « indexer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a3c9195aada8a476e7bf88ba85d53117d155e88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "indexer/scale_index.hpp"


/// Using default one to one mapping.

uint32_t ScaleIndexBase::GetBucketsCount()
{
  return 18;
}

uint32_t ScaleIndexBase::BucketByScale(uint32_t scale)
{
  return scale;
}

pair<uint32_t, uint32_t> ScaleIndexBase::ScaleRangeForBucket(uint32_t bucket)
{
  return make_pair(bucket, bucket + 1);
}