[67] | 1 | /* |
---|
| 2 | * $Id: Parameters.cpp 101 2009-01-15 17:19:08Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Queue/include/Parameters.h" |
---|
[101] | 9 | #include "Common/include/Log2.h" |
---|
[67] | 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace generic { |
---|
| 13 | namespace queue { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "Queue::Parameters" |
---|
[101] | 18 | Parameters::Parameters (uint32_t size_queue , |
---|
| 19 | uint32_t size_data , |
---|
| 20 | uint32_t nb_port_slot , |
---|
| 21 | bool have_port_ptr_write, |
---|
| 22 | bool have_port_ptr_read ): |
---|
| 23 | _size_queue (size_queue), |
---|
| 24 | _size_data (size_data ), |
---|
| 25 | _nb_port_slot (nb_port_slot), |
---|
| 26 | _have_port_ptr_write (have_port_ptr_write and (log2(size_queue)>0)), |
---|
| 27 | _have_port_ptr_read (have_port_ptr_read and (log2(size_queue)>0)), |
---|
| 28 | _size_ptr (log2(size_queue)), |
---|
| 29 | _have_port_ptr (have_port_ptr_write or have_port_ptr_read) |
---|
[67] | 30 | { |
---|
| 31 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 32 | test(); |
---|
| 33 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 34 | }; |
---|
| 35 | |
---|
[88] | 36 | // #undef FUNCTION |
---|
| 37 | // #define FUNCTION "Queue::Parameters (copy)" |
---|
| 38 | // Parameters::Parameters (Parameters & param): |
---|
| 39 | // _size_queue (param._size_queue), |
---|
| 40 | // _size_data (param._size_data ) |
---|
| 41 | // { |
---|
| 42 | // log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 43 | // test(); |
---|
| 44 | // log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 45 | // }; |
---|
| 46 | |
---|
[67] | 47 | #undef FUNCTION |
---|
[88] | 48 | #define FUNCTION "Queue::~Parameters" |
---|
| 49 | Parameters::~Parameters () |
---|
[67] | 50 | { |
---|
| 51 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 52 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | #undef FUNCTION |
---|
[88] | 56 | #define FUNCTION "Queue::copy" |
---|
| 57 | void Parameters::copy (void) |
---|
[67] | 58 | { |
---|
| 59 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 60 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 61 | }; |
---|
| 62 | |
---|
| 63 | }; // end namespace queue |
---|
| 64 | }; // end namespace generic |
---|
| 65 | |
---|
| 66 | }; // end namespace behavioural |
---|
| 67 | }; // end namespace morpheo |
---|