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/*
2 © 2013 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_TLM2SIMICS_GASKET_OWNER_H
15#define SIMICS_SYSTEMC_TLM2SIMICS_GASKET_OWNER_H
16
19
20namespace simics {
21namespace systemc {
22namespace tlm2simics {
23
30 public:
32 GasketOwner(const GasketOwner&) = delete;
34 virtual ~GasketOwner() = default;
35
36 virtual void set_gasket(GasketInterface::Ptr gasketInterface) {
37 FATAL_ERROR_IF(!gasketInterface, "GasketOwner initialized with NULL!");
38 // coverity[copy_instead_of_move:SUPPRESS] Ptr is a pointer
39 gasket_ = gasketInterface;
40 }
42 return gasket_;
43 }
44
45 protected:
47};
48
49} // namespace tlm2simics
50} // namespace systemc
51} // namespace simics
52
53#endif
std::shared_ptr< GasketInterface > Ptr
Definition: gasket_interface.h:30
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:29
GasketInterface::Ptr gasket_
Definition: gasket_owner.h:46
GasketOwner(const GasketOwner &)=delete
GasketOwner & operator=(const GasketOwner &)=delete
GasketOwner()
Definition: gasket_owner.h:31
virtual void set_gasket(GasketInterface::Ptr gasketInterface)
Definition: gasket_owner.h:36
GasketInterface::Ptr gasket() const
Definition: gasket_owner.h:41
Utility class that counts the number of instances.
Definition: null_gasket.h:32
Definition: adapter.h:79