SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
gasket_owner.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2013 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_SIMICS2TLM_GASKET_OWNER_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_GASKET_OWNER_H
18
22
23namespace simics {
24namespace systemc {
25namespace simics2tlm {
26
32class GasketOwner : public ClassType {
33 public:
35 GasketOwner(const GasketOwner&) = delete;
37 virtual ~GasketOwner() = default;
38
39 void set_gasket(GasketInterface::Ptr gasketInterface) {
40 FATAL_ERROR_IF(!gasketInterface, "GasketOwner initialized with NULL!");
41 gasket_ = gasketInterface;
42 gasket_->set_type(this);
44 }
45 virtual void gasketUpdated() {}
47 return gasket_;
48 }
49 protected:
51};
52
53} // namespace simics2tlm
54} // namespace systemc
55} // namespace simics
56
57#endif
Definition: class_type.h:25
std::shared_ptr< GasketInterface > Ptr
Definition: gasket_interface.h:37
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:32
GasketOwner(const GasketOwner &)=delete
GasketInterface::Ptr gasket() const
Definition: gasket_owner.h:46
GasketOwner & operator=(const GasketOwner &)=delete
void set_gasket(GasketInterface::Ptr gasketInterface)
Definition: gasket_owner.h:39
GasketInterface::Ptr gasket_
Definition: gasket_owner.h:50
GasketOwner()
Definition: gasket_owner.h:34
virtual void gasketUpdated()
Definition: gasket_owner.h:45
Definition: null_gasket.h:34
Definition: pci_bus_interface.h:24