SourceXtractorPlusPlus  0.12
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::Sorter Class Reference

#include <Sorter.h>

Inheritance diagram for SourceXtractor::Sorter:
[legend]
Collaboration diagram for SourceXtractor::Sorter:
[legend]

Public Member Functions

 Sorter ()
 
virtual ~Sorter ()=default
 
void handleMessage (const std::shared_ptr< SourceGroupInterface > &message) override
 
- Public Member Functions inherited from SourceXtractor::Observer< std::shared_ptr< SourceGroupInterface > >
virtual ~Observer ()=default
 
- Public Member Functions inherited from SourceXtractor::Observable< std::shared_ptr< SourceGroupInterface > >
virtual ~Observable ()=default
 Destructor. More...
 
virtual void addObserver (std::shared_ptr< Observer< std::shared_ptr< SourceGroupInterface > >> observer)
 Adds an Observer that will be notified when notify Observers is called. More...
 
virtual void removeObserver (std::shared_ptr< Observer< std::shared_ptr< SourceGroupInterface > >> observer)
 Removes a previously added Observer from the list of Observers to notify. More...
 

Private Attributes

std::map< int, std::shared_ptr< SourceGroupInterface > > m_output_buffer
 
int m_output_next
 

Additional Inherited Members

- Protected Member Functions inherited from SourceXtractor::Observable< std::shared_ptr< SourceGroupInterface > >
void notifyObservers (const std::shared_ptr< SourceGroupInterface > &message) const
 

Detailed Description

Definition at line 32 of file Sorter.h.

Constructor & Destructor Documentation

◆ Sorter()

SourceXtractor::Sorter::Sorter ( )

Definition at line 27 of file Sorter.cpp.

◆ ~Sorter()

virtual SourceXtractor::Sorter::~Sorter ( )
virtualdefault

Member Function Documentation

◆ handleMessage()

void SourceXtractor::Sorter::handleMessage ( const std::shared_ptr< SourceGroupInterface > &  message)
overridevirtual

Implements SourceXtractor::Observer< std::shared_ptr< SourceGroupInterface > >.

Definition at line 30 of file Sorter.cpp.

References SourceXtractor::extractSourceId(), m_output_buffer, m_output_next, SourceXtractor::Observable< std::shared_ptr< SourceGroupInterface > >::notifyObservers(), std::sort(), and std::transform().

Here is the call graph for this function:

Member Data Documentation

◆ m_output_buffer

std::map<int, std::shared_ptr<SourceGroupInterface> > SourceXtractor::Sorter::m_output_buffer
private

Definition at line 42 of file Sorter.h.

Referenced by handleMessage().

◆ m_output_next

int SourceXtractor::Sorter::m_output_next
private

Definition at line 43 of file Sorter.h.

Referenced by handleMessage().


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