[10] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" |
---|
[10] | 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace generic { |
---|
| 13 | namespace select { |
---|
[15] | 14 | namespace select_priority_fixed { |
---|
[10] | 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 | { |
---|
[15] | 25 | log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); |
---|
[10] | 26 | test(); |
---|
[15] | 27 | log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); |
---|
[10] | 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 | { |
---|
[15] | 36 | log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); |
---|
[10] | 37 | test(); |
---|
[15] | 38 | log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); |
---|
[10] | 39 | }; |
---|
| 40 | |
---|
| 41 | Parameters::~Parameters () |
---|
| 42 | { |
---|
[15] | 43 | log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin"); |
---|
| 44 | log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End"); |
---|
[10] | 45 | }; |
---|
| 46 | |
---|
[15] | 47 | }; // end namespace select_priority_fixed |
---|
[10] | 48 | }; // end namespace select |
---|
| 49 | }; // end namespace generic |
---|
| 50 | |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|