tudocomp
– The TU Dortmund Compression Framework
BitCoder.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tudocomp/util.hpp>
4 #include <tudocomp/Coder.hpp>
5 
6 namespace tdc {
7 
13 class BitCoder : public Algorithm {
14 public:
15  inline static Meta meta() {
16  Meta m("coder", "bit", "Encoding using range-optimal bit widths");
17  return m;
18  }
19 
20  BitCoder() = delete;
21 
23  class Encoder : public tdc::Encoder {
24  public:
26  };
27 
29  class Decoder : public tdc::Decoder {
30  public:
32  };
33 };
34 
35 }
36 
Encoder(Env &&env, std::shared_ptr< BitOStream > out, literals_t &&literals)
Constructor.
Definition: Coder.hpp:29
Contains the text compression and encoding framework.
Definition: namespaces.hpp:11
Provides meta information about an Algorithm.
Definition: Meta.hpp:34
Defines data encoding to and decoding from a stream of binary integer representations.
Definition: BitCoder.hpp:13
static Meta meta()
Definition: BitCoder.hpp:15
Encodes data to a binary stream.
Definition: BitCoder.hpp:23
Decodes data from a binary stream.
Definition: BitCoder.hpp:29
BitCoder()=delete
Decoder(Env &&env, std::shared_ptr< BitIStream > in)
Constructor.
Definition: Coder.hpp:98
Base for data encoders.
Definition: Coder.hpp:14
Base for data decoders.
Definition: Coder.hpp:87
Interface for algorithms.
Definition: Algorithm.hpp:15