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

Encodes data to a stream of Elias-Delta codes. More...

#include <EliasDeltaCoder.hpp>

Inheritance diagram for tdc::EliasDeltaCoder::Encoder:
tdc::Encoder tdc::Algorithm

Public Member Functions

template<typename value_t >
void encode (value_t v, const Range &)
 
- 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

Encodes data to a stream of Elias-Delta codes.

Definition at line 21 of file EliasDeltaCoder.hpp.

Member Function Documentation

◆ encode()

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

Definition at line 27 of file EliasDeltaCoder.hpp.


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