SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
class_decorator.h
Go to the documentation of this file.
1/* -*- C++ -*-
2
3 © 2018 Intel Corporation
4
5 This software and the related documents are Intel copyrighted materials, and
6 your use of them is governed by the express license under which they were
7 provided to you ("License"). Unless the License provides otherwise, you may
8 not use, modify, copy, publish, distribute, disclose or transmit this software
9 or the related documents without Intel's prior written permission.
10
11 This software and the related documents are provided as is, with no express or
12 implied warranties, other than those that are expressly stated in the License.
13*/
14
15#ifndef SIMICS_SYSTEMC_CLASS_DECORATOR_H
16#define SIMICS_SYSTEMC_CLASS_DECORATOR_H
17
20
21namespace simics {
22namespace systemc {
23
24template <class T>
25void SCLCompositeInit(...) {}
26
27template <class T>
29
30} // namespace systemc
31
32template <class T>
33void decorate_class(typename T::is_systemc_adapter, ConfClass *cls) {
34 systemc::SCLCompositePciInit<T>(nullptr, cls);
35 systemc::SCLCompositeInit<T>(nullptr, cls);
36 systemc::Adapter::initClassInternal<T>(cls);
37}
38
39} // namespace simics
40
41#endif
void SCLCompositePciInit(...)
Definition: class_decorator.h:28
void SCLCompositeInit(...)
Definition: class_decorator.h:25
Definition: pci_bus_interface.h:24
void decorate_class(typename T::is_systemc_adapter, ConfClass *cls)
Definition: class_decorator.h:33