SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
simulation_deleter.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2016 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_SIMULATION_DELETER_H
17#define SIMICS_SYSTEMC_SIMULATION_DELETER_H
18
19
20#include <simics/cc-api.h>
21
22#include <systemc>
23#include <set>
24#include <string>
25
26namespace simics {
27namespace systemc {
28
30 public:
31 explicit SimulationDeleter(conf_object_t *adapter);
35 sc_core::sc_simcontext *context();
36
37 private:
38 static void atCreate(lang_void *simulation_deleter, conf_object_t *obj);
39 static void atDelete(lang_void *simulation_deleter, conf_object_t *obj,
40 const char *objname);
41 sc_core::sc_simcontext *context_;
42 bool context_allocated_;
43 std::set<std::string> object_names_;
44 static int instance_counter_;
45};
46
47} // namespace systemc
48} // namespace simics
49
50#endif
Definition: simulation_deleter.h:29
SimulationDeleter(conf_object_t *adapter)
SimulationDeleter(const SimulationDeleter &)=delete
SimulationDeleter & operator=(const SimulationDeleter &)=delete
sc_core::sc_simcontext * context()
Definition: pci_bus_interface.h:24