| 1 | |
| 2 | #ifndef ANALYSIS_TRIPLE |
| 3 | #define ANALYSIS_TRIPLE |
| 4 | |
| 5 | #include "systemc.h" |
| 6 | |
| 7 | template< typename T> |
| 8 | struct analysis_triple { |
| 9 | |
| 10 | sc_time start_time; |
| 11 | T transaction; |
| 12 | sc_time end_time; |
| 13 | |
| 14 | analysis_triple() {} |
| 15 | |
| 16 | analysis_triple( const analysis_triple &triple ) { |
| 17 | start_time = triple.start_time; |
| 18 | transaction = triple.transaction; |
| 19 | end_time = triple.end_time; |
| 20 | } |
| 21 | |
| 22 | analysis_triple( const T &t ) { |
| 23 | transaction = t; |
| 24 | } |
| 25 | |
| 26 | operator T() { return transaction; } |
| 27 | operator const T &() const { return transaction; } |
| 28 | |
| 29 | }; |
| 30 | |
| 31 | |
| 32 | #endif |