/* * DiscreteParameter_impl.hpp * * Created on: Sep 30, 2011 * Author: heber */ #ifndef DISCRETEPARAMETER_IMPL_HPP_ #define DISCRETEPARAMETER_IMPL_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "DiscreteParameter.hpp" #include /** Constructor for class DiscreteParameter. * */ template DiscreteParameter::DiscreteParameter() {}; /** Constructor for class DiscreteParameter. * * @param _ValidValues valid values for this DiscreteValue */ template DiscreteParameter::DiscreteParameter(const std::vector &_ValidValues) : DiscreteValue(_ValidValues) {}; /** Destructor for class DiscreteParameter. * */ template DiscreteParameter::~DiscreteParameter() {}; /** Creates a clone of this Parameter instance. * * @return cloned instance */ template Parameter* DiscreteParameter::clone() const { DiscreteParameter *instance = new DiscreteParameter(DiscreteValue::getValidValues()); instance->setValue(DiscreteValue::getValue()); return instance; } #endif /* DISCRETEPARAMETER_IMPL_HPP_ */