SourceXtractorPlusPlus
0.14
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
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
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
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
SplitSourcesCriteria.h
SourceXtractor::SourceId
Definition:
SourceId.h:31
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
Generated by
1.8.5