106            : m_min{ std::move(
min) }
 
  107            , m_max{ std::move(
max) }
 
  111        constexpr const T &
min()
 const 
  117        constexpr const T &
max()
 const 
  129            return value >= m_min && value <= m_max;
 
  135            return m_min == other.m_min && m_max == other.m_max;
 
  147            std::stringstream stream;
 
  148            stream << 
"{ " << m_min << 
", " << m_max << 
" }";
 
Class describing a range of values for a given type T
Definition: Range.h:102
 
constexpr const T & min() const
Get the minimum value of the range
Definition: Range.h:111
 
bool operator!=(const Range< T > &other) const
Comparison operator
Definition: Range.h:139
 
constexpr Range(T min, T max)
Constructor
Definition: Range.h:105
 
constexpr bool isInRange(const T &value) const
Check if the value is in range
Definition: Range.h:127
 
bool operator==(const Range< T > &other) const
Comparison operator
Definition: Range.h:133
 
std::string toString() const
Get the range as string
Definition: Range.h:145
 
constexpr const T & max() const
Get the maximum value of the range
Definition: Range.h:117
 
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99
 
std::ostream & operator<<(std::ostream &stream, const Array2D< T > &array)
Serialize array information to a stream
Definition: Array2D.h:214