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