YPC
0.2.0
include
hpda
output
output_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
output {
7
namespace
internal {
8
9
template
<
typename
InputObjType>
10
class
output_base
11
:
public
::hpda::internal::processor_with_input
<InputObjType> {
12
public
:
13
output_base
(
14
::
hpda::internal::processor_with_output<InputObjType>
*upper_stream)
15
:
::hpda::internal::processor_with_input<InputObjType>
(upper_stream) {}
16
17
virtual
~
output_base
() {}
18
19
typedef ::hpda::internal::processor_with_input<InputObjType>
base
;
20
21
// inline bool next_input() { return base::next_input(); }
22
23
InputObjType input_value()
const
{
return
base::input_value(); }
24
25
virtual
void
done_value() { functor::m_has_value =
false
; };
26
};
27
}
// namespace internal
28
}
// namespace output
29
}
// namespace hpda
hpda::internal::processor_with_input
Definition:
processor_with_input.h:10
hpda::output::internal::output_base
Definition:
output_base.h:10
hpda::internal::processor_with_output< InputObjType >
Generated by
1.8.17