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