Last change
on this file since 77 was
56,
checked in by rosiere, 17 years ago
|
Factorisation du contrôle de file d'attente dans une classe "Queue_Control"
|
File size:
653 bytes
|
Line | |
---|
1 | #include "Behavioural/Generic/Queue_Control/include/Queue_Control.h" |
---|
2 | |
---|
3 | namespace morpheo { |
---|
4 | namespace behavioural { |
---|
5 | namespace generic { |
---|
6 | namespace queue_control { |
---|
7 | |
---|
8 | #undef FUNCTION |
---|
9 | #define FUNCTION "Queue_Control::clear" |
---|
10 | void Queue_Control::clear (void) |
---|
11 | { |
---|
12 | log_printf(FUNC,Queue_Control,FUNCTION,"Begin"); |
---|
13 | |
---|
14 | // clear all element in control. |
---|
15 | _nb_elt = 0; |
---|
16 | |
---|
17 | _tab->clear(); |
---|
18 | for (uint32_t i=0; i<_nb_elt_max; i++) |
---|
19 | _tab->push_back(i); |
---|
20 | |
---|
21 | log_printf(FUNC,Queue_Control,FUNCTION,"End"); |
---|
22 | }; |
---|
23 | }; // end namespace queue_control |
---|
24 | }; // end namespace generic |
---|
25 | }; // end namespace behavioural |
---|
26 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.