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