SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Grouping
SplitSourcesCriteria.cpp
Go to the documentation of this file.
1
17
/*
18
* SplitSourcesCriteria.cpp
19
*
20
* Created on: Apr 26, 2017
21
* Author: mschefer
22
*/
23
24
#include "
SEImplementation/Grouping/SplitSourcesCriteria.h
"
25
#include "
SEImplementation/Property/SourceId.h
"
26
27
namespace
SourceXtractor
{
28
29
bool
SplitSourcesCriteria::shouldGroup
(
const
SourceInterface
&
first
,
const
SourceInterface
& second)
const
{
30
auto
first_id
=
first
.getProperty<
SourceId
>().getDetectionId();
31
auto
second_id
= second.getProperty<
SourceId
>().getDetectionId();
32
33
return
first_id
==
second_id
;
34
}
35
36
}
// SourceXtractor namespace
37
SourceId.h
SplitSourcesCriteria.h
SourceXtractor::SourceId
Definition
SourceId.h:32
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
SourceXtractor::SplitSourcesCriteria::shouldGroup
bool shouldGroup(const SourceInterface &first, const SourceInterface &second) const override
Determines if the two sources should be grouped together.
Definition
SplitSourcesCriteria.cpp:29
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0