1 /** Copyright © 2019 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université
3 * This library is free software; you can redistribute it and/or modify it under
4 * the terms of the GNU Lesser General Public License as published by the Free
5 * Software Foundation; either version 3.0 of the License, or (at your option)
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 * @file EngineParameterManager.icpp
19 * @date August 14, 2015
20 * @author Nikolaos Apostolakos
23 namespace ModelFitting {
25 template <typename DoubleIter>
26 void EngineParameterManager::getEngineValues(DoubleIter output_iter) const {
27 for (auto& parameter : m_parameters) {
28 *(output_iter++) = parameter->getEngineValue();
32 template <typename DoubleIter>
33 void EngineParameterManager::updateEngineValues(DoubleIter new_values_iter) {
34 for (auto& parameter : m_parameters) {
35 parameter->setEngineValue(*(new_values_iter++));
39 } // end of namespace ModelFitting