SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::AssocGrouping Class Reference

#include <AssocGrouping.h>

Inheritance diagram for SourceXtractor::AssocGrouping:
Collaboration diagram for SourceXtractor::AssocGrouping:

Public Member Functions

 AssocGrouping (std::shared_ptr< SourceGroupFactory > group_factory, unsigned int hard_limit)
virtual ~AssocGrouping ()=default
std::set< PropertyIdrequiredProperties () const override
 Returns the set of required properties to compute the grouping.
void receiveSource (std::unique_ptr< SourceInterface > source) override
 Handles a new Source.
void receiveProcessSignal (const ProcessSourcesEvent &event) override
 Handles a ProcessSourcesEvent to trigger the processing of some of the Sources stored in SourceGrouping.
Public Member Functions inherited from SourceXtractor::PipelineEmitter< SourceGroupInterface >
 ~PipelineEmitter () override=default
void setNextStage (std::shared_ptr< PipelineReceiver< SourceGroupInterface > > next)
Public Member Functions inherited from SourceXtractor::Observable< SourceGroupInterface >
virtual ~Observable ()=default
 Destructor.
virtual void addObserver (std::shared_ptr< Observer< SourceGroupInterface > > observer)
 Adds an Observer that will be notified when notify Observers is called.
virtual void removeObserver (std::shared_ptr< Observer< SourceGroupInterface > > observer)
 Removes a previously added Observer from the list of Observers to notify.
Public Member Functions inherited from SourceXtractor::PipelineReceiver< SourceInterface >
virtual ~PipelineReceiver ()=default

Private Attributes

std::shared_ptr< SourceGroupFactorym_group_factory
std::map< unsigned int, std::unique_ptr< SourceGroupInterface > > m_source_groups
unsigned int m_hard_limit

Additional Inherited Members

Protected Member Functions inherited from SourceXtractor::PipelineEmitter< SourceGroupInterface >
void sendSource (std::unique_ptr< SourceGroupInterface > source) const
void sendProcessSignal (const ProcessSourcesEvent &event) const
Protected Member Functions inherited from SourceXtractor::Observable< SourceGroupInterface >
void notifyObservers (const SourceGroupInterface &message) const

Detailed Description

Definition at line 27 of file AssocGrouping.h.

Constructor & Destructor Documentation

◆ AssocGrouping()

SourceXtractor::AssocGrouping::AssocGrouping ( std::shared_ptr< SourceGroupFactory > group_factory,
unsigned int hard_limit )

Definition at line 23 of file AssocGrouping.cpp.

References m_group_factory, and m_hard_limit.

◆ ~AssocGrouping()

virtual SourceXtractor::AssocGrouping::~AssocGrouping ( )
virtualdefault

Member Function Documentation

◆ receiveProcessSignal()

void SourceXtractor::AssocGrouping::receiveProcessSignal ( const ProcessSourcesEvent & event)
overridevirtual

◆ receiveSource()

void SourceXtractor::AssocGrouping::receiveSource ( std::unique_ptr< SourceInterface > source)
overridevirtual

Handles a new Source.

Implements SourceXtractor::PipelineReceiver< SourceInterface >.

Definition at line 33 of file AssocGrouping.cpp.

References m_group_factory, m_hard_limit, m_source_groups, std::move(), and SourceXtractor::PipelineEmitter< SourceGroupInterface >::sendSource().

Here is the call graph for this function:

◆ requiredProperties()

std::set< PropertyId > SourceXtractor::AssocGrouping::requiredProperties ( ) const
overridevirtual

Returns the set of required properties to compute the grouping.

Implements SourceXtractor::SourceGroupingInterface.

Definition at line 28 of file AssocGrouping.cpp.

References SourceXtractor::PropertyId::create().

Here is the call graph for this function:

Member Data Documentation

◆ m_group_factory

std::shared_ptr<SourceGroupFactory> SourceXtractor::AssocGrouping::m_group_factory
private

Definition at line 42 of file AssocGrouping.h.

Referenced by AssocGrouping(), and receiveSource().

◆ m_hard_limit

unsigned int SourceXtractor::AssocGrouping::m_hard_limit
private

Definition at line 44 of file AssocGrouping.h.

Referenced by AssocGrouping(), and receiveSource().

◆ m_source_groups

std::map<unsigned int, std::unique_ptr<SourceGroupInterface> > SourceXtractor::AssocGrouping::m_source_groups
private

Definition at line 43 of file AssocGrouping.h.

Referenced by receiveProcessSignal(), and receiveSource().


The documentation for this class was generated from the following files: