sc_process_handle.cc revision 12838
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in the
10 * documentation and/or other materials provided with the distribution;
11 * neither the name of the copyright holders nor the names of its
12 * contributors may be used to endorse or promote products derived from
13 * this software without specific prior written permission.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/ext/core/sc_process_handle.hh"
32
33namespace sc_core
34{
35
36const char *
37sc_unwind_exception::what() const throw()
38{
39    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
40    return "";
41}
42
43bool
44sc_unwind_exception::is_reset() const
45{
46    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
47    return false;
48}
49
50sc_unwind_exception::sc_unwind_exception()
51{
52    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
53}
54
55sc_unwind_exception::sc_unwind_exception(const sc_unwind_exception &)
56{
57    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
58}
59
60sc_unwind_exception::~sc_unwind_exception() throw()
61{
62    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
63}
64
65
66sc_process_handle::sc_process_handle()
67{
68    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
69}
70
71sc_process_handle::sc_process_handle(const sc_process_handle &)
72{
73    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
74}
75
76sc_process_handle::sc_process_handle(sc_object *)
77{
78    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
79}
80
81sc_process_handle::~sc_process_handle()
82{
83    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
84}
85
86
87bool
88sc_process_handle::valid() const
89{
90    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
91    return false;
92}
93
94
95sc_process_handle &
96sc_process_handle::operator = (const sc_process_handle &)
97{
98    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
99    return *this;
100}
101
102bool
103sc_process_handle::operator == (const sc_process_handle &) const
104{
105    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
106    return true;
107}
108
109bool
110sc_process_handle::operator != (const sc_process_handle &) const
111{
112    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
113    return false;
114}
115
116bool
117sc_process_handle::operator < (const sc_process_handle &) const
118{
119    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
120    return false;
121}
122
123bool
124sc_process_handle::swap(sc_process_handle &)
125{
126    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
127    return false;
128}
129
130
131const char *
132sc_process_handle::name() const
133{
134    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
135    return "";
136}
137
138sc_curr_proc_kind
139sc_process_handle::proc_kind() const
140{
141    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
142    return SC_NO_PROC_;
143}
144
145const std::vector<sc_object *> &
146sc_process_handle::get_child_objects() const
147{
148    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
149    return *(const std::vector<sc_object *> *)nullptr;
150}
151
152const std::vector<sc_event *> &
153sc_process_handle::get_child_events() const
154{
155    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
156    return *(const std::vector<sc_event *> *)nullptr;
157}
158
159sc_object *
160sc_process_handle::get_parent_object() const
161{
162    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
163    return (sc_object *)nullptr;
164}
165
166sc_object *
167sc_process_handle::get_process_object() const
168{
169    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
170    return (sc_object *)nullptr;
171}
172
173bool
174sc_process_handle::dynamic() const
175{
176    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
177    return false;
178}
179
180bool
181sc_process_handle::terminated() const
182{
183    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
184    return false;
185}
186
187const sc_event &
188sc_process_handle::terminated_event() const
189{
190    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
191    return *(sc_event *)nullptr;
192}
193
194
195void
196sc_process_handle::suspend(sc_descendent_inclusion_info include_descendants)
197{
198    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
199}
200
201void
202sc_process_handle::resume(sc_descendent_inclusion_info include_descendants)
203{
204    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
205}
206
207void
208sc_process_handle::disable(sc_descendent_inclusion_info include_descendants)
209{
210    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
211}
212
213void
214sc_process_handle::enable(sc_descendent_inclusion_info include_descendants)
215{
216    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
217}
218
219void
220sc_process_handle::kill(sc_descendent_inclusion_info include_descendants)
221{
222    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
223}
224
225void
226sc_process_handle::reset(sc_descendent_inclusion_info include_descendants)
227{
228    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
229}
230
231bool
232sc_process_handle::is_unwinding()
233{
234    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
235    return false;
236}
237
238const sc_event &
239sc_process_handle::reset_event() const
240{
241    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
242    return *(sc_event *)nullptr;
243}
244
245
246void
247sc_process_handle::sync_reset_on(
248        sc_descendent_inclusion_info include_descendants)
249{
250    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
251}
252
253void
254sc_process_handle::sync_reset_off(
255        sc_descendent_inclusion_info include_descendants)
256{
257    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
258}
259
260void
261sc_process_handle::warn_unimpl(const char *func)
262{
263    warn("%s not implemented.\n", func);
264}
265
266
267sc_process_handle
268sc_get_current_process_handle()
269{
270    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
271    return sc_process_handle();
272}
273
274bool
275sc_is_unwinding()
276{
277    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
278    return false;
279}
280
281} // namespace sc_core
282