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