tudocomp
– The TU Dortmund Compression Framework
|
Base for data compressors. More...
#include <Compressor.hpp>
Public Member Functions | |
virtual | ~Compressor ()=default |
Compressor (Compressor const &)=default | |
Compressor (Compressor &&)=default | |
Compressor & | operator= (Compressor const &)=default |
Compressor & | operator= (Compressor &&)=default |
Compressor (Env &&env) | |
Construct the compressor with an environment. More... | |
virtual void | compress (Input &input, Output &output)=0 |
Compress the given input to the given output. More... | |
virtual void | decompress (Input &input, Output &output)=0 |
Decompress the given input to the given output. More... | |
Public Member Functions inherited from tdc::Algorithm | |
virtual | ~Algorithm ()=default |
Algorithm (Algorithm const &)=default | |
Algorithm (Algorithm &&)=default | |
Algorithm & | operator= (Algorithm const &)=default |
Algorithm & | operator= (Algorithm &&)=default |
Algorithm (Env &&env) | |
Instantiates an algorithm in the specified environment. More... | |
Env & | env () |
Provides access to the environment that the algorithm works in. More... | |
const Env & | env () const |
Base for data compressors.
A compressor defines the two operations compress and decompress. The compress operation transforms an input into a different representation with the goal of reducing the required memory. The decompress operation restores the original input from such a representation.
Definition at line 19 of file Compressor.hpp.
|
virtualdefault |
|
default |
|
default |
|
inline |
Construct the compressor with an environment.
env | The algorithm's environment. |
Definition at line 30 of file Compressor.hpp.
Compress the given input to the given output.
input | The input. |
output | The output. |
Implemented in tdc::lfs::LFS2BSTCompressor< literal_coder_t, len_coder_t >, tdc::LZ78UCompressor< strategy_t, ref_coder_t >, tdc::LCPCompressor< coder_t, strategy_t, dec_t, text_t >, tdc::RePairCompressor< coder_t >, tdc::lfs::LFS2Compressor< literal_coder_t, len_coder_t >, tdc::MTFCompressor, tdc::ChainCompressor, tdc::LZ78Compressor< coder_t, dict_t >, tdc::RunLengthEncoder, tdc::lfs::LFSCompressor< comp_strategy_t, coding_strat_t >, tdc::LZSSLCPCompressor< coder_t, text_t >, tdc::LZSSSlidingWindowCompressor< coder_t >, tdc::LZWCompressor< coder_t, dict_t >, tdc::EspCompressor< slp_coder_t, ipd_t >, tdc::BWTCompressor< text_t >, tdc::LiteralEncoder< coder_t >, and tdc::NoopCompressor.
Decompress the given input to the given output.
input | The input. |
output | The output. |
Implemented in tdc::lfs::LFS2Compressor< literal_coder_t, len_coder_t >, tdc::lfs::LFS2BSTCompressor< literal_coder_t, len_coder_t >, tdc::RePairCompressor< coder_t >, tdc::LZ78UCompressor< strategy_t, ref_coder_t >, tdc::LZ78Compressor< coder_t, dict_t >, tdc::LCPCompressor< coder_t, strategy_t, dec_t, text_t >, tdc::LZSSLCPCompressor< coder_t, text_t >, tdc::LZSSSlidingWindowCompressor< coder_t >, tdc::LZWCompressor< coder_t, dict_t >, tdc::lfs::LFSCompressor< comp_strategy_t, coding_strat_t >, tdc::ChainCompressor, tdc::MTFCompressor, tdc::EspCompressor< slp_coder_t, ipd_t >, tdc::RunLengthEncoder, tdc::BWTCompressor< text_t >, tdc::NoopCompressor, and tdc::LiteralEncoder< coder_t >.
|
default |
|
default |