TLM-2.0
2.0.3
Accellera TLM-2.0 proof-of-concept library
Main Page
Namespaces
Classes
Files
File List
File Members
tlm_core
tlm_1
tlm_analysis
tlm_analysis_triple.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
The following code is derived, directly or indirectly, from the SystemC
4
source code Copyright (c) 1996-2014 by all Contributors.
5
All Rights reserved.
6
7
The contents of this file are subject to the restrictions and limitations
8
set forth in the SystemC Open Source License (the "License");
9
You may not use this file except in compliance with such restrictions and
10
limitations. You may obtain instructions on how to receive a copy of the
11
License at http://www.accellera.org/. Software distributed by Contributors
12
under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13
ANY KIND, either express or implied. See the License for the specific
14
language governing rights and limitations under the License.
15
16
*****************************************************************************/
17
18
#ifndef __TLM_ANALYSIS_TRIPLE_H__
19
#define __TLM_ANALYSIS_TRIPLE_H__
20
21
//#include <systemc>
22
23
namespace
tlm {
24
25
template
<
typename
T>
26
struct
tlm_analysis_triple
{
27
28
sc_core::sc_time
start_time
;
29
T
transaction
;
30
sc_core::sc_time
end_time
;
31
32
tlm_analysis_triple
() {}
33
34
tlm_analysis_triple
(
const
tlm_analysis_triple
&triple ) {
35
start_time
= triple.
start_time
;
36
transaction
= triple.
transaction
;
37
end_time
= triple.
end_time
;
38
}
39
40
tlm_analysis_triple
(
const
T &t ) {
41
transaction
= t;
42
}
43
44
operator
T() {
return
transaction
; }
45
operator
const
T &()
const
{
return
transaction
; }
46
47
};
48
49
}
// namespace tlm
50
51
#endif
tlm::tlm_analysis_triple::start_time
sc_core::sc_time start_time
Definition:
tlm_analysis_triple.h:28
tlm::tlm_analysis_triple
Definition:
tlm_analysis_triple.h:26
tlm::tlm_analysis_triple::tlm_analysis_triple
tlm_analysis_triple(const tlm_analysis_triple &triple)
Definition:
tlm_analysis_triple.h:34
tlm::tlm_analysis_triple::end_time
sc_core::sc_time end_time
Definition:
tlm_analysis_triple.h:30
tlm::tlm_analysis_triple::tlm_analysis_triple
tlm_analysis_triple(const T &t)
Definition:
tlm_analysis_triple.h:40
tlm::tlm_analysis_triple::transaction
T transaction
Definition:
tlm_analysis_triple.h:29
tlm::tlm_analysis_triple::tlm_analysis_triple
tlm_analysis_triple()
Definition:
tlm_analysis_triple.h:32
sc_core::sc_time
Generated on Thu Jun 19 2014 07:42:05 for TLM-2.0 by
1.8.6