sc_object.cc revision 12837:413a7b490b1b
12SN/A/*
29448SAndreas.Sandberg@ARM.com * Copyright 2018 Google, Inc.
39920Syasuko.eckert@amd.com *
47338SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without
57338SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are
67338SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright
77338SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer;
87338SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright
97338SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the
107338SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution;
117338SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its
127338SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from
137338SAli.Saidi@ARM.com * this software without specific prior written permission.
147338SAli.Saidi@ARM.com *
151762SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
162SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
172SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
182SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
192SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
202SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
212SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
222SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
232SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
242SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262SN/A *
272SN/A * Authors: Gabe Black
282SN/A */
292SN/A
302SN/A#include "base/logging.hh"
312SN/A#include "systemc/ext/core/sc_object.hh"
322SN/A
332SN/Anamespace sc_core
342SN/A{
352SN/A
362SN/Aconst char *
372SN/Asc_object::name() const
382SN/A{
392SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
402665Ssaidi@eecs.umich.edu    return "sc_object";
412665Ssaidi@eecs.umich.edu}
422SN/A
432SN/Aconst char *
448779Sgblack@eecs.umich.edusc_object::basename() const
458779Sgblack@eecs.umich.edu{
468779Sgblack@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
472439SN/A    return "sc_object";
488779Sgblack@eecs.umich.edu}
498229Snate@binkert.org
506216Snate@binkert.orgconst char *
51146SN/Asc_object::kind() const
52146SN/A{
53146SN/A    return "sc_object";
54146SN/A}
55146SN/A
566216Snate@binkert.orgvoid
576658Snate@binkert.orgsc_object::print(std::ostream &out) const
588229Snate@binkert.org{
591717SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
608887Sgeoffrey.blake@arm.com}
618887Sgeoffrey.blake@arm.com
62146SN/Avoid
6310061Sandreas@sandberg.pp.sesc_object::dump(std::ostream &out) const
641977SN/A{
652683Sktlim@umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
661717SN/A}
67146SN/A
682683Sktlim@umich.educonst std::vector<sc_object *> &
698232Snate@binkert.orgsc_object::get_child_objects() const
708232Snate@binkert.org{
718232Snate@binkert.org    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
728779Sgblack@eecs.umich.edu    return *(const std::vector<sc_object *> *)nullptr;
733348Sbinkertn@umich.edu}
746105Ssteve.reinhardt@amd.com
756216Snate@binkert.orgconst std::vector<sc_event *> &
762036SN/Asc_object::get_child_events() const
77146SN/A{
788817Sgblack@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
798793Sgblack@eecs.umich.edu    return *(const std::vector<sc_event *> *)nullptr;
8056SN/A}
8156SN/A
82695SN/Asc_object *
832901Ssaidi@eecs.umich.edusc_object::get_parent_object() const
842SN/A{
852SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
862449SN/A    return NULL;
871355SN/A}
885529Snate@binkert.org
8910061Sandreas@sandberg.pp.sebool
9010061Sandreas@sandberg.pp.sesc_object::add_attribute(sc_attr_base &)
9110537Sandreas.hansson@arm.com{
9210537Sandreas.hansson@arm.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
93224SN/A    return false;
948793Sgblack@eecs.umich.edu}
959384SAndreas.Sandberg@arm.com
969384SAndreas.Sandberg@arm.comsc_attr_base *
978793Sgblack@eecs.umich.edusc_object::get_attribute(const std::string &)
988820Sgblack@eecs.umich.edu{
999384SAndreas.Sandberg@arm.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1002SN/A    return NULL;
1016029Ssteve.reinhardt@amd.com}
1022672Sktlim@umich.edu
1032683Sktlim@umich.edusc_attr_base *
1042SN/Asc_object::remove_attribute(const std::string &)
1058733Sgeoffrey.blake@arm.com{
1068733Sgeoffrey.blake@arm.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1078733Sgeoffrey.blake@arm.com    return NULL;
1088733Sgeoffrey.blake@arm.com}
1098733Sgeoffrey.blake@arm.com
1108733Sgeoffrey.blake@arm.comvoid
1118733Sgeoffrey.blake@arm.comsc_object::remove_all_attributes()
1128733Sgeoffrey.blake@arm.com{
1138733Sgeoffrey.blake@arm.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1148733Sgeoffrey.blake@arm.com}
1158733Sgeoffrey.blake@arm.com
1162SN/Aint
117334SN/Asc_object::num_attributes() const
1188834Satgutier@umich.edu{
1198834Satgutier@umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
120140SN/A    return 0;
121334SN/A}
1222SN/A
1232SN/Asc_attr_cltn &
1242SN/Asc_object::attr_cltn()
1252680Sktlim@umich.edu{
1264377Sgblack@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1275169Ssaidi@eecs.umich.edu    return *(sc_attr_cltn *)NULL;
1284377Sgblack@eecs.umich.edu}
1294377Sgblack@eecs.umich.edu
1302SN/Aconst sc_attr_cltn &
1312SN/Asc_object::attr_cltn() const
1322623SN/A{
1332SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1342SN/A    return *(sc_attr_cltn *)NULL;
1352SN/A}
136180SN/A
1378737Skoansin.tan@gmail.comsc_object::sc_object()
138393SN/A{
139393SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
140393SN/A}
141393SN/A
142384SN/Asc_object::sc_object(const char *name)
143189SN/A{
144189SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1452623SN/A}
1462SN/A
147729SN/Asc_object::sc_object(const sc_object &arg)
148334SN/A{
1492SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1502SN/A}
1512SN/A
1528834Satgutier@umich.edusc_object &
1538834Satgutier@umich.edusc_object::operator = (const sc_object &)
1548834Satgutier@umich.edu{
1558834Satgutier@umich.edu    return *this;
1568834Satgutier@umich.edu}
1578834Satgutier@umich.edu
1588834Satgutier@umich.edusc_object::~sc_object()
1592SN/A{
1602SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1617897Shestness@cs.utexas.edu}
1627897Shestness@cs.utexas.edu
1637897Shestness@cs.utexas.educonst std::vector<sc_object *> &
1647897Shestness@cs.utexas.edusc_get_top_level_objects()
1657897Shestness@cs.utexas.edu{
1667897Shestness@cs.utexas.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1677897Shestness@cs.utexas.edu    return *(const std::vector<sc_object *> *)nullptr;
1687897Shestness@cs.utexas.edu}
1697897Shestness@cs.utexas.edu
1707897Shestness@cs.utexas.edusc_object *
1717897Shestness@cs.utexas.edusc_find_object(const char *)
1727897Shestness@cs.utexas.edu{
1737897Shestness@cs.utexas.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1747897Shestness@cs.utexas.edu    return NULL;
1757897Shestness@cs.utexas.edu}
1767897Shestness@cs.utexas.edu
1777897Shestness@cs.utexas.edu} // namespace sc_core
1787897Shestness@cs.utexas.edu