1 | /* |
---|
2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Parameters.h" |
---|
9 | #include "Behavioural/include/XML.h" |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_front_end { |
---|
16 | namespace front_end { |
---|
17 | namespace prediction_unit { |
---|
18 | namespace direction { |
---|
19 | |
---|
20 | namespace meta_predictor { |
---|
21 | namespace meta_predictor_glue { |
---|
22 | |
---|
23 | |
---|
24 | string Parameters::print (uint32_t depth) |
---|
25 | { |
---|
26 | log_printf(FUNC,Meta_Predictor_Glue,"print","Begin"); |
---|
27 | |
---|
28 | XML xml ("meta_predictor_glue"); |
---|
29 | |
---|
30 | xml.balise_open("meta_predictor_glue"); |
---|
31 | |
---|
32 | xml. singleton_begin("have_meta_predictor "); |
---|
33 | xml. attribut("value",toString(_have_meta_predictor )); |
---|
34 | xml. singleton_end(); |
---|
35 | |
---|
36 | xml. singleton_begin("predictor_0_have_bht "); |
---|
37 | xml. attribut("value",toString(_predictor_0_have_bht )); |
---|
38 | xml. singleton_end(); |
---|
39 | xml. singleton_begin("predictor_0_bht_size_shifter "); |
---|
40 | xml. attribut("value",toString(_predictor_0_bht_size_shifter )); |
---|
41 | xml. singleton_end(); |
---|
42 | xml. singleton_begin("predictor_0_have_pht "); |
---|
43 | xml. attribut("value",toString(_predictor_0_have_pht )); |
---|
44 | xml. singleton_end(); |
---|
45 | xml. singleton_begin("predictor_0_pht_size_counter "); |
---|
46 | xml. attribut("value",toString(_predictor_0_pht_size_counter )); |
---|
47 | xml. singleton_end(); |
---|
48 | |
---|
49 | xml. singleton_begin("predictor_1_have_bht "); |
---|
50 | xml. attribut("value",toString(_predictor_1_have_bht )); |
---|
51 | xml. singleton_end(); |
---|
52 | xml. singleton_begin("predictor_1_bht_size_shifter "); |
---|
53 | xml. attribut("value",toString(_predictor_1_bht_size_shifter )); |
---|
54 | xml. singleton_end(); |
---|
55 | xml. singleton_begin("predictor_1_have_pht "); |
---|
56 | xml. attribut("value",toString(_predictor_1_have_pht )); |
---|
57 | xml. singleton_end(); |
---|
58 | xml. singleton_begin("predictor_1_pht_size_counter "); |
---|
59 | xml. attribut("value",toString(_predictor_1_pht_size_counter )); |
---|
60 | xml. singleton_end(); |
---|
61 | |
---|
62 | xml. singleton_begin("predictor_2_have_bht "); |
---|
63 | xml. attribut("value",toString(_predictor_2_have_bht )); |
---|
64 | xml. singleton_end(); |
---|
65 | xml. singleton_begin("predictor_2_bht_size_shifter "); |
---|
66 | xml. attribut("value",toString(_predictor_2_bht_size_shifter )); |
---|
67 | xml. singleton_end(); |
---|
68 | xml. singleton_begin("predictor_2_have_pht "); |
---|
69 | xml. attribut("value",toString(_predictor_2_have_pht )); |
---|
70 | xml. singleton_end(); |
---|
71 | xml. singleton_begin("predictor_2_pht_size_counter "); |
---|
72 | xml. attribut("value",toString(_predictor_2_pht_size_counter )); |
---|
73 | xml. singleton_end(); |
---|
74 | |
---|
75 | xml. singleton_begin("nb_prediction "); |
---|
76 | xml. attribut("value",toString(_nb_prediction )); |
---|
77 | xml. singleton_end(); |
---|
78 | xml. singleton_begin("nb_branch_complete "); |
---|
79 | xml. attribut("value",toString(_nb_branch_complete )); |
---|
80 | xml. singleton_end(); |
---|
81 | |
---|
82 | xml.balise_close(); |
---|
83 | |
---|
84 | log_printf(FUNC,Meta_Predictor_Glue,"print","End"); |
---|
85 | |
---|
86 | return xml.get_body(depth); |
---|
87 | }; |
---|
88 | |
---|
89 | ostream& operator<< (ostream& output_stream , |
---|
90 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue::Parameters & x) |
---|
91 | { |
---|
92 | output_stream << x.print(0); |
---|
93 | |
---|
94 | return output_stream; |
---|
95 | }; |
---|
96 | |
---|
97 | }; // end namespace meta_predictor_glue |
---|
98 | }; // end namespace meta_predictor |
---|
99 | |
---|
100 | }; // end namespace core |
---|
101 | }; // end namespace multi_front_end |
---|
102 | }; // end namespace front_end |
---|
103 | }; // end namespace prediction_unit |
---|
104 | }; // end namespace direction |
---|
105 | |
---|
106 | |
---|
107 | }; // end namespace behavioural |
---|
108 | }; // end namespace morpheo |
---|