JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
87 explicit Range(T
const mini, T
const maxi);
108 template <
typename U>
118 T
const &
min()
const;
121 T
const &
max()
const;
143 template <
typename T>
148 template <
typename T>
149 std::ostream & operator<<(std::ostream & out,
Range<T> const & r);
153 template <
typename T>
154 std::istream & operator>>(std::istream & in,
Range<T> & r);
168 template <
typename T>
173 template <
typename T>
178 template <
typename T>
183 template <
typename T>
188 template <
typename T>
193 template <
typename T>
198 template <
typename T>
203 template <
typename T>
208 template <
typename T>
213 template <
typename T>
218 template <
typename T>
223 template <
typename T>
228 template <
typename T>
233 template <
typename T>
239 #include <jevois/Types/details/RangeImpl.H>
void paramStringToVal(std::string const &valstring, T &result)
Machine-readable conversion from string to T, for use in jevois::Parameter.
const T & min() const
Return the minimum value.
bool empty() const
Return whether min() == max()
bool contains(T const &val) const
Return true if val is within [min ... max].
void paramValToString(T const &val, std::string &result)
Machine-readable conversion of T to a string, for use in jevois::Parameter.
Range()
Default constructor, range is [0 .. 0].
void extend(T const val)
Extend the range, if needed, so that it includes val.
Range< T > & operator=(Range< T > const &other)=default
Assignment.
const T & max() const
Return the maximum value.