Rev | Line | |
---|
[2] | 1 | #ifndef WRITE_BUFFER_H |
---|
| 2 | #define WRITE_BUFFER_H |
---|
| 3 | |
---|
| 4 | #include "address.h" |
---|
| 5 | #include <iostream> |
---|
| 6 | using namespace std; |
---|
| 7 | |
---|
| 8 | namespace hierarchy_memory { |
---|
| 9 | namespace cache { |
---|
| 10 | namespace cache_multilevel { |
---|
| 11 | namespace cache_onelevel { |
---|
| 12 | |
---|
| 13 | class write_buffer_t |
---|
| 14 | { |
---|
| 15 | public : address_t address; |
---|
| 16 | public : uint32_t trdid; |
---|
| 17 | |
---|
| 18 | public : write_buffer_t () |
---|
| 19 | { |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | public : write_buffer_t (address_t address, uint32_t trdid) |
---|
| 23 | { |
---|
| 24 | this->address = address; |
---|
| 25 | this->trdid = trdid; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | friend ostream& operator<< (ostream& output_stream, const write_buffer_t &x) |
---|
| 29 | { |
---|
| 30 | output_stream << x.address << " " |
---|
| 31 | << x.trdid; |
---|
| 32 | |
---|
| 33 | return output_stream; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | };};};}; |
---|
| 39 | |
---|
| 40 | #endif //!WRITE_BUFFER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.