SourceXtractorPlusPlus
0.12
Please provide a description of the project.
SEFramework
src
lib
Pipeline
Deblending.cpp
Go to the documentation of this file.
1
23
#include "
SEFramework/Pipeline/Deblending.h
"
24
25
namespace
SourceXtractor
{
26
27
Deblending::Deblending
(
std::vector
<
std::shared_ptr<DeblendStep>
> deblend_steps)
28
: m_deblend_steps(
std
::
move
(deblend_steps)) {
29
}
30
31
void
Deblending::handleMessage
(
const
std::shared_ptr<SourceGroupInterface>
& group) {
32
33
// Applies every DeblendStep to the SourceGroup
34
for
(
auto
& step :
m_deblend_steps
) {
35
step->deblend(*group);
36
}
37
38
// If the SourceGroup still contains sources, we notify the observers
39
if
(group->begin() != group->end()) {
40
notifyObservers
(group);
41
}
42
}
43
44
}
// SEFramework namespace
std::shared_ptr
SourceXtractor::Deblending::handleMessage
virtual void handleMessage(const std::shared_ptr< SourceGroupInterface > &group) override
Handles a new SourceGroup, applies the DeblendSteps and then notifies the observers with the result...
Definition:
Deblending.cpp:31
SourceXtractor::Deblending::m_deblend_steps
std::vector< std::shared_ptr< DeblendStep > > m_deblend_steps
Definition:
Deblending.h:68
std
STL namespace.
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::Observable< std::shared_ptr< SourceGroupInterface > >::notifyObservers
void notifyObservers(const std::shared_ptr< SourceGroupInterface > &message) const
Definition:
Observable.h:71
SourceXtractor::Deblending::Deblending
Deblending(std::vector< std::shared_ptr< DeblendStep >> deblend_steps)
Constructor - takes a vector of DeblendStep to be applied, in order, to every SourceGroup.
Definition:
Deblending.cpp:27
std::move
T move(T... args)
Deblending.h
std::vector
STL class.
Generated by
1.8.14