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

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
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: 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
18namespace morpheo {
19namespace behavioural {
20namespace generic {
21namespace 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
Note: See TracBrowser for help on using the repository browser.