SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEMain
SEMain
Sorter.h
Go to the documentation of this file.
1
17
/*
18
* Sorter.h
19
*
20
* Created on: Sep 10, 2018
21
* Author: Alejandro Alvarez Ayllon
22
*/
23
24
#ifndef _SEMAIN_SORTER_H_
25
#define _SEMAIN_SORTER_H_
26
27
#include "
SEFramework/Pipeline/PipelineStage.h
"
28
#include "
SEFramework/Source/SourceGroupInterface.h
"
29
#include <map>
30
31
namespace
SourceXtractor
{
32
33
class
Sorter
:
public
PipelineReceiver
<SourceGroupInterface>,
public
PipelineEmitter
<SourceGroupInterface> {
34
public
:
35
36
Sorter
();
37
virtual
~Sorter
() =
default
;
38
39
void
receiveSource
(
std::unique_ptr<SourceGroupInterface>
source)
override
;
40
void
receiveProcessSignal
(
const
ProcessSourcesEvent
& event)
override
;
41
42
private
:
43
std::map<int, std::unique_ptr<SourceGroupInterface>
>
m_output_buffer
;
44
int
m_output_next
;
45
};
46
47
}
// end SourceXtractor
48
49
#endif
// _SEMAIN_SORTER_H_
PipelineStage.h
SourceGroupInterface.h
SourceXtractor::PipelineEmitter
Definition
PipelineStage.h:68
SourceXtractor::PipelineReceiver
Definition
PipelineStage.h:46
SourceXtractor::Sorter::m_output_buffer
std::map< int, std::unique_ptr< SourceGroupInterface > > m_output_buffer
Definition
Sorter.h:43
SourceXtractor::Sorter::~Sorter
virtual ~Sorter()=default
SourceXtractor::Sorter::Sorter
Sorter()
Definition
Sorter.cpp:29
SourceXtractor::Sorter::receiveSource
void receiveSource(std::unique_ptr< SourceGroupInterface > source) override
Definition
Sorter.cpp:32
SourceXtractor::Sorter::receiveProcessSignal
void receiveProcessSignal(const ProcessSourcesEvent &event) override
Definition
Sorter.cpp:47
SourceXtractor::Sorter::m_output_next
int m_output_next
Definition
Sorter.h:44
std::map
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::ProcessSourcesEvent
Event received by SourceGrouping to request the processing of some of the Sources stored.
Definition
PipelineStage.h:33
std::unique_ptr
Generated by
1.15.0