1 | #ifndef morpheo_behavioural_generic_queue_control_Queue_Control_h |
---|
2 | #define morpheo_behavioural_generic_queue_control_Queue_Control_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Queue_Control.h 81 2008-04-15 18:40:01Z rosiere $ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #include <iostream> |
---|
12 | #include <vector> |
---|
13 | |
---|
14 | #include "Common/include/ErrorMorpheo.h" |
---|
15 | #include "Common/include/ToString.h" |
---|
16 | #include "Common/include/Debug.h" |
---|
17 | |
---|
18 | namespace morpheo { |
---|
19 | namespace behavioural { |
---|
20 | namespace generic { |
---|
21 | namespace queue_control { |
---|
22 | |
---|
23 | class Queue_Control |
---|
24 | { |
---|
25 | private : const uint32_t _nb_elt_max; |
---|
26 | private : uint32_t _nb_elt; |
---|
27 | private : std::vector<uint32_t> * _tab; |
---|
28 | |
---|
29 | public : Queue_Control (uint32_t nb_elt_max); |
---|
30 | public : ~Queue_Control (void); |
---|
31 | |
---|
32 | public : uint32_t nb_elt (void); |
---|
33 | public : bool full (void); |
---|
34 | public : bool empty (void); |
---|
35 | public : void clear (void); |
---|
36 | |
---|
37 | public : uint32_t push (void); |
---|
38 | public : uint32_t push_ovf (void); |
---|
39 | public : void pop (uint32_t); |
---|
40 | public : void pop (void); |
---|
41 | public : void pop_ovf (uint32_t); |
---|
42 | public : void pop_ovf (void); |
---|
43 | |
---|
44 | public : uint32_t operator[] (uint32_t); |
---|
45 | public : std::ostream& operator<< (std::ostream& output_stream); |
---|
46 | }; |
---|
47 | |
---|
48 | }; // end namespace queue_control |
---|
49 | }; // end namespace generic |
---|
50 | }; // end namespace behavioural |
---|
51 | }; // end namespace morpheo |
---|
52 | |
---|
53 | #endif |
---|