Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / model / vendor / TLM-2006-11-29 / tlm / analysis / analysis_triple.h
CommitLineData
86530b38
AT
1
2#ifndef ANALYSIS_TRIPLE
3#define ANALYSIS_TRIPLE
4
5#include "systemc.h"
6
7template< typename T>
8struct 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