SourceXtractorPlusPlus
0.13
Please provide a description of the project.
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
SourceXtractor::SplitSourcesCriteria::shouldGroup
virtual bool shouldGroup(const SourceInterface &first, const SourceInterface &second) const override
Determines if the two sources should be grouped together.
Definition:
SplitSourcesCriteria.cpp:29
SourceXtractor::SourceId
Definition:
SourceId.h:31
second
constexpr double second
SourceXtractor
Definition:
Aperture.h:30
SplitSourcesCriteria.h
SourceXtractor::SourceInterface::getProperty
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:57
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
Generated by
1.8.20