summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2017-02-13 21:07:09 +0100
committer couriersud <couriersud@gmx.org>2017-02-15 01:01:50 +0100
commit74e690d654b64cf57e0491d9ae3ed6ae72623ff3 (patch)
tree0cd17c6f3f55b17facf79a9994a1202220d02b77 /src/lib/netlist
parent1fc36f97c18fdc8b7c089dbdb1e6b5bdcaf97004 (diff)
Move inline constructors from header to cpp. (nw)
Diffstat (limited to 'src/lib/netlist')
-rw-r--r--src/lib/netlist/nl_base.cpp27
-rw-r--r--src/lib/netlist/nl_base.h21
2 files changed, 33 insertions, 15 deletions
diff --git a/src/lib/netlist/nl_base.cpp b/src/lib/netlist/nl_base.cpp
index bd1c6dcb9d0..3026a35cc34 100644
--- a/src/lib/netlist/nl_base.cpp
+++ b/src/lib/netlist/nl_base.cpp
@@ -699,6 +699,16 @@ plib::plog_base<NL_DEBUG> &core_device_t::log()
// device_t
// ----------------------------------------------------------------------------------------
+device_t::device_t(netlist_t &owner, const pstring &name)
+: core_device_t(owner, name)
+{
+}
+
+device_t::device_t(core_device_t &owner, const pstring &name)
+: core_device_t(owner, name)
+{
+}
+
device_t::~device_t()
{
//log().debug("~net_device_t\n");
@@ -979,10 +989,22 @@ void detail::core_terminal_t::clear_net()
m_net = nullptr;
}
+analog_t::analog_t(core_device_t &dev, const pstring &aname, const state_e state)
+: core_terminal_t(dev, aname, state)
+{
+}
+
analog_t::~analog_t()
{
}
+logic_t::logic_t(core_device_t &dev, const pstring &aname, const state_e state)
+ : core_terminal_t(dev, aname, state)
+ , logic_family_t()
+ , m_proxy(nullptr)
+{
+}
+
logic_t::~logic_t()
{
}
@@ -1240,6 +1262,11 @@ nl_double param_model_t::model_value(const pstring &entity)
return netlist().setup().model_value(m_map, entity);
}
+param_data_t::param_data_t(device_t &device, const pstring name)
+: param_str_t(device, name, "")
+{
+}
+
void param_data_t::changed()
{
}
diff --git a/src/lib/netlist/nl_base.h b/src/lib/netlist/nl_base.h
index 9b353da4370..981c9f886b8 100644
--- a/src/lib/netlist/nl_base.h
+++ b/src/lib/netlist/nl_base.h
@@ -528,10 +528,7 @@ namespace netlist
{
public:
- analog_t(core_device_t &dev, const pstring &aname, const state_e state)
- : core_terminal_t(dev, aname, state)
- {
- }
+ analog_t(core_device_t &dev, const pstring &aname, const state_e state);
virtual ~analog_t();
const analog_net_t & net() const NL_NOEXCEPT;
@@ -603,12 +600,7 @@ namespace netlist
class logic_t : public detail::core_terminal_t, public logic_family_t
{
public:
- logic_t(core_device_t &dev, const pstring &aname, const state_e state)
- : core_terminal_t(dev, aname, state)
- , logic_family_t()
- , m_proxy(nullptr)
- {
- }
+ logic_t(core_device_t &dev, const pstring &aname, const state_e state);
virtual ~logic_t();
bool has_proxy() const { return (m_proxy != nullptr); }
@@ -982,8 +974,8 @@ namespace netlist
class param_data_t : public param_str_t
{
public:
- param_data_t(device_t &device, const pstring name)
- : param_str_t(device, name, "") { }
+ param_data_t(device_t &device, const pstring name);
+
std::unique_ptr<plib::pistream> stream();
protected:
virtual void changed() override;
@@ -1095,9 +1087,8 @@ namespace netlist
{
public:
- template <class C>
- device_t(C &owner, const pstring &name)
- : core_device_t(owner, name) { }
+ device_t(netlist_t &owner, const pstring &name);
+ device_t(core_device_t &owner, const pstring &name);
virtual ~device_t();