SourceXtractorPlusPlus
0.15
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
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
SourceXtractor::AssocModePartitionStep::partition
std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const override
Definition:
AssocModePartitionStep.cpp:26
std::shared_ptr
AssocModePartitionStep.h
SourceXtractor::AssocMode
Definition:
AssocMode.h:33
SourceXtractor::AssocModePartitionStep::AssocModePartitionStep
AssocModePartitionStep(bool match_required)
Constructor.
Definition:
AssocModePartitionStep.cpp:23
std::vector
STL class.
AssocMode.h
SourceXtractor::AssocModePartitionStep::m_match_required
bool m_match_required
Definition:
AssocModePartitionStep.h:45
Generated by
1.8.5