Rev | Line | |
---|
[2] | 1 | #ifndef ENTRY_H |
---|
| 2 | #define ENTRY_H |
---|
| 3 | |
---|
| 4 | #include <stdint.h> |
---|
| 5 | #include <iostream> |
---|
| 6 | using namespace std; // Utilisation de l'espace de nommage standard |
---|
| 7 | |
---|
| 8 | namespace hierarchy_memory |
---|
| 9 | { |
---|
| 10 | namespace sort_file |
---|
| 11 | { |
---|
| 12 | class Entry |
---|
| 13 | { |
---|
| 14 | public : uint32_t trdid; // number of thread |
---|
| 15 | public : uint32_t pktid; // number of packet |
---|
| 16 | public : uint64_t data; |
---|
| 17 | |
---|
| 18 | Entry () |
---|
| 19 | { |
---|
| 20 | trdid = 0; |
---|
| 21 | pktid = 0; |
---|
| 22 | data = 0; |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | Entry (uint32_t trdid , |
---|
| 26 | uint32_t pktid , |
---|
| 27 | uint64_t data ) |
---|
| 28 | { |
---|
| 29 | this->trdid = trdid; |
---|
| 30 | this->pktid = pktid; |
---|
| 31 | this->data = data ; |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | friend ostream& operator<< (ostream& output_stream, Entry x) |
---|
| 35 | { |
---|
| 36 | output_stream << x.trdid << " " << x.pktid << " " << hex << x.data << dec; |
---|
| 37 | return output_stream; |
---|
| 38 | } |
---|
| 39 | }; |
---|
| 40 | }; //sort_file |
---|
| 41 | }; //hierarchy_memory |
---|
| 42 | #endif //!ENTRY_H |
---|
Note: See
TracBrowser
for help on using the repository browser.