SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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 */
DeblendStepConfig.h
Elements::Exception
Euclid::Configuration::Configuration
Euclid::Configuration::Configuration::getCurrentState
State & getCurrentState()
SourceXtractor::DeblendStepConfig::getSteps
std::vector< std::shared_ptr< DeblendStep > > getSteps(std::shared_ptr< SourceFactory > source_factory) const
Definition
DeblendStepConfig.cpp:36
SourceXtractor::DeblendStepConfig::addDeblendStepCreator
void addDeblendStepCreator(DeblendStepCreator step_creator)
Definition
DeblendStepConfig.cpp:29
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::function
std::move
T move(T... args)
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0