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:
authorYuri Gorshenin <y@maps.me>2015-09-03 17:44:52 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:02:13 +0300
commit5e5befb58ef0b2a424cffdfd102d7d6aa7ffce82 (patch)
treebb1b73cfc34c906243592b8f4f6272e8820500c9 /coding/simple_dense_coding.cpp
parentb4bd3a3e802fc25665b7cbcb2a2af2d45b79913c (diff)
[indexer] Implemented rank table builder.
Diffstat (limited to 'coding/simple_dense_coding.cpp')
-rw-r--r--coding/simple_dense_coding.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/coding/simple_dense_coding.cpp b/coding/simple_dense_coding.cpp
index 03d88f1b8a..c75034b5be 100644
--- a/coding/simple_dense_coding.cpp
+++ b/coding/simple_dense_coding.cpp
@@ -4,6 +4,7 @@
#include "std/algorithm.hpp"
#include "std/limits.hpp"
+#include "std/utility.hpp"
namespace coding
{
@@ -46,10 +47,7 @@ public:
}
}
- inline Code const & GetCode(uint8_t rank) const
- {
- return m_table[rank];
- }
+ inline Code const & GetCode(uint8_t rank) const { return m_table[rank]; }
private:
Code m_table[kAlphabetSize];
@@ -108,6 +106,8 @@ SimpleDenseCoding::SimpleDenseCoding(vector<uint8_t> const & data)
m_symbols.assign(symbols);
}
+SimpleDenseCoding::SimpleDenseCoding(SimpleDenseCoding && rhs) { Swap(move(rhs)); }
+
uint8_t SimpleDenseCoding::Get(uint64_t i) const
{
ASSERT_LESS(i, Size(), ());