[110] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace direction { |
---|
| 18 | namespace meta_predictor { |
---|
| 19 | namespace two_level_branch_predictor { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #undef FUNCTION |
---|
| 23 | #define FUNCTION "Two_Level_Branch_Predictor::print" |
---|
| 24 | std::string Parameters::print (uint32_t depth) |
---|
| 25 | { |
---|
| 26 | log_begin(Two_Level_Branch_Predictor,FUNCTION); |
---|
| 27 | |
---|
| 28 | XML xml ("two_level_branch_predictor"); |
---|
| 29 | |
---|
| 30 | xml.balise_open("two_level_branch_predictor"); |
---|
| 31 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
| 32 | xml.balise_close(); |
---|
| 33 | |
---|
| 34 | log_end(Two_Level_Branch_Predictor,FUNCTION); |
---|
| 35 | |
---|
| 36 | return xml.get_body(depth); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | #undef FUNCTION |
---|
| 40 | #define FUNCTION "Two_Level_Branch_Predictor::operator<<" |
---|
| 41 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 42 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters & x) |
---|
| 43 | { |
---|
| 44 | log_begin(Two_Level_Branch_Predictor,FUNCTION); |
---|
| 45 | |
---|
| 46 | output_stream << x.print(0); |
---|
| 47 | |
---|
| 48 | log_end(Two_Level_Branch_Predictor,FUNCTION); |
---|
| 49 | |
---|
| 50 | return output_stream; |
---|
| 51 | }; |
---|
| 52 | |
---|
| 53 | }; // end namespace two_level_branch_predictor |
---|
| 54 | }; // end namespace meta_predictor |
---|
| 55 | }; // end namespace direction |
---|
| 56 | }; // end namespace prediction_unit |
---|
| 57 | }; // end namespace front_end |
---|
| 58 | }; // end namespace multi_front_end |
---|
| 59 | }; // end namespace core |
---|
| 60 | |
---|
| 61 | }; // end namespace behavioural |
---|
| 62 | }; // end namespace morpheo |
---|