4#include <initializer_list>
17 inline T
map(
const T &n)
const {
44 if (range.contains(n))
Simple range class representing some range in some data type.
Definition ranges.hh:14
unsigned int upper
Definition ranges.hh:32
unsigned int lower
Definition ranges.hh:31
bool contains(const T &n) const
Checks, if the given value lays within the range.
Definition ranges.hh:26
T map(const T &n) const
Maps a given value onto the range.
Definition ranges.hh:17
Implements a set of possibly overlapping ranges.
Definition ranges.hh:39
bool contains(const T &n) const
Checks, if the given value lays within the range.
Definition ranges.hh:42
QSet< Range< T > > ranges
The set of ranges.
Definition ranges.hh:52