25 : m_min(0), m_max(max) {
32 : m_min(min), m_max(max) {
37 inline size_t min()
const {
return m_min; }
41 inline size_t max()
const {
return m_max; }
47 inline size_t delta()
const {
return m_max - m_min; }
82 template<
size_t t_min,
size_t t_max>
Represents a generic range of positive integers.
Contains the text compression and encoding framework.
size_t delta() const
Yields the difference between the range's minimum and maximum values.
Represents the range of valid tdc::uliteral_t values.
Represents a compiler-level fixed range.
constexpr auto bit_r
Global predefined range for bits (0 or 1).
constexpr Range(size_t min, size_t max)
Constructs a range.
constexpr auto size_r
Global predefined range for the size_t.
uint8_t uliteral_t
Type to represent signed single literals.
constexpr Range(size_t max)
Constructs a range from zero to a maximum value.
Represents a range of valid values for a certain type.
Represents a range of positive integers that tend to be distributed towards the minimum.
constexpr FixedRange()
Constructs a range with the fixed values.
size_t max() const
Yields the range's maximum value.
FixedRange< 0, 1 > BitRange
Represents the range of bit values, ie 0 to 1
size_t min() const
Yields the range's minimum value.
constexpr auto literal_r
Global predefined reange for literals.
fast_t< len_compact_t > len_t
Type to represent an length value.
constexpr auto uliteral_r
Represents the range of valid tdc::len_t values.
constexpr auto len_r
Global predefined range for len_t.
constexpr TypeRange()
Constructs a range for the type.
constexpr MinDistributedRange(size_t min, size_t max)
Constructs a range.
constexpr MinDistributedRange(size_t max)
Constructs a range from zero to a maximum value.