iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::ValidValuesSpecRange< T > Class Template Reference

#include <nrt/Core/Typing/ValidValuesSpec.H>

template<class T>
class nrt::ValidValuesSpecRange< T >

Range-based valid values spec, bounds are included.

Definition at line 131 of file ValidValuesSpec.H.

Inheritance diagram for nrt::ValidValuesSpecRange< T >:
nrt::ValidValuesSpecBase< T >

Public Member Functions

 ValidValuesSpecRange ()=delete
 No default constructor, always need to provide a range.
 ValidValuesSpecRange (nrt::Range< T > const &valid_range)
 Construct from an nrt::Range of valid values (convention: bounds are inclusive)
virtual ~ValidValuesSpecRange ()
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 std::string const str () const
 Convert to a readable string. More...
- Public Member Functions inherited from nrt::ValidValuesSpecBase< T >
 ValidValuesSpecBase ()
 Construct, for the base class this is a no-op. More...
virtual ~ValidValuesSpecBase ()

Protected Attributes

nrt::Range< T > const itsValidRange

Member Function Documentation

template<class T >
std::string const nrt::ValidValuesSpecRange< T >::str ( ) const

Convert to a readable string.

Returns Range:[MIN-MAX] where MIN and MAX are replaced by the actual range bounds.

Implements nrt::ValidValuesSpecBase< T >.

Definition at line 120 of file ValidValuesSpecImpl.H.

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