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
19#if defined SIMICS_5_API || defined SIMICS_6_API
21#endif
23
24namespace simics {
25namespace systemc {
26
27template <class T>
28void SCLCompositeInit(...) {}
29
30template <class T>
32
33template <class T>
35
36} // namespace systemc
37
38template <class T>
39void decorate_class(typename T::is_systemc_adapter, ConfClass *cls) {
40#if defined SIMICS_5_API || defined SIMICS_6_API
41 systemc::SCLCompositePciInit<T>(nullptr, cls);
42#endif
43 systemc::SCLCompositeInit<T>(nullptr, cls);
44 systemc::SCLCompositePcieInit<T>(nullptr, cls);
45 systemc::Adapter::initClassInternal<T>(cls);
46}
47
48} // namespace simics
49
50#endif
void SCLCompositePcieInit(...)
Definition: class_decorator.h:34
void SCLCompositePciInit(...)
Definition: class_decorator.h:31
void SCLCompositeInit(...)
Definition: class_decorator.h:28
Definition: adapter.h:80
void decorate_class(typename T::is_systemc_adapter, ConfClass *cls)
Definition: class_decorator.h:39