source: trunk/IPs/systemC/Environment/Queue/include/Slot.h @ 82

Last change on this file since 82 was 81, checked in by rosiere, 17 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 629 bytes
Line 
1#ifndef ENVIRONMENT_QUEUE_SLOT_H
2#define ENVIRONMENT_QUEUE_SLOT_H
3
4#include <stdint.h>
5#include <iostream>
6
7namespace environment {
8namespace queue {
9
10  template <class T>
11  class slot_t
12  {
13  public    : uint32_t _delay;     // delay of disponibilty of data
14  public    : T        _data;
15
16  public    : slot_t (void)
17    {
18    }
19   
20  public    : slot_t (uint32_t delay, T data)
21    {
22      _delay = delay;
23      _data  = data;
24    }
25   
26  public    : friend std::ostream& operator<< (std::ostream& output, const slot_t & x)
27    {
28      output << x._delay << " " << x._data;
29      return output;
30    }
31  };
32 
33};
34};
35#endif
36 
Note: See TracBrowser for help on using the repository browser.