SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
proxy_signal.h
Go to the documentation of this file.
1/*
2 © 2015 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_AWARENESS_PROXY_SIGNAL_H
15#define SIMICS_SYSTEMC_AWARENESS_PROXY_SIGNAL_H
16
17#include <systemc>
23
24#include <vector>
25
26namespace simics {
27namespace systemc {
28namespace awareness {
29
30class SignalCallbackAdapter;
31
42class ProxySignal : public Proxy,
45 public SignalReader,
46 public SignalWriter {
47 public:
48 explicit ProxySignal(simics::ConfObjectRef o);
49 ProxySignal(const ProxySignal&) = delete;
51 virtual ~ProxySignal();
52 void init(sc_core::sc_object *obj,
53 SimulationInterface *simulation) override;
54 void callback(const sc_core::sc_object &signal_object) override;
56
57 private:
58 std::vector<SignalCallbackInterface *> callbacks_;
59 SignalCallbackAdapter *adapter_;
60};
61
62} // namespace awareness
63} // namespace systemc
64} // namespace simics
65
66#endif
Definition: signal_callback_interface.h:23
Definition: proxy_signal.h:46
ProxySignal & operator=(const ProxySignal &)=delete
ProxySignal(const ProxySignal &)=delete
ProxySignal(simics::ConfObjectRef o)
void callback(const sc_core::sc_object &signal_object) override
void add_callback(SignalCallbackInterface *callback)
void init(sc_core::sc_object *obj, SimulationInterface *simulation) override
Definition: proxy.h:39
iface::SimulationInterface * simulation() override
Definition: signal_reader.h:28
Definition: signal_writer.h:28
Definition: tool_controller.h:72
Definition: adapter.h:79