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