#ifdef STATISTICS
#ifndef morpheo_behavioural_generic_registerfile_Statistics_h
#define morpheo_behavioural_generic_registerfile_Statistics_h

/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Include/Debug.h"
#include "Behavioural/include/Statistics.h"
#include "Behavioural/include/Parameters_Statistics.h"
#include "Behavioural/Generic/Group/include/Statistics.h"
#include "Behavioural/Generic/RegisterFile/include/Parameters.h"

using namespace morpheo::behavioural::generic::group;

namespace morpheo                    {
namespace behavioural                {
namespace generic                    {
namespace registerfile               {

  class Statistics : public morpheo::behavioural::Statistics
  {
    // -----[ fields ]----------------------------------------------------
  private  : const Parameters                                   _parameters;
  private  : morpheo::behavioural::generic::group::Statistics * _stat_port_read;
  private  : morpheo::behavioural::generic::group::Statistics * _stat_port_write;

    // -----[ methods ]---------------------------------------------------
  public   : Statistics (string                                      name                       ,
			 morpheo::behavioural::Parameters_Statistics parameters_statistics      ,
			 Parameters                                  parameters
			 );
//public   : Statistics (Statistics & stat);
  public   : ~Statistics () ;
    
  public   : string   print_body (uint32_t depth);
  public   : string   print      (uint32_t depth);
  public   : void     add        (uint32_t nb_read,
				  uint32_t nb_write);

  public   : friend ostream& operator<< (ostream& output_stream,
					 const Statistics & x);

  };

}; // end namespace registerfile 
}; // end namespace generic
}; // end namespace behavioural
}; // end namespace morpheo

#endif
#endif
