sc_attr.cc revision 12837:413a7b490b1b
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
92} // namespace sc_core
93