Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
apra::RangeValidator< T > Class Template Reference

#include <PropertyValidators.h>

Inheritance diagram for apra::RangeValidator< T >:
Inheritance graph
Collaboration diagram for apra::RangeValidator< T >:
Collaboration graph

Public Member Functions

 RangeValidator (T min, T max, bool minInclusive=true, bool maxInclusive=true)
 
ValidationResult validate (const std::string &propName, const ScalarPropertyValue &value) const override
 
std::string describe () const override
 
- Public Member Functions inherited from apra::PropertyValidator
virtual ~PropertyValidator ()=default
 

Private Attributes

min_
 
max_
 
bool minInclusive_
 
bool maxInclusive_
 

Constructor & Destructor Documentation

◆ RangeValidator()

template<typename T >
apra::RangeValidator< T >::RangeValidator ( T min,
T max,
bool minInclusive = true,
bool maxInclusive = true )
inline

Member Function Documentation

◆ describe()

template<typename T >
std::string apra::RangeValidator< T >::describe ( ) const
inlineoverridevirtual

◆ validate()

template<typename T >
ValidationResult apra::RangeValidator< T >::validate ( const std::string & propName,
const ScalarPropertyValue & value ) const
inlineoverridevirtual

Implements apra::PropertyValidator.

Here is the call graph for this function:

Member Data Documentation

◆ max_

template<typename T >
T apra::RangeValidator< T >::max_
private

◆ maxInclusive_

template<typename T >
bool apra::RangeValidator< T >::maxInclusive_
private

◆ min_

template<typename T >
T apra::RangeValidator< T >::min_
private

◆ minInclusive_

template<typename T >
bool apra::RangeValidator< T >::minInclusive_
private

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