tudocomp
– The TU Dortmund Compression Framework
MTFCompressor.hpp File Reference
#include <tudocomp/util.hpp>
#include <tudocomp/Compressor.hpp>
#include <tudocomp/Env.hpp>
#include <numeric>
#include <tudocomp/def.hpp>

Go to the source code of this file.

Classes

class  tdc::MTFCompressor
 

Namespaces

 tdc
 Contains the text compression and encoding framework.
 

Functions

template<class value_type = uliteral_t>
value_type tdc::mtf_encode_char (const value_type v, value_type *const table, const size_t table_size)
 Encodes a character 'v' by Move-To-Front Coding Needs and modifies a lookup table storing the last-used characters. More...
 
template<class value_type = uliteral_t>
value_type tdc::mtf_decode_char (const value_type v, value_type *const table)
 Decodes a character encoded as 'v' by Move-To-Front Coding Needs and modifies a lookup table storing the last-used characters. More...
 
template<class char_type = uliteral_t>
void tdc::mtf_encode (std::basic_istream< char_type > &is, std::basic_ostream< char_type > &os)
 
template<class char_type = uliteral_t>
void tdc::mtf_decode (std::basic_istream< char_type > &is, std::basic_ostream< char_type > &os)