itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_binbuff.hpp
1 /*xxx
2 * \brief - SIM::binbuff - binary circular buffer derived from itpp::Circular_Buffer<bin>
3 * \author maki
4 */
5 
6 #ifndef SIM_BINBUFF_HPP
7 #define SIM_BINBUFF_HPP
8 
9 #include <itpp/itbase.h>
10 #include <itpp/itcomm.h>
11 
12 using namespace itpp;
13 using namespace std;
14 
15 
16 namespace SIM
17 {
18 
25 class binbuff : public itpp::Circular_Buffer<bin>
26 {
27 private:
28  bvec y0;
29  int symbol_size;
30 
31 public:
33  {
34  };
35 
37  {
38  };
39 
43  void set_size(int m);
44 
48  void set_symbol_size(int w); // output symbol width - bits per get, in generate and process
49 
53  void set_output(bvec yout);
54 
58  int get_size();
59 
63  int get_symbol_size();
64 
68  bvec get_output();
69 
75  bmat generate(const bvec &ce);
76 
85  bmat process(const bmat &ceio, const bmat &x);
86 };
87 
88 
89 }
90 #endif // SIM_BINBUFF_HPP
binary circular buffer Core functions SIM::binbuff.process(), SIM::binbuff.generate() ...
Definition: sim_binbuff.hpp:25
~binbuff()
Definition: sim_binbuff.hpp:36
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
Definition: _sci_assert.cpp:35
binbuff()
Definition: sim_binbuff.hpp:32