SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
23namespace ModelFitting {
24
25template <typename DoubleIter>
26void EngineParameterManager::getEngineValues(DoubleIter output_iter) const {
27 for (auto& parameter : m_parameters) {
28 *(output_iter++) = parameter->getEngineValue();
29 }
30}
31
32template <typename DoubleIter>
33void 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