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:
authortatiana-kondakova <tatiana.kondakova@gmail.com>2018-03-29 12:38:13 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-04-09 15:59:05 +0300
commit8099883fd67e68c12bb59ffa34e749a5cf4e4c14 (patch)
treece77fb50ca53d81579c20aaa91ee1174f01cd3a9 /indexer/rank_table.hpp
parent9021750e6dd899758facf22140d56c2d706aacc1 (diff)
Increase search rank for FC2018 objects
Diffstat (limited to 'indexer/rank_table.hpp')
-rw-r--r--indexer/rank_table.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/indexer/rank_table.hpp b/indexer/rank_table.hpp
index 756b477aaa..89786412c6 100644
--- a/indexer/rank_table.hpp
+++ b/indexer/rank_table.hpp
@@ -1,9 +1,9 @@
#pragma once
-#include "std/cstdint.hpp"
-#include "std/string.hpp"
-#include "std/unique_ptr.hpp"
-#include "std/vector.hpp"
+#include <cstdint>
+#include <memory>
+#include <string>
+#include <vector>
class FilesContainerR;
class FilesContainerW;
@@ -70,7 +70,7 @@ public:
// *NOTE* Return value can outlive |rcont|. Also note that there is
// undefined behaviour if ranks section exists but internally
// damaged.
- static unique_ptr<RankTable> Load(FilesContainerR const & rcont);
+ static std::unique_ptr<RankTable> Load(FilesContainerR const & rcont);
// Maps whole section corresponding to a rank table and deserializes
// it. Returns nullptr if there're no ranks section, rank table's
@@ -81,7 +81,7 @@ public:
// destructed before |mcont| is closed. Also note that there're
// undefined behaviour if ranks section exists but internally
// damaged.
- static unique_ptr<RankTable> Load(FilesMappingContainer const & mcont);
+ static std::unique_ptr<RankTable> Load(FilesMappingContainer const & mcont);
};
// A builder class for rank tables.
@@ -89,7 +89,7 @@ class RankTableBuilder
{
public:
// Calculates search ranks for all features in an mwm.
- static void CalcSearchRanks(FilesContainerR & rcont, vector<uint8_t> & ranks);
+ static void CalcSearchRanks(FilesContainerR & rcont, std::vector<uint8_t> & ranks);
// Following methods create rank table for an mwm.
// * When rank table already exists and has proper endianness, does nothing.
@@ -101,11 +101,11 @@ public:
// Return true if rank table was successfully generated and written
// or already exists and has correct format.
static bool CreateIfNotExists(platform::LocalCountryFile const & localFile) noexcept;
- static bool CreateIfNotExists(string const & mapPath) noexcept;
+ static bool CreateIfNotExists(std::string const & mapPath) noexcept;
// Force creation of a rank table from array of ranks. Existing rank
// table is removed (if any). Note that |wcont| must be instantiated
// as FileWriter::OP_WRITE_EXISTING.
- static void Create(vector<uint8_t> const & ranks, FilesContainerW & wcont);
+ static void Create(std::vector<uint8_t> const & ranks, FilesContainerW & wcont);
};
} // namespace search