diff options
author | Yuri Gorshenin <y@maps.me> | 2015-09-03 17:44:52 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:02:13 +0300 |
commit | 5e5befb58ef0b2a424cffdfd102d7d6aa7ffce82 (patch) | |
tree | bb1b73cfc34c906243592b8f4f6272e8820500c9 /coding/simple_dense_coding.cpp | |
parent | b4bd3a3e802fc25665b7cbcb2a2af2d45b79913c (diff) |
[indexer] Implemented rank table builder.
Diffstat (limited to 'coding/simple_dense_coding.cpp')
-rw-r--r-- | coding/simple_dense_coding.cpp | 8 |
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(), ()); |