SourceXtractorPlusPlus  0.15
Please provide a description of the project.
EngineParameterManager.icpp
Go to the documentation of this file.
1 /** Copyright © 2019 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université
2  *
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)
6  * any later version.
7  *
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
11  * details.
12  *
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
16  */
17 /**
18  * @file EngineParameterManager.icpp
19  * @date August 14, 2015
20  * @author Nikolaos Apostolakos
21  */
22 
23 namespace ModelFitting {
24 
25 template <typename DoubleIter>
26 void EngineParameterManager::getEngineValues(DoubleIter output_iter) const {
27  for (auto& parameter : m_parameters) {
28  *(output_iter++) = parameter->getEngineValue();
29  }
30 }
31 
32 template <typename DoubleIter>
33 void EngineParameterManager::updateEngineValues(DoubleIter new_values_iter) {
34  for (auto& parameter : m_parameters) {
35  parameter->setEngineValue(*(new_values_iter++));
36  }
37 }
38 
39 } // end of namespace ModelFitting