itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_int2bin.hpp
1 /*xxx
2 * \brief - SIM::int2bin - SIM layer implementation of integer to binary converter
3 * \author maki
4 */
5 
6 #ifndef SIM_INT2BIN_HPP
7 #define SIM_INT2BIN_HPP
8 
9 #include <itpp/itbase.h>
10 
11 using namespace itpp;
12 using namespace std;
13 
14 namespace SIM
15 {
16 
21 class int2bin
22 {
23 private:
24  bool msb_first;
25  int symbol_size;
26  bvec y0;
27 
28 public:
29 
31  {
32  msb_first = true;
33  };
34 
36  {
37  };
38 
42  void set_symbol_size(int W);
43 
47  void set_msb_flag(bool msb);
48 
52  void set_output(const bvec &yout);
53 
57  int get_symbol_size();
58 
62  bool get_msb_flag();
63 
67  bvec get_output();
68 
74  bmat process(const bvec &ce, const ivec &x);
75 
76 };
77 
78 }
79 #endif //SIM
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
int2bin()
Definition: sim_int2bin.hpp:30
Definition: _sci_assert.cpp:35
~int2bin()
Definition: sim_int2bin.hpp:35
binary to integer converter Core function SIM::int2bin.process()
Definition: sim_int2bin.hpp:21