SourceXtractorPlusPlus
0.10
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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 >
std::function
SourceXtractor::DeblendStepConfig::m_deblend_step_creators
std::vector< DeblendStepCreator > m_deblend_step_creators
Definition:
DeblendStepConfig.h:51
std::move
T move(T...args)
DeblendStepConfig.h
SourceXtractor::DeblendStepConfig::getSteps
std::vector< std::shared_ptr< DeblendStep > > getSteps(std::shared_ptr< SourceFactory > source_factory) const
Definition:
DeblendStepConfig.cpp:36
std::vector
STL class.
Elements::Exception
SourceXtractor::DeblendStepConfig::addDeblendStepCreator
void addDeblendStepCreator(DeblendStepCreator step_creator)
Definition:
DeblendStepConfig.cpp:29
SourceXtractor::DeblendStepConfig::DeblendStepConfig
DeblendStepConfig(long manager_id)
Definition:
DeblendStepConfig.cpp:26
std::vector::emplace_back
T emplace_back(T...args)
Generated by
1.8.5