1 | /* |
---|
2 | * $Id: Parameters.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace generic { |
---|
13 | namespace select { |
---|
14 | namespace select_priority_fixed { |
---|
15 | |
---|
16 | |
---|
17 | Parameters::Parameters (uint32_t nb_entity , |
---|
18 | bool encoding_one_hot, |
---|
19 | bool encoding_compact): |
---|
20 | _nb_entity (nb_entity ), |
---|
21 | _encoding_one_hot (encoding_one_hot), |
---|
22 | _encoding_compact (encoding_compact), |
---|
23 | _size_entity (static_cast<uint32_t> (ceil(log2(nb_entity)))) |
---|
24 | { |
---|
25 | log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); |
---|
26 | test(); |
---|
27 | log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); |
---|
28 | }; |
---|
29 | |
---|
30 | // Parameters::Parameters (Parameters & param): |
---|
31 | // _nb_entity (param._nb_entity ), |
---|
32 | // _encoding_one_hot (param._encoding_one_hot), |
---|
33 | // _encoding_compact (param._encoding_compact), |
---|
34 | // _size_entity (param._size_entity ) |
---|
35 | // { |
---|
36 | // log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); |
---|
37 | // test(); |
---|
38 | // log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); |
---|
39 | // }; |
---|
40 | |
---|
41 | Parameters::~Parameters () |
---|
42 | { |
---|
43 | log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin"); |
---|
44 | log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End"); |
---|
45 | }; |
---|
46 | |
---|
47 | void Parameters::copy (void) |
---|
48 | { |
---|
49 | log_printf(FUNC,Select_Priority_Fixed,"copy","Begin"); |
---|
50 | log_printf(FUNC,Select_Priority_Fixed,"copy","End"); |
---|
51 | }; |
---|
52 | |
---|
53 | }; // end namespace select_priority_fixed |
---|
54 | }; // end namespace select |
---|
55 | }; // end namespace generic |
---|
56 | |
---|
57 | }; // end namespace behavioural |
---|
58 | }; // end namespace morpheo |
---|