Last change
on this file since 26 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
980 bytes
|
Rev | Line | |
---|
[10] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[15] | 9 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Statistics.h" |
---|
[10] | 10 | |
---|
| 11 | #include <sstream> |
---|
| 12 | using namespace std; |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace generic { |
---|
| 17 | namespace victim { |
---|
[15] | 18 | namespace victim_pseudo_lru { |
---|
[10] | 19 | |
---|
| 20 | |
---|
| 21 | string Statistics::print (uint32_t depth) |
---|
| 22 | { |
---|
| 23 | string tab = string(depth,'\t'); |
---|
| 24 | ostringstream msg; |
---|
| 25 | |
---|
[15] | 26 | msg << tab << "<victim_pseudo_lru name=\"" << _name << "\" >" << endl |
---|
[10] | 27 | << print_body (depth+1) |
---|
[15] | 28 | << tab << "</victim_pseudo_lru>" << endl; |
---|
[10] | 29 | |
---|
| 30 | return msg.str(); |
---|
| 31 | }; |
---|
| 32 | |
---|
| 33 | ostream& operator<< (ostream& output_stream , |
---|
[15] | 34 | morpheo::behavioural::generic::victim::victim_pseudo_lru::Statistics & x) |
---|
[10] | 35 | { |
---|
| 36 | output_stream << x.print(0); |
---|
| 37 | |
---|
| 38 | return output_stream; |
---|
| 39 | }; |
---|
| 40 | |
---|
[15] | 41 | }; // end namespace victim_pseudo_lru |
---|
[10] | 42 | }; // end namespace victim |
---|
| 43 | }; // end namespace generic |
---|
| 44 | |
---|
| 45 | }; // end namespace behavioural |
---|
| 46 | }; // end namespace morpheo |
---|
| 47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.