itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_bin2int.hpp
1 /*xxx
2 * \brief - SIM::bin2int - - SIM layer implementation of binary to integer converter
3 * \author maki
4 */
5 
6 
7 #ifndef SIM_BIN2INT_HPP
8 #define SIM_BIN2INT_HPP
9 
10 #include <itpp/itbase.h>
11 
12 using namespace itpp;
13 using namespace std;
14 
15 namespace SIM
16 {
17 
22 class bin2int
23 {
24 private:
25  bool msb_first;
26  int symbol_size;
27  int y0;
28 
29 public:
31  {
32  msb_first = true;
33  y0 = 0;
34  };
35 
37  {
38  };
39 
43  void set_symbol_size(int W);
44 
48  void set_msb_flag(bool msb);
49 
53  void set_output(int yout);
54 
58  int get_symbol_size();
59 
63  bool get_msb_flag();
64 
68  int get_output();
69 
75  ivec process(const bvec &ce, const bmat &x);
76 
77 };
78 
79 }
80 #endif //SIM
bin2int()
Definition: sim_bin2int.hpp:30
~bin2int()
Definition: sim_bin2int.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
binary to integer converter Core function SIM::bin2int.process()
Definition: sim_bin2int.hpp:22