JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
76 explicit StepRange(T
const mini, T
const stepi, T
const maxi);
107 T
const &
min()
const;
110 T
const &
step()
const;
113 T
const &
max()
const;
122 T itsMin, itsStep, itsMax;
131 template <
typename T>
132 std::ostream & operator<<(std::ostream & out,
StepRange<T> const & r);
136 template <
typename T>
137 std::istream & operator>>(std::istream & in,
StepRange<T> & r);
151 template <
typename T>
156 template <
typename T>
162 #include <jevois/Types/details/StepRangeImpl.H>
void paramStringToVal(std::string const &valstring, T &result)
Machine-readable conversion from string to T, for use in jevois::Parameter.
const T & step() const
Return the step value.
A generic range class with a step.
void paramValToString(T const &val, std::string &result)
Machine-readable conversion of T to a string, for use in jevois::Parameter.
const T & max() const
Return the maximum value.
StepRange()
Default constructor, range is [0 .. (0) .. 0].
const T & min() const
Return the minimum value.
bool empty() const
Return whether min() == max()
StepRange< T > & operator=(StepRange< T > const &other)=default
Assignment.
bool isValueValid(T const val) const
Return true if a value is valid (i.e., it is min, min+step, min+step*2, ... or max)