source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Statistics_print.cpp @ 48

Last change on this file since 48 was 48, checked in by rosiere, 17 years ago

Modification des Makefile : pas de creation inutile de shell

File size: 1.4 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Statistics.h"
10
11#include <sstream>
12using namespace std;
13
14namespace morpheo {
15namespace behavioural {
16namespace core {
17namespace multi_front_end {
18namespace front_end {
19namespace prediction_unit {
20namespace direction {
21
22namespace meta_predictor {
23namespace 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 ,
43                       morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue::Statistics & x)
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
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
60}; // end namespace behavioural
61}; // end namespace morpheo             
62#endif
Note: See TracBrowser for help on using the repository browser.