SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Loading...
Searching...
No Matches
proxy_factory_vector.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2017 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_AWARENESS_PROXY_FACTORY_VECTOR_H
17#define SIMICS_SYSTEMC_AWARENESS_PROXY_FACTORY_VECTOR_H
18
22
23namespace simics {
24namespace systemc {
25namespace awareness {
26
27class ProxyFactoryVector : public ProxyFactory<ProxyVector> {
28 public:
29 virtual bool canManufacture(sc_core::sc_object *object) const {
30 return dynamic_cast<sc_core::sc_vector_base *>(object);
31 }
32
33 void registerInterfaces(sc_core::sc_object *object,
34 conf_class_t *cls) const {
36 registerInterface<iface::ScVectorSimicsAdapter<ProxyVector> >(cls);
37 }
38};
39
40} // namespace awareness
41} // namespace systemc
42} // namespace simics
43
44#endif
Definition: proxy_factory_vector.h:27
virtual bool canManufacture(sc_core::sc_object *object) const
Definition: proxy_factory_vector.h:29
void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory_vector.h:33
Definition: proxy_factory.h:44
virtual void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory.h:117
Definition: pci_bus_interface.h:24