source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/src/Statistics_print.cpp @ 4

Last change on this file since 4 was 4, checked in by rosiere, 17 years ago
File size: 1.2 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/include/Statistics.h"
10
11#include <sstream>
12using namespace std;
13
14namespace morpheo {
15namespace behavioural {
16namespace stage_1_ifetch {
17namespace predictor {
18namespace meta_predictor {
19namespace meta_predictor_glue {
20
21
22  string Statistics::print (uint32_t depth)
23  {
24    log_printf(FUNC,Meta_Predictor_Glue,"print","Begin");
25
26    string        tab = string(depth,'\t');
27    ostringstream msg;
28
29    msg << tab << "<meta_predictor_glue name=\"" << _name << "\" >" << endl
30        << print_body(depth+1) << endl
31        << tab << "</meta_predictor_glue>" << endl;
32   
33    log_printf(FUNC,Meta_Predictor_Glue,"print","End");
34
35    return msg.str();
36  };
37
38  ostream& operator<< (ostream& output_stream ,
39                       morpheo::behavioural::stage_1_ifetch::predictor::meta_predictor::meta_predictor_glue::Statistics & x)
40  {
41    output_stream << x.print(0);
42
43    return output_stream;
44  };
45
46}; // end namespace meta_predictor_glue
47}; // end namespace meta_predictor
48}; // end namespace predictor
49}; // end namespace stage_1_ifetch
50
51}; // end namespace behavioural
52}; // end namespace morpheo             
53#endif
Note: See TracBrowser for help on using the repository browser.