SST/macro
message_buffer_cache.h
Go to the documentation of this file.
1 #ifndef MESSAGE_BUFFER_CACHE_H
2 #define MESSAGE_BUFFER_CACHE_H
3 
4 #include <list>
5 #include <string>
6 
7 namespace sstmac {
8 
10  public:
11 
12  public:
13  std::string
14  to_string() const {
15  return "message buffer cache";
16  }
17 
18  void*
19  pop();
20 
21  void
22  push(void* buffer);
23 
24  message_buffer_cache(int buf_size, int num_bufs_window) :
25  buf_size_(buf_size),
26  num_bufs_window_(num_bufs_window)
27  {
28  }
29 
31 
32  void
33  init(int buf_size, int num_bufs_window){
34  buf_size_ = buf_size;
35  num_bufs_window_ = num_bufs_window;
36  }
37 
38  protected:
39  std::list<void*> buffers_;
40 
41  int buf_size_;
42 
44 
45 };
46 
47 }
48 
49 #endif // MESSAGE_BUFFER_CACHE_H
void init(int buf_size, int num_bufs_window)
message_buffer_cache(int buf_size, int num_bufs_window)
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
void push(void *buffer)