SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
src
lib
Configuration
DeblendStepConfig.cpp
Go to the documentation of this file.
1
17
/*
18
* @file DeblendStepConfig.cpp
19
* @author nikoapos
20
*/
21
22
#include <
SEImplementation/Configuration/DeblendStepConfig.h
>
23
24
namespace
SourceXtractor
{
25
26
DeblendStepConfig::DeblendStepConfig
(
long
manager_id) :
Configuration
(manager_id) {
27
}
28
29
void
DeblendStepConfig::addDeblendStepCreator
(
DeblendStepCreator
step_creator) {
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
36
std::vector<std::shared_ptr<DeblendStep>
>
DeblendStepConfig::getSteps
(
std::shared_ptr<SourceFactory>
source_factory)
const
{
37
if
(
getCurrentState
() <
State::FINAL
) {
38
throw
Elements::Exception
() <<
"getSteps() call on not finalized DeblendStepConfg"
;
39
}
40
std::vector<std::shared_ptr<DeblendStep>
> result;
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::shared_ptr< SourceFactory >
SourceXtractor::DeblendStepConfig::addDeblendStepCreator
void addDeblendStepCreator(DeblendStepCreator step_creator)
Definition:
DeblendStepConfig.cpp:29
std::move
T move(T... args)
Euclid::Configuration::Configuration::getCurrentState
State & getCurrentState()
std::vector
STL class.
std::function
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::DeblendStepConfig::getSteps
std::vector< std::shared_ptr< DeblendStep > > getSteps(std::shared_ptr< SourceFactory > source_factory) const
Definition:
DeblendStepConfig.cpp:36
Euclid::Configuration::Configuration::State::FINAL
@ FINAL
Elements::Exception
DeblendStepConfig.h
SourceXtractor::DeblendStepConfig::m_deblend_step_creators
std::vector< DeblendStepCreator > m_deblend_step_creators
Definition:
DeblendStepConfig.h:51
SourceXtractor::DeblendStepConfig::DeblendStepConfig
DeblendStepConfig(long manager_id)
Definition:
DeblendStepConfig.cpp:26
std::vector::emplace_back
T emplace_back(T... args)
Euclid::Configuration::Configuration
Generated by
1.8.20