source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue_Control/include/Queue_Control.h @ 56

Last change on this file since 56 was 56, checked in by rosiere, 17 years ago

Factorisation du contrôle de file d'attente dans une classe "Queue_Control"

File size: 1.3 KB
Line 
1#ifndef morpheo_behavioural_generic_queue_control_Queue_Control_h
2#define morpheo_behavioural_generic_queue_control_Queue_Control_h
3
4/*
5 * $Id$
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
18using namespace std;
19
20namespace morpheo {
21namespace behavioural {
22namespace generic {
23namespace queue_control {
24
25  class Queue_Control
26  {
27  private : const uint32_t     _nb_elt_max;
28  private : uint32_t           _nb_elt;
29  private : vector<uint32_t> * _tab;
30   
31  public  :          Queue_Control  (uint32_t nb_elt_max);
32  public  :          ~Queue_Control (void);
33   
34  public  : uint32_t nb_elt   (void);
35  public  : bool     full     (void);
36  public  : bool     empty    (void);
37  public  : void     clear    (void);
38
39  public  : uint32_t push     (void);
40  public  : uint32_t push_ovf (void);
41  public  : void     pop      (uint32_t);
42  public  : void     pop      (void);
43  public  : void     pop_ovf  (uint32_t);
44  public  : void     pop_ovf  (void);
45   
46  public : uint32_t operator[] (uint32_t);
47  public : ostream& operator<< (ostream& output_stream);
48  };
49 
50}; // end namespace queue_control
51}; // end namespace generic
52}; // end namespace behavioural
53}; // end namespace morpheo             
54
55#endif
Note: See TracBrowser for help on using the repository browser.