tudocomp
– The TU Dortmund Compression Framework
tdc::MinDistributedRange Class Reference

Represents a range of positive integers that tend to be distributed towards the minimum. More...

#include <Range.hpp>

Inheritance diagram for tdc::MinDistributedRange:
tdc::Range

Public Member Functions

constexpr MinDistributedRange (size_t max)
 Constructs a range from zero to a maximum value. More...
 
constexpr MinDistributedRange (size_t min, size_t max)
 Constructs a range. More...
 
- Public Member Functions inherited from tdc::Range
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...
 

Detailed Description

Represents a range of positive integers that tend to be distributed towards the minimum.

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.

Definition at line 56 of file Range.hpp.

Constructor & Destructor Documentation

◆ MinDistributedRange() [1/2]

constexpr tdc::MinDistributedRange::MinDistributedRange ( size_t  max)
inline

Constructs a range from zero to a maximum value.

Parameters
maxthe range's maximum value

Definition at line 60 of file Range.hpp.

◆ MinDistributedRange() [2/2]

constexpr tdc::MinDistributedRange::MinDistributedRange ( size_t  min,
size_t  max 
)
inline

Constructs a range.

Parameters
minthe range's minimum value
maxthe range's maximum value

Definition at line 66 of file Range.hpp.


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