Midge
v3.9.2
Data Processing Framework
library
core
_in.hh
Go to the documentation of this file.
1
#ifndef _midge_in_hh_
2
#define _midge_in_hh_
3
4
#include "
_input.hh
"
5
#include "
_stream.hh
"
6
#include "
node.hh
"
7
8
namespace
midge
9
{
10
11
template
<
class
x_type,
class
x_index >
12
class
_in
:
13
virtual
public
node
14
{
15
public
:
16
_in
() :
17
f_in
( NULL )
18
{
19
node::in
(
new
_input
<
_in< x_type, x_index >
, x_type >(
this
, &
_in< x_type, x_index >::in
),
"in_"
+std::to_string(x_index::value) );
20
}
21
virtual
~_in
()
22
{
23
}
24
25
public
:
26
void
in
(
_stream< x_type >
* p_in )
27
{
28
f_in
= p_in;
29
return
;
30
}
31
32
protected
:
33
_stream< x_type >
&
get_stream
()
34
{
35
return
*
f_in
;
36
}
37
38
private
:
39
_stream< x_type >
*
f_in
;
40
};
41
}
42
43
#endif
midge::_stream
Definition:
_stream.hh:13
midge
Definition:
_buffer.hh:11
_input.hh
node.hh
midge::_in::get_stream
_stream< x_type > & get_stream()
Definition:
_in.hh:33
midge::node::in
input * in(const std::string &p_label)
Definition:
node.cc:42
midge::_in::_in
_in()
Definition:
_in.hh:16
midge::node
Definition:
node.hh:20
midge::_in::~_in
virtual ~_in()
Definition:
_in.hh:21
midge::_in::in
void in(_stream< x_type > *p_in)
Definition:
_in.hh:26
_stream.hh
midge::_in::f_in
_stream< x_type > * f_in
Definition:
_in.hh:39
midge::_input
Definition:
_input.hh:14
midge::_in
Definition:
_in.hh:12
Generated by
1.8.13