YPC
0.2.0
include
hpda
processor
processor_base.h
1
#pragma once
2
#include <hpda/common/processor_with_input.h>
3
#include <hpda/common/processor_with_output.h>
4
5
namespace
hpda {
6
namespace
processor {
7
namespace
internal {
8
template
<
typename
InputObjType,
typename
OutputObjType>
9
class
processor_base
10
:
public
::hpda::internal::processor_with_output
<OutputObjType>,
11
public
::hpda::internal::processor_with_input
<InputObjType> {
12
public
:
13
processor_base
(
14
::
hpda::internal::processor_with_output<InputObjType>
*upper_stream)
15
:
::hpda::internal::processor_with_input<InputObjType>
(upper_stream) {}
16
17
virtual
~
processor_base
() {}
18
19
typedef ::hpda::internal::processor_with_input<InputObjType>
base
;
20
21
// inline bool next_input() { return base::next_input(); }
22
23
inline
InputObjType input_value()
const
{
return
base::input_value(); }
24
};
25
}
// namespace internal
26
template
<
typename
InputT,
typename
OutputT>
27
using
processor_base_t
=
internal::processor_base<InputT, OutputT>
;
28
}
// namespace processor
29
}
// namespace hpda
hpda::processor::internal::processor_base
Definition:
processor_base.h:9
hpda::internal::processor_with_input
Definition:
processor_with_input.h:10
hpda::internal::processor_with_output
Definition:
processor_with_output.h:9
Generated by
1.8.17