JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
26 #include <boost/regex.hpp>
61 virtual std::string
const str()
const = 0;
81 virtual std::string
const str()
const;
104 virtual std::string
const str()
const;
112 template <
typename T>
129 virtual std::string
const str()
const;
137 template <
typename T>
154 virtual std::string
const str()
const;
174 template <
typename T>
192 virtual std::string
const str()
const;
203 #include <jevois/Component/details/ValidValuesSpecImpl.H>
ValidValuesSpecNone()
Construct with no specification, any value that T can take goes.
virtual const std::string str() const
Convert to a readable string: StepRange:[MIN-STEP-MAX] where MIN, STEP and MAX are replaced by actual...
virtual bool checkValueValidity(T const &val) const =0
Check whether a proposed value is valid, return true if it is.
virtual const std::string str() const
Convert to a readable string: Range:[MIN-MAX] where MIN and MAX are replaced by the actual range boun...
Open/None valid values spec, anything that T can take is valid.
virtual const std::string str() const
Convert to a readable string.
virtual const std::string str() const =0
Convert the specification of valid values to a readable string.
virtual bool checkValueValidity(T const &val) const
Check whether a proposed value is valid, returns true iff value is in our list.
Range-based valid values spec, bounds are included.
const std::vector< T > itsValidList
Our list of valid values.
virtual const std::string str() const
Convert to a readable string.
A generic range class with a step.
virtual ~ValidValuesSpecList()
Destructor.
StepRange-based valid values spec, bounds are included.
const boost::regex itsValidRegex
Th eregex that defines our valid values.
ValidValuesSpecRange()=delete
No default constructor, always need to provide a range.
virtual bool checkValueValidity(T const &val) const
Check whether a proposed value is valid, returns true iff value is in our range (bounds included)
virtual ~ValidValuesSpecStepRange()
Destructor.
virtual bool checkValueValidity(T const &val) const
Check whether a proposed value is valid, returns true iff value is a match against our regex.
const StepRange< T > itsValidStepRange
Our step-range of valid values.
Base class for specifying a set of valid values for a type.
Regex-based valid values spec, everything that is a match to the regex is considered valid.
Finite list valid values spec, everything listed at construction is valid, anything else is not.
ValidValuesSpecStepRange()=delete
No default constructor, always need to provide a range.
ValidValuesSpecList()=delete
No default constructor, always need to provide a list.
virtual bool checkValueValidity(T const &val) const
Check whether a proposed value is valid, here always returns true.
virtual bool checkValueValidity(T const &val) const
Check whether a proposed value is valid, returns true iff value is in our range (bounds included)
virtual ~ValidValuesSpecNone()
Destructor.
virtual ~ValidValuesSpecRange()
Destructor.
virtual ~ValidValuesSpecRegex()
Destructor.
const Range< T > itsValidRange
Our range of valid values.
virtual ~ValidValuesSpecBase()
Destructor.
virtual const std::string str() const
Convert to a readable string.
ValidValuesSpecBase()
Construct, for the base class this is a no-op.
ValidValuesSpecRegex()=delete
No default constructor, always need to provide a regex.