62 : m_min{ std::move(
min) }
63 , m_max{ std::move(
max) }
67 constexpr
const T &
min()
const
73 constexpr
const T &
max()
const
85 return value >= m_min && value <= m_max;
91 return m_min == other.m_min && m_max == other.m_max;
103 std::stringstream stream;
104 stream <<
"{ " << m_min <<
", " << m_max <<
" }";
Class describing a range of values for a given type T
Definition: Range.h:58
bool operator!=(const Range< T > &other) const
Comparison operator
Definition: Range.h:95
constexpr Range(T min, T max)
Constructor
Definition: Range.h:61
constexpr bool isInRange(const T &value) const
Check if the value is in range
Definition: Range.h:83
bool operator==(const Range< T > &other) const
Comparison operator
Definition: Range.h:89
constexpr const T & max() const
Get the maximum value of the range
Definition: Range.h:73
std::string toString() const
Get the range as string
Definition: Range.h:101
constexpr const T & min() const
Get the minimum value of the range
Definition: Range.h:67
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:55
std::ostream & operator<<(std::ostream &stream, const Array2D< T > &array)
Serialize array information to a stream
Definition: Array2D.h:170