tudocomp
– The TU Dortmund Compression Framework
tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t > Class Template Reference

#include <StreamingStrategy.hpp>

Inheritance diagram for tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >:
tdc::Algorithm

Public Member Functions

 Compression (Env &&env, Env &&ref_env, std::shared_ptr< BitOStream > out)
 
void encode_ref (size_t ref, Range ref_range)
 
void encode_char (uliteral_t c)
 
void encode_str (View str)
 
void encode_sep (bool val)
 
- 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
 

Detailed Description

template<typename string_coder_t>
template<typename ref_coder_t>
class tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >

Definition at line 20 of file StreamingStrategy.hpp.

Constructor & Destructor Documentation

◆ Compression()

template<typename string_coder_t >
template<typename ref_coder_t >
tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >::Compression ( Env &&  env,
Env &&  ref_env,
std::shared_ptr< BitOStream out 
)
inline

Definition at line 27 of file StreamingStrategy.hpp.

Member Function Documentation

◆ encode_char()

template<typename string_coder_t >
template<typename ref_coder_t >
void tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >::encode_char ( uliteral_t  c)
inline

Definition at line 40 of file StreamingStrategy.hpp.

◆ encode_ref()

template<typename string_coder_t >
template<typename ref_coder_t >
void tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >::encode_ref ( size_t  ref,
Range  ref_range 
)
inline

Definition at line 35 of file StreamingStrategy.hpp.

◆ encode_sep()

template<typename string_coder_t >
template<typename ref_coder_t >
void tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >::encode_sep ( bool  val)
inline

Definition at line 52 of file StreamingStrategy.hpp.

◆ encode_str()

template<typename string_coder_t >
template<typename ref_coder_t >
void tdc::lz78u::StreamingStrategy< string_coder_t >::Compression< ref_coder_t >::encode_str ( View  str)
inline

Definition at line 45 of file StreamingStrategy.hpp.


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