[4] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: Statistics_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[48] | 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Statistics.h" |
---|
[4] | 10 | |
---|
| 11 | #include <sstream> |
---|
| 12 | using namespace std; |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
[48] | 16 | namespace core { |
---|
| 17 | namespace multi_front_end { |
---|
| 18 | namespace front_end { |
---|
| 19 | namespace prediction_unit { |
---|
| 20 | namespace direction { |
---|
| 21 | |
---|
[4] | 22 | namespace meta_predictor { |
---|
| 23 | namespace meta_predictor_glue { |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | string Statistics::print (uint32_t depth) |
---|
| 27 | { |
---|
| 28 | log_printf(FUNC,Meta_Predictor_Glue,"print","Begin"); |
---|
| 29 | |
---|
| 30 | string tab = string(depth,'\t'); |
---|
| 31 | ostringstream msg; |
---|
| 32 | |
---|
| 33 | msg << tab << "<meta_predictor_glue name=\"" << _name << "\" >" << endl |
---|
| 34 | << print_body(depth+1) << endl |
---|
| 35 | << tab << "</meta_predictor_glue>" << endl; |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Meta_Predictor_Glue,"print","End"); |
---|
| 38 | |
---|
| 39 | return msg.str(); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | ostream& operator<< (ostream& output_stream , |
---|
[48] | 43 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue::Statistics & x) |
---|
[4] | 44 | { |
---|
| 45 | output_stream << x.print(0); |
---|
| 46 | |
---|
| 47 | return output_stream; |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | }; // end namespace meta_predictor_glue |
---|
| 51 | }; // end namespace meta_predictor |
---|
| 52 | |
---|
[48] | 53 | }; // end namespace core |
---|
| 54 | }; // end namespace multi_front_end |
---|
| 55 | }; // end namespace front_end |
---|
| 56 | }; // end namespace prediction_unit |
---|
| 57 | }; // end namespace direction |
---|
| 58 | |
---|
| 59 | |
---|
[4] | 60 | }; // end namespace behavioural |
---|
| 61 | }; // end namespace morpheo |
---|
| 62 | #endif |
---|