/* * ContinuousParameter.hpp * * Created on: Sep 30, 2011 * Author: heber */ #ifndef CONTINUOUSPARAMETER_HPP_ #define CONTINUOUSPARAMETER_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include "ContinuousValue.hpp" #include "ParameterInterface.hpp" /** This class encapsulates a clonable, continuous value. * */ template class ContinuousParameter : public ParameterInterface, public ContinuousValue { public: ContinuousParameter(const std::string &_name); ContinuousParameter(const std::string &_name, const T &_value); ContinuousParameter(const std::string &_name, const range &_ValidRange); ContinuousParameter(const std::string &_name, const range &_ValidRange, const T &_value); virtual ~ContinuousParameter(); // comparator bool operator==(const ContinuousParameter &_instance) const; bool operator!=(const ContinuousParameter &_instance) const { return !((*this)==(_instance)); } ParameterInterface* clone() const; private: ContinuousParameter(); }; #include "ContinuousParameter_impl.hpp" #endif /* CONTINUOUSPARAMETER_HPP_ */