SourceXtractorPlusPlus
0.13
Please provide a description of the project.
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 "
SEUtils/Observable.h
"
28
#include "
SEFramework/Source/SourceGroupInterface.h
"
29
30
namespace
SourceXtractor
{
31
32
class
Sorter
:
public
Observer
<std::shared_ptr<SourceGroupInterface>>,
33
public
Observable
<std::shared_ptr<SourceGroupInterface>> {
34
public
:
35
36
Sorter
();
37
virtual
~Sorter
() =
default
;
38
39
void
handleMessage
(
const
std::shared_ptr<SourceGroupInterface>
& message)
override
;
40
41
private
:
42
std::map<int, std::shared_ptr<SourceGroupInterface>
>
m_output_buffer
;
43
int
m_output_next
;
44
};
45
46
}
// end SourceXtractor
47
48
#endif // _SEMAIN_SORTER_H_
SourceXtractor::Sorter::m_output_next
int m_output_next
Definition:
Sorter.h:43
SourceXtractor::Observer
Observer interface to be used with Observable to implement the Observer pattern.
Definition:
Observable.h:38
SourceXtractor::Sorter
Definition:
Sorter.h:33
std::shared_ptr< SourceGroupInterface >
SourceGroupInterface.h
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::Sorter::handleMessage
void handleMessage(const std::shared_ptr< SourceGroupInterface > &message) override
Definition:
Sorter.cpp:30
std::map
STL class.
Observable.h
SourceXtractor::Sorter::Sorter
Sorter()
Definition:
Sorter.cpp:27
SourceXtractor::Observable
Implements the Observer pattern. Notifications will be made using a message of type T.
Definition:
Observable.h:51
SourceXtractor::Sorter::m_output_buffer
std::map< int, std::shared_ptr< SourceGroupInterface > > m_output_buffer
Definition:
Sorter.h:42
SourceXtractor::Sorter::~Sorter
virtual ~Sorter()=default
Generated by
1.8.20