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_TLM2SIMICS_GASKET_OWNER_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_GASKET_OWNER_H
18
21
22namespace simics {
23namespace systemc {
24namespace tlm2simics {
25
32 public:
34 GasketOwner(const GasketOwner&) = delete;
36 virtual ~GasketOwner() = default;
37
38 virtual void set_gasket(GasketInterface::Ptr gasketInterface) {
39 FATAL_ERROR_IF(!gasketInterface, "GasketOwner initialized with NULL!");
40 gasket_ = gasketInterface;
41 }
43 return gasket_;
44 }
45
46 protected:
48};
49
50} // namespace tlm2simics
51} // namespace systemc
52} // namespace simics
53
54#endif
std::shared_ptr< GasketInterface > Ptr
Definition: gasket_interface.h:32
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:31
GasketInterface::Ptr gasket_
Definition: gasket_owner.h:47
GasketOwner(const GasketOwner &)=delete
GasketOwner & operator=(const GasketOwner &)=delete
GasketOwner()
Definition: gasket_owner.h:33
virtual void set_gasket(GasketInterface::Ptr gasketInterface)
Definition: gasket_owner.h:38
GasketInterface::Ptr gasket() const
Definition: gasket_owner.h:42
Utility class that counts the number of instances.
Definition: null_gasket.h:34
Definition: pci_bus_interface.h:24