/* * GenericValidators.hpp * * Created on: May 10, 2012 * Author: heber */ #ifndef GENERICVALIDATORS_HPP_ #define GENERICVALIDATORS_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "Parameters/Validators/Validator.hpp" /** This validator checks whether the given value is positive. */ template class PositiveValidator : public Validator { bool isValid(const T & _value) const; Validator* clone() const; bool operator==(const Validator &_instance) const; }; /** This validator checks whether the given value is not zero. */ template class NotZeroValidator : public Validator { bool isValid(const T & _value) const; Validator* clone() const; bool operator==(const Validator &_instance) const; }; /** This validator checks whether the given value is non-negative. */ template class NonNegativeValidator : public Validator { bool isValid(const T & _value) const; Validator* clone() const; bool operator==(const Validator &_instance) const; }; /** This validator checks whether the given value is negative. */ template class NegativeValidator : public Validator { bool isValid(const T & _value) const; Validator* clone() const; bool operator==(const Validator &_instance) const; }; #include "GenericValidators_impl.hpp" #endif /* GENERICVALIDATORS_HPP_ */