/* * VectorZeroOneComponentsValidator.hpp * * Created on: May 10, 2012 * Author: heber */ #ifndef VECTORZEROONECOMPONENTSVALIDATOR_HPP_ #define VECTORZEROONECOMPONENTSVALIDATOR_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "LinearAlgebra/Vector.hpp" #include "Parameters/Validators/Validator.hpp" /** This validator checks whether the given \ref Vector's components are * all in [0,1]. */ class VectorZeroOneComponentsValidator : public Validator { bool isValid(const Vector & _value) const; bool operator==(const Validator &_instance) const; Validator< Vector >* clone() const; }; #endif /* VECTORZEROONECOMPONENTSVALIDATOR_HPP_ */