sc_attr.cc revision 12898
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_attr.hh" 32 33namespace sc_core 34{ 35 36sc_attr_base::sc_attr_base(const std::string &) 37{ 38 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 39} 40 41sc_attr_base::sc_attr_base(const sc_attr_base &) 42{ 43 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 44} 45 46sc_attr_base::~sc_attr_base() 47{ 48 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 49} 50 51const std::string & 52sc_attr_base::name() const 53{ 54 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 55 return *(const std::string *)nullptr; 56} 57 58void 59sc_attr_base::warn_unimpl(const char *func) 60{ 61 warn("%s not implemented.\n", func); 62} 63 64sc_attr_cltn::iterator 65sc_attr_cltn::begin() 66{ 67 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 68 return (iterator)nullptr; 69} 70 71sc_attr_cltn::const_iterator 72sc_attr_cltn::begin() const 73{ 74 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 75 return (const_iterator)nullptr; 76} 77 78sc_attr_cltn::iterator 79sc_attr_cltn::end() 80{ 81 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 82 return (iterator)nullptr; 83} 84 85sc_attr_cltn::const_iterator 86sc_attr_cltn::end() const 87{ 88 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 89 return (const_iterator)nullptr; 90} 91 92sc_attr_cltn::sc_attr_cltn() 93{ 94 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 95} 96 97sc_attr_cltn::sc_attr_cltn(const sc_attr_cltn &) 98{ 99 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 100} 101 102sc_attr_cltn::~sc_attr_cltn() 103{ 104 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 105} 106 107bool 108sc_attr_cltn::push_back(sc_attr_base *) 109{ 110 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 111 return false; 112} 113 114sc_attr_base * 115sc_attr_cltn::operator [] (const std::string &name) 116{ 117 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 118 return nullptr; 119} 120 121const sc_attr_base * 122sc_attr_cltn::operator [] (const std::string &name) const 123{ 124 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 125 return nullptr; 126} 127 128sc_attr_base * 129sc_attr_cltn::remove(const std::string &name) 130{ 131 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 132 return nullptr; 133} 134 135void 136sc_attr_cltn::remove_all() 137{ 138 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 139} 140 141} // namespace sc_core 142