SourceXtractorPlusPlus
0.15
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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_
std::shared_ptr< SourceGroupInterface >
SourceXtractor::Sorter::m_output_next
int m_output_next
Definition:
Sorter.h:43
Observable.h
SourceXtractor::Sorter::handleMessage
void handleMessage(const std::shared_ptr< SourceGroupInterface > &message) override
Definition:
Sorter.cpp:30
std::map
STL class.
SourceGroupInterface.h
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
SourceXtractor::Sorter::Sorter
Sorter()
Definition:
Sorter.cpp:27
SourceXtractor::Observer
Observer interface to be used with Observable to implement the Observer pattern.
Definition:
Observable.h:38
SourceXtractor::Sorter
Definition:
Sorter.h:32
Generated by
1.8.5