SourceXtractorPlusPlus  0.10
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EngineParameterManager.icpp
Go to the documentation of this file.
1 
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
void getEngineValues(DoubleIter output_iter) const
Returns the engine values of the managed parameters.
void updateEngineValues(DoubleIter new_values_iter)
Updates the managed parameters with the given engine values.
std::vector< std::shared_ptr< EngineParameter > > m_parameters