24 template <
typename T>
class Range {
30 const T &
min()
const {
return m_min; }
33 const T &
max()
const {
return m_max; }
38 std::stringstream stream;
39 stream <<
"Range{ " << m_min <<
", " << m_max <<
" }";
50 std::ostream& operator<<(std::ostream& os, const Range<T> &range)
52 return os << range.toString();
Class describing a range of values for a given type T The range boudaries for both minimum and maximu...
Definition: Range.h:24
Definition: Application.h:19
const T & max() const
Get the maximum value of the range
Definition: Range.h:33
const T & min() const
Get the minimum value of the range
Definition: Range.h:30
Range(const T &min, const T &max)
Constructor
Definition: Range.h:27
std::string toString() const
Get the range as string
Definition: Range.h:36