tudocomp
– The TU Dortmund Compression Framework
tdc::SLECoder::Encoder Class Reference

#include <SLECoder.hpp>

Inheritance diagram for tdc::SLECoder::Encoder:
tdc::Encoder tdc::Algorithm

Public Member Functions

template<typename literals_t >
 Encoder (Env &&env, std::shared_ptr< BitOStream > out, literals_t &&literals)
 
template<typename literals_t >
 Encoder (Env &&env, Output &out, literals_t &&literals)
 
 ~Encoder ()
 
template<typename value_t >
void encode (value_t v, const LiteralRange &)
 
template<typename value_t >
void encode (value_t v, const Range &r)
 
template<typename value_t >
void encode (value_t v, const MinDistributedRange &r)
 
template<typename value_t >
void encode (value_t v, const BitRange &)
 
- Public Member Functions inherited from tdc::Encoder
template<typename literals_t >
 Encoder (Env &&env, std::shared_ptr< BitOStream > out, literals_t &&literals)
 Constructor. More...
 
template<typename literals_t >
 Encoder (Env &&env, Output &out, literals_t &&literals)
 Convenience constructor. More...
 
template<typename value_t >
void encode (value_t v, const Range &r)
 Encodes an arbitrary-range integer value. More...
 
template<typename value_t >
void encode (value_t v, const BitRange &r)
 Encodes a bit. More...
 
const std::shared_ptr< BitOStream > & stream ()
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from tdc::Encoder
std::shared_ptr< BitOStreamm_out
 The underlying bit output stream. More...
 

Detailed Description

Definition at line 44 of file SLECoder.hpp.

Constructor & Destructor Documentation

◆ Encoder() [1/2]

template<typename literals_t >
tdc::SLECoder::Encoder::Encoder ( Env &&  env,
std::shared_ptr< BitOStream out,
literals_t &&  literals 
)
inline

Definition at line 80 of file SLECoder.hpp.

◆ Encoder() [2/2]

template<typename literals_t >
tdc::SLECoder::Encoder::Encoder ( Env &&  env,
Output out,
literals_t &&  literals 
)
inline

Definition at line 169 of file SLECoder.hpp.

◆ ~Encoder()

tdc::SLECoder::Encoder::~Encoder ( )
inline

Definition at line 173 of file SLECoder.hpp.

Member Function Documentation

◆ encode() [1/4]

template<typename value_t >
void tdc::SLECoder::Encoder::encode ( value_t  v,
const LiteralRange  
)
inline

Definition at line 252 of file SLECoder.hpp.

◆ encode() [2/4]

template<typename value_t >
void tdc::SLECoder::Encoder::encode ( value_t  v,
const Range r 
)
inline

Definition at line 272 of file SLECoder.hpp.

◆ encode() [3/4]

template<typename value_t >
void tdc::SLECoder::Encoder::encode ( value_t  v,
const MinDistributedRange r 
)
inline

Definition at line 278 of file SLECoder.hpp.

◆ encode() [4/4]

template<typename value_t >
void tdc::SLECoder::Encoder::encode ( value_t  v,
const BitRange  
)
inline

Definition at line 305 of file SLECoder.hpp.


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