/* * ContinuousParameter_impl.hpp * * Created on: Sep 30, 2011 * Author: heber */ #ifndef CONTINUOUSPARAMETER_IMPL_HPP_ #define CONTINUOUSPARAMETER_IMPL_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "ContinuousParameter.hpp" /** Constructor for class ContinuousParameter. * */ template ContinuousParameter::ContinuousParameter(const std::string &_name) : Parameter(_name) {}; /** Constructor for class ContinuousParameter. * * @param _name name of this parameter * @param _ValidRange valid range for this ContinuousValue */ template ContinuousParameter::ContinuousParameter(const std::string &_name, const range &_ValidRange) : Parameter(_name), ContinuousValue(_ValidRange) {}; /** Destructor for class ContinuousParameter. * */ template ContinuousParameter::~ContinuousParameter() {}; /** Creates a clone of this Parameter instance. * * @return cloned instance */ template Parameter* ContinuousParameter::clone() const { ContinuousParameter *instance = new ContinuousParameter(Parameter::getName(), ContinuousValue::getValidRange()); instance->setValue(ContinuousValue::getValue()); return instance; } #endif /* CONTINUOUSPARAMETER_IMPL_HPP_ */