SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1
/*
2
© 2014 Intel Corporation
3
4
This software and the related documents are Intel copyrighted materials, and
5
your use of them is governed by the express license under which they were
6
provided to you ("License"). Unless the License provides otherwise, you may
7
not use, modify, copy, publish, distribute, disclose or transmit this software
8
or the related documents without Intel's prior written permission.
9
10
This software and the related documents are provided as is, with no express or
11
implied warranties, other than those that are expressly stated in the License.
12
*/
13
14
#ifndef SIMICS_SYSTEMC_EVENT_H
15
#define SIMICS_SYSTEMC_EVENT_H
16
17
18
#include <systemc>
19
20
#include <string>
21
#include <vector>
22
23
namespace
simics
{
24
namespace
systemc {
25
27
class
Event
{
28
public
:
29
enum
Type
{
30
STATIC
,
31
EVENT
,
32
SIMICS_EVENT
,
33
OR_LIST
,
34
AND_LIST
,
35
TIMEOUT
,
36
EVENT_TIMEOUT
,
37
OR_LIST_TIMEOUT
,
38
AND_LIST_TIMEOUT
39
};
40
41
Event
(
const
sc_core::sc_time &
when
,
const
std::string &obj_name,
42
const
Type
&
type
,
const
std::string &
kind
=
""
);
43
Event
(
const
sc_core::sc_time &
when
,
const
std::string &obj_name,
44
int
type
,
const
std::string &
kind
=
""
);
45
46
sc_core::sc_time
when
()
const
;
47
std::string
what
()
const
;
48
std::string
kind
()
const
;
49
std::string
name
()
const
;
50
Type
type
()
const
;
51
52
private
:
53
sc_core::sc_time when_;
54
std::string obj_name_;
55
std::string kind_;
56
Type
type_;
57
};
58
59
typedef
std::vector<Event>
EventVector
;
60
61
}
// namespace systemc
62
}
// namespace simics
63
64
#endif
simics::systemc::Event
Definition:
event.h:27
simics::systemc::Event::kind
std::string kind() const
simics::systemc::Event::Event
Event(const sc_core::sc_time &when, const std::string &obj_name, const Type &type, const std::string &kind="")
simics::systemc::Event::Type
Type
Definition:
event.h:29
simics::systemc::Event::AND_LIST
@ AND_LIST
Definition:
event.h:34
simics::systemc::Event::OR_LIST
@ OR_LIST
Definition:
event.h:33
simics::systemc::Event::SIMICS_EVENT
@ SIMICS_EVENT
Definition:
event.h:32
simics::systemc::Event::TIMEOUT
@ TIMEOUT
Definition:
event.h:35
simics::systemc::Event::OR_LIST_TIMEOUT
@ OR_LIST_TIMEOUT
Definition:
event.h:37
simics::systemc::Event::EVENT
@ EVENT
Definition:
event.h:31
simics::systemc::Event::AND_LIST_TIMEOUT
@ AND_LIST_TIMEOUT
Definition:
event.h:38
simics::systemc::Event::STATIC
@ STATIC
Definition:
event.h:30
simics::systemc::Event::EVENT_TIMEOUT
@ EVENT_TIMEOUT
Definition:
event.h:36
simics::systemc::Event::when
sc_core::sc_time when() const
simics::systemc::Event::type
Type type() const
simics::systemc::Event::Event
Event(const sc_core::sc_time &when, const std::string &obj_name, int type, const std::string &kind="")
simics::systemc::Event::what
std::string what() const
simics::systemc::Event::name
std::string name() const
simics::systemc::EventVector
std::vector< Event > EventVector
Definition:
event.h:59
simics
Definition:
adapter.h:79