tudocomp
– The TU Dortmund Compression Framework
tdc::LZ78Compressor< coder_t, dict_t > Class Template Reference

#include <LZ78Compressor.hpp>

Inheritance diagram for tdc::LZ78Compressor< coder_t, dict_t >:
tdc::Compressor tdc::Algorithm

Public Member Functions

 LZ78Compressor (Env &&env)
 Maximum dictionary size before reset, 0 == unlimited. More...
 
virtual void compress (Input &input, Output &out) override
 Compress the given input to the given output. More...
 
virtual void decompress (Input &input, Output &output) overridefinal
 Decompress the given input to the given output. More...
 
- Public Member Functions inherited from tdc::Compressor
virtual ~Compressor ()=default
 
 Compressor (Compressor const &)=default
 
 Compressor (Compressor &&)=default
 
Compressoroperator= (Compressor const &)=default
 
Compressoroperator= (Compressor &&)=default
 
 Compressor (Env &&env)
 Construct the compressor with an environment. More...
 
- Public Member Functions inherited from tdc::Algorithm
virtual ~Algorithm ()=default
 
 Algorithm (Algorithm const &)=default
 
 Algorithm (Algorithm &&)=default
 
Algorithmoperator= (Algorithm const &)=default
 
Algorithmoperator= (Algorithm &&)=default
 
 Algorithm (Env &&env)
 Instantiates an algorithm in the specified environment. More...
 
Envenv ()
 Provides access to the environment that the algorithm works in. More...
 
const Envenv () const
 

Static Public Member Functions

static Meta meta ()
 

Detailed Description

template<typename coder_t, typename dict_t>
class tdc::LZ78Compressor< coder_t, dict_t >

Definition at line 43 of file LZ78Compressor.hpp.

Constructor & Destructor Documentation

template<typename coder_t , typename dict_t >
tdc::LZ78Compressor< coder_t, dict_t >::LZ78Compressor ( Env &&  env)
inline

Maximum dictionary size before reset, 0 == unlimited.

Definition at line 51 of file LZ78Compressor.hpp.

Member Function Documentation

template<typename coder_t , typename dict_t >
virtual void tdc::LZ78Compressor< coder_t, dict_t >::compress ( Input input,
Output output 
)
inlineoverridevirtual

Compress the given input to the given output.

Parameters
inputThe input.
outputThe output.

Implements tdc::Compressor.

Definition at line 64 of file LZ78Compressor.hpp.

template<typename coder_t , typename dict_t >
virtual void tdc::LZ78Compressor< coder_t, dict_t >::decompress ( Input input,
Output output 
)
inlinefinaloverridevirtual

Decompress the given input to the given output.

Parameters
inputThe input.
outputThe output.

Implements tdc::Compressor.

Definition at line 142 of file LZ78Compressor.hpp.

template<typename coder_t , typename dict_t >
static Meta tdc::LZ78Compressor< coder_t, dict_t >::meta ( )
inlinestatic

Definition at line 56 of file LZ78Compressor.hpp.


The documentation for this class was generated from the following file: