diff options
author | Yuri Gorshenin <y@maps.me> | 2015-09-09 13:21:16 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:02:13 +0300 |
commit | 00001c40c29c86975c798e54f7b133f542b7d29f (patch) | |
tree | 842e21c31d4ca12eb3adb03359adf061b7ab948a /indexer/rank_table.hpp | |
parent | 070a14d8accf1f23330ee743b3bf10593ff42563 (diff) |
[coding, indexer] Refactored SimpleDenseCoding.
Diffstat (limited to 'indexer/rank_table.hpp')
-rw-r--r-- | indexer/rank_table.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/rank_table.hpp b/indexer/rank_table.hpp index 113675bedb..0917c4d639 100644 --- a/indexer/rank_table.hpp +++ b/indexer/rank_table.hpp @@ -65,7 +65,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 & rcont); + static 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 @@ -76,7 +76,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 & mcont); + static unique_ptr<RankTable> Load(FilesMappingContainer const & mcont); }; // A builder class for rank tables. @@ -92,7 +92,7 @@ public: // reverse mapping. // * When rank table does not exist or exists but is damaged, calculates all // features' ranks and creates rank table. - static void Create(platform::LocalCountryFile const & localFile); + static void CreateIfNotExists(platform::LocalCountryFile const & localFile); // Force creation of a rank table from array of ranks. Existing rank // table is removed (if any). Note that |wcont| must be instantiated |