tudocomp
– The TU Dortmund Compression Framework

Represents a generic range of positive integers. More...
#include <Range.hpp>
Public Member Functions  
constexpr  Range (size_t max) 
Constructs a range from zero to a maximum value. More...  
constexpr  Range (size_t min, size_t max) 
Constructs a range. More...  
size_t  min () const 
Yields the range's minimum value. More...  
size_t  max () const 
Yields the range's maximum value. More...  
size_t  delta () const 
Yields the difference between the range's minimum and maximum values. More...  
Represents a generic range of positive integers.
Ranges have a minimum and a maximum value. They are used as hints for a Encoder or Decoder for it to determine how to encode/decode certain values.
Correspondingly implemented coders can use this information to encode more efficiently, therefore it is advised to feed it ranges as precise as possible for every value to encode.

inline 

inline 

inline 

inline 

inline 