SourceXtractorPlusPlus
0.16
Please provide a description of the project.
SEImplementation
src
lib
Plugin
AssocMode
AssocModePartitionStep.cpp
Go to the documentation of this file.
1
18
#include "
SEImplementation/Plugin/AssocMode/AssocMode.h
"
19
#include "
SEImplementation/Plugin/AssocMode/AssocModePartitionStep.h
"
20
21
namespace
SourceXtractor
{
22
23
AssocModePartitionStep::AssocModePartitionStep
(
bool
match_required) : m_match_required(match_required) {
24
}
25
26
std::vector<std::shared_ptr<SourceInterface>
>
AssocModePartitionStep::partition
(
std::shared_ptr<SourceInterface>
source)
const
{
27
if
(source->getProperty<
AssocMode
>().
getMatch
() ^ !
m_match_required
) {
28
return
{ source };
29
}
else
{
30
return
{};
31
}
32
}
33
34
}
// SourceXtractor namespace
35
AssocModePartitionStep.h
AssocMode.h
SourceXtractor::AssocModePartitionStep::AssocModePartitionStep
AssocModePartitionStep(bool match_required)
Constructor.
Definition:
AssocModePartitionStep.cpp:23
SourceXtractor::AssocModePartitionStep::partition
std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const override
Definition:
AssocModePartitionStep.cpp:26
SourceXtractor::AssocModePartitionStep::m_match_required
bool m_match_required
Definition:
AssocModePartitionStep.h:45
SourceXtractor::AssocMode
Definition:
AssocMode.h:33
SourceXtractor::AssocMode::getMatch
bool getMatch() const
Definition:
AssocMode.h:50
SourceXtractor
Definition:
Aperture.h:30
std::shared_ptr
std::vector
Generated by
1.9.1