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-03-14 11:10:19 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:13:34 +0300
commit221d3d99da351bddd4c82f9fc553737eb458025f (patch)
treec45c9981941fec357f910fd7dae65d0ec484f1fd /indexer/scale_index_builder.hpp
parent25ea1267b48898b89681b93a5f371232fc79b711 (diff)
Refactoring of feature::DataHeader.
Added base point and scales array to header. World and country generation now have different scale ranges.
Diffstat (limited to 'indexer/scale_index_builder.hpp')
-rw-r--r--indexer/scale_index_builder.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indexer/scale_index_builder.hpp b/indexer/scale_index_builder.hpp
index ef5c798b76..70b5ca3f96 100644
--- a/indexer/scale_index_builder.hpp
+++ b/indexer/scale_index_builder.hpp
@@ -138,7 +138,8 @@ private:
};
template <class FeaturesVectorT, class WriterT>
-inline void IndexScales(FeaturesVectorT const & featuresVector,
+inline void IndexScales(uint32_t bucketsCount,
+ FeaturesVectorT const & featuresVector,
WriterT & writer,
string const & tmpFilePrefix)
{
@@ -147,8 +148,8 @@ inline void IndexScales(FeaturesVectorT const & featuresVector,
//typedef pair<int64_t, uint32_t> CellFeaturePair;
STATIC_ASSERT(sizeof(CellFeaturePair) == 12);
- VarSerialVectorWriter<WriterT> recordWriter(writer, ScaleIndexBase::NUM_BUCKETS);
- for (uint32_t bucket = 0; bucket < ScaleIndexBase::NUM_BUCKETS; ++bucket)
+ VarSerialVectorWriter<WriterT> recordWriter(writer, bucketsCount);
+ for (uint32_t bucket = 0; bucket < bucketsCount; ++bucket)
{
LOG(LINFO, ("Building scale index for bucket:", bucket));
uint32_t numFeatures = 0;