SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DeblendStepConfig.cpp
Go to the documentation of this file.
1 
17 /*
18  * @file DeblendStepConfig.cpp
19  * @author nikoapos
20  */
21 
23 
24 namespace SourceXtractor {
25 
26 DeblendStepConfig::DeblendStepConfig(long manager_id) : Configuration(manager_id) {
27 }
28 
30  if (getCurrentState() >= State::FINAL) {
31  throw Elements::Exception() << "addDeblendStepCreator() call on finalized DeblendStepConfg";
32  }
33  m_deblend_step_creators.emplace_back(std::move(step_creator));
34 }
35 
37  if (getCurrentState() < State::FINAL) {
38  throw Elements::Exception() << "getSteps() call on not finalized DeblendStepConfg";
39  }
41  for (auto& creator : m_deblend_step_creators) {
42  result.emplace_back(creator(source_factory));
43  }
44  return result;
45 }
46 
47 } /* namespace SourceXtractor */
std::vector< DeblendStepCreator > m_deblend_step_creators
T move(T...args)
std::vector< std::shared_ptr< DeblendStep > > getSteps(std::shared_ptr< SourceFactory > source_factory) const
STL class.
void addDeblendStepCreator(DeblendStepCreator step_creator)
T emplace_back(T...args)