SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AssocModePartitionStep.cpp
Go to the documentation of this file.
1 
20 
21 namespace SourceXtractor {
22 
23 AssocModePartitionStep::AssocModePartitionStep(bool match_required) : m_match_required(match_required) {}
24 
28  if (source->getProperty<AssocMode>().getMatch() ^ !m_match_required) {
29  sources.emplace_back(std::move(source));
30  }
31  return sources;
32 }
33 
34 } // SourceXtractor namespace
35 
std::vector< std::unique_ptr< SourceInterface > > partition(std::unique_ptr< SourceInterface > source) const override
bool getMatch() const
Definition: AssocMode.h:53
T move(T...args)
AssocModePartitionStep(bool match_required)
Constructor.
STL class.
STL class.
T emplace_back(T...args)