[2] | 1 | #ifdef STATISTICS |
---|
| 2 | #ifndef morpheo_behavioural_generic_registerfile_Statistics_h |
---|
| 3 | #define morpheo_behavioural_generic_registerfile_Statistics_h |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * $Id$ |
---|
| 7 | * |
---|
| 8 | * [ Description ] |
---|
| 9 | * |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | #include "Include/Debug.h" |
---|
| 13 | #include "Behavioural/include/Statistics.h" |
---|
| 14 | #include "Behavioural/include/Parameters_Statistics.h" |
---|
| 15 | #include "Behavioural/Generic/Group/include/Statistics.h" |
---|
| 16 | #include "Behavioural/Generic/RegisterFile/include/Parameters.h" |
---|
| 17 | |
---|
| 18 | using namespace morpheo::behavioural::generic::group; |
---|
| 19 | |
---|
| 20 | namespace morpheo { |
---|
| 21 | namespace behavioural { |
---|
| 22 | namespace generic { |
---|
| 23 | namespace registerfile { |
---|
| 24 | |
---|
| 25 | class Statistics : public morpheo::behavioural::Statistics |
---|
| 26 | { |
---|
| 27 | // -----[ fields ]---------------------------------------------------- |
---|
| 28 | private : const Parameters _parameters; |
---|
| 29 | private : morpheo::behavioural::generic::group::Statistics * _stat_port_read; |
---|
| 30 | private : morpheo::behavioural::generic::group::Statistics * _stat_port_write; |
---|
| 31 | |
---|
| 32 | // -----[ methods ]--------------------------------------------------- |
---|
| 33 | public : Statistics (string name , |
---|
| 34 | morpheo::behavioural::Parameters_Statistics parameters_statistics , |
---|
| 35 | Parameters parameters |
---|
| 36 | ); |
---|
| 37 | //public : Statistics (Statistics & stat); |
---|
| 38 | public : ~Statistics () ; |
---|
| 39 | |
---|
| 40 | public : string print_body (uint32_t depth); |
---|
| 41 | public : string print (uint32_t depth); |
---|
| 42 | public : void add (uint32_t nb_read, |
---|
| 43 | uint32_t nb_write); |
---|
| 44 | |
---|
| 45 | public : friend ostream& operator<< (ostream& output_stream, |
---|
| 46 | const Statistics & x); |
---|
| 47 | |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | }; // end namespace registerfile |
---|
| 51 | }; // end namespace generic |
---|
| 52 | }; // end namespace behavioural |
---|
| 53 | }; // end namespace morpheo |
---|
| 54 | |
---|
| 55 | #endif |
---|
| 56 | #endif |
---|