Midge  v3.9.2
Data Processing Framework
_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:
34  {
35  return *f_in;
36  }
37 
38  private:
40  };
41 }
42 
43 #endif
Definition: _buffer.hh:11
_stream< x_type > & get_stream()
Definition: _in.hh:33
input * in(const std::string &p_label)
Definition: node.cc:42
_in()
Definition: _in.hh:16
virtual ~_in()
Definition: _in.hh:21
void in(_stream< x_type > *p_in)
Definition: _in.hh:26
_stream< x_type > * f_in
Definition: _in.hh:39