Deleted Added
sdiff udiff text old ( 12940:f191f383f3bf ) new ( 12950:af1f0b5e8dfb )
full compact
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

--- 13 unchanged lines hidden (view full) ---

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_object.hh"
32
33namespace sc_core
34{
35
36const char *
37sc_object::name() const
38{
39 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
40 return "sc_object";
41}
42
43const char *
44sc_object::basename() const
45{
46 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
47 return "sc_object";
48}
49
50const char *
51sc_object::kind() const
52{
53 return "sc_object";
54}
55
56void
57sc_object::print(std::ostream &out) const
58{
59 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
60}
61
62void
63sc_object::dump(std::ostream &out) const
64{
65 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
66}
67
68const std::vector<sc_object *> &
69sc_object::get_child_objects() const
70{
71 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
72 return *(const std::vector<sc_object *> *)nullptr;
73}
74
75const std::vector<sc_event *> &
76sc_object::get_child_events() const
77{
78 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
79 return *(const std::vector<sc_event *> *)nullptr;
80}
81
82sc_object *
83sc_object::get_parent_object() const
84{
85 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
86 return NULL;
87}
88
89bool
90sc_object::add_attribute(sc_attr_base &)
91{
92 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
93 return false;
94}
95
96sc_attr_base *
97sc_object::get_attribute(const std::string &)
98{
99 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
100 return NULL;
101}
102
103sc_attr_base *
104sc_object::remove_attribute(const std::string &)
105{
106 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
107 return NULL;
108}
109
110void
111sc_object::remove_all_attributes()
112{
113 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
114}
115
116int
117sc_object::num_attributes() const
118{
119 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
120 return 0;
121}
122
123sc_attr_cltn &
124sc_object::attr_cltn()
125{
126 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
127 return *(sc_attr_cltn *)NULL;
128}
129
130const sc_attr_cltn &
131sc_object::attr_cltn() const
132{
133 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
134 return *(sc_attr_cltn *)NULL;
135}
136
137sc_simcontext *
138sc_object::simcontext() const
139{
140 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
141 return nullptr;
142}
143
144sc_object::sc_object()
145{
146 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
147}
148
149sc_object::sc_object(const char *name)
150{
151 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
152}
153
154sc_object::sc_object(const sc_object &arg)
155{
156 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
157}
158
159sc_object &
160sc_object::operator = (const sc_object &)
161{
162 return *this;
163}
164
165sc_object::~sc_object()
166{
167 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
168}
169
170const std::vector<sc_object *> &
171sc_get_top_level_objects()
172{
173 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
174 return *(const std::vector<sc_object *> *)nullptr;
175}
176
177sc_object *
178sc_find_object(const char *)
179{
180 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
181 return NULL;
182}
183
184} // namespace sc_core