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
23namespace simics {
24namespace systemc {
25
27class Event {
28 public:
29 enum Type {
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
59typedef std::vector<Event> EventVector;
60
61} // namespace systemc
62} // namespace simics
63
64#endif
Definition: event.h:27
std::string kind() const
Event(const sc_core::sc_time &when, const std::string &obj_name, const Type &type, const std::string &kind="")
Type
Definition: event.h:29
@ AND_LIST
Definition: event.h:34
@ OR_LIST
Definition: event.h:33
@ SIMICS_EVENT
Definition: event.h:32
@ TIMEOUT
Definition: event.h:35
@ OR_LIST_TIMEOUT
Definition: event.h:37
@ EVENT
Definition: event.h:31
@ AND_LIST_TIMEOUT
Definition: event.h:38
@ STATIC
Definition: event.h:30
@ EVENT_TIMEOUT
Definition: event.h:36
sc_core::sc_time when() const
Event(const sc_core::sc_time &when, const std::string &obj_name, int type, const std::string &kind="")
std::string what() const
std::string name() const
std::vector< Event > EventVector
Definition: event.h:59
Definition: adapter.h:79