SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
sc_export_connection.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2015 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_SC_EXPORT_CONNECTION_H
17#define SIMICS_SYSTEMC_AWARENESS_SC_EXPORT_CONNECTION_H
18
19
20
21#include <systemc>
24
25#include <map>
26#include <set>
27#include <string>
28#include <utility>
29#include <vector>
30
31namespace simics {
32namespace systemc {
33namespace awareness {
34
41 public:
42 typedef std::pair<sc_core::sc_interface *, std::string> keytype;
43 typedef std::vector<sc_core::sc_export_base *> valuetype;
44
46 void init(sc_core::sc_object *object,
47 iface::SimulationInterface *simulation);
48 virtual conf_object_t *export_to_proxy();
49 virtual const char *if_typename();
50 void insertKey(keytype key);
51 static std::vector<sc_core::sc_export_base *> findExport(keytype key);
52 static void addBinderExport(keytype key, sc_core::sc_export_base *obj);
53 static void removeBinderExport(keytype key, sc_core::sc_export_base *obj);
55
56 protected:
57 static std::map<keytype, valuetype> exports_;
58
59 private:
60 int countLevels(sc_core::sc_object *object);
61 bool isPartOfModule(sc_core::sc_object *object);
62 std::set<keytype> keys_;
63 sc_core::sc_export_base *base_;
64 sc_core::sc_interface *iface_;
65 int levels_;
66 iface::SimulationInterface *simulation_;
67};
68
69} // namespace awareness
70} // namespace systemc
71} // namespace simics
72
73#endif
Definition: sc_export_connection.h:40
std::vector< sc_core::sc_export_base * > valuetype
Definition: sc_export_connection.h:43
static void removeBinderExport(keytype key, sc_core::sc_export_base *obj)
std::pair< sc_core::sc_interface *, std::string > keytype
Definition: sc_export_connection.h:42
static std::map< keytype, valuetype > exports_
Definition: sc_export_connection.h:57
void init(sc_core::sc_object *object, iface::SimulationInterface *simulation)
static void addBinderExport(keytype key, sc_core::sc_export_base *obj)
static std::vector< sc_core::sc_export_base * > findExport(keytype key)
Definition: sc_export_interface.h:28
Interface to the SystemC simulation.
Definition: simulation_interface.h:27
Definition: pci_bus_interface.h:24