JeVois  1.0
JeVois Smart Embedded Machine Vision Toolkit

#include <jevois/Component/ValidValuesSpec.H>

template<typename T>
class jevois::ValidValuesSpecRange< T >

Range-based valid values spec, bounds are included.

Definition at line 113 of file ValidValuesSpec.H.

Inheritance diagram for jevois::ValidValuesSpecRange< T >:
Collaboration diagram for jevois::ValidValuesSpecRange< T >:

Public Member Functions

 ValidValuesSpecRange ()=delete
 No default constructor, always need to provide a range. More...
 
 ValidValuesSpecRange (Range< T > const &valid_range)
 Construct from a Range of valid values (convention: bounds are inclusive) More...
 
virtual ~ValidValuesSpecRange ()
 Destructor. More...
 
virtual bool checkValueValidity (T const &val) const
 Check whether a proposed value is valid, returns true iff value is in our range (bounds included) More...
 
virtual std::string const str () const
 Convert to a readable string: Range:[MIN-MAX] where MIN and MAX are replaced by the actual range bounds. More...
 
- Public Member Functions inherited from jevois::ValidValuesSpecBase< T >
 ValidValuesSpecBase ()
 Construct, for the base class this is a no-op. More...
 
virtual ~ValidValuesSpecBase ()
 Destructor. More...
 

Protected Attributes

Range< T > const itsValidRange
 Our range of valid values. More...
 

Constructor & Destructor Documentation

template<typename T >
jevois::ValidValuesSpecRange< T >::ValidValuesSpecRange ( )
delete

No default constructor, always need to provide a range.

template<typename T >
jevois::ValidValuesSpecRange< T >::ValidValuesSpecRange ( jevois::Range< T > const &  valid_range)
inlineexplicit

Construct from a Range of valid values (convention: bounds are inclusive)

Definition at line 88 of file ValidValuesSpecImpl.H.

template<typename T >
jevois::ValidValuesSpecRange< T >::~ValidValuesSpecRange ( )
inlinevirtual

Destructor.

Definition at line 93 of file ValidValuesSpecImpl.H.

Member Function Documentation

template<typename T >
bool jevois::ValidValuesSpecRange< T >::checkValueValidity ( T const &  val) const
inlinevirtual

Check whether a proposed value is valid, returns true iff value is in our range (bounds included)

Implements jevois::ValidValuesSpecBase< T >.

Definition at line 97 of file ValidValuesSpecImpl.H.

template<typename T >
std::string const jevois::ValidValuesSpecRange< T >::str ( ) const
inlinevirtual

Convert to a readable string: Range:[MIN-MAX] where MIN and MAX are replaced by the actual range bounds.

Implements jevois::ValidValuesSpecBase< T >.

Definition at line 103 of file ValidValuesSpecImpl.H.

Member Data Documentation

template<typename T >
Range<T> const jevois::ValidValuesSpecRange< T >::itsValidRange
protected

Our range of valid values.

Definition at line 132 of file ValidValuesSpec.H.


The documentation for this class was generated from the following files: