summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nltypes.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-03 23:37:44 +0200
committer couriersud <couriersud@gmx.org>2020-05-04 09:22:16 +0200
commitb500f2d24175ff2bd8efdb889a6c5eea12e96314 (patch)
tree5fff1c55603387a2258b830cab01ac21ac6e43b9 /src/lib/netlist/nltypes.h
parente59af6d5e89f02a2a626adc95b244924403b98f9 (diff)
netlist: Restructered the save state system. (nw)
This change makes state saving contract based. Objects which need to save state need to have the following template member: template <typename ST> void save_state(ST &st) { /* Example */ st.save_item(m_p, "m_p"); st.save_item(m_buf, "m_buf"); } This member function is called when the object is passed to the state manager save function.
Diffstat (limited to 'src/lib/netlist/nltypes.h')
-rw-r--r--src/lib/netlist/nltypes.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/netlist/nltypes.h b/src/lib/netlist/nltypes.h
index 542a3d8c816..03bb7e30fc0 100644
--- a/src/lib/netlist/nltypes.h
+++ b/src/lib/netlist/nltypes.h
@@ -164,13 +164,5 @@ namespace netlist
} // namespace netlist
-namespace plib {
-
- template<>
- inline void state_manager_t::save_item(const void *owner, netlist::netlist_time &state, const pstring &stname)
- {
- save_state_ptr(owner, stname, datatype_t(sizeof(netlist::netlist_time::internal_type), true, false), 1, state.get_internaltype_ptr());
- }
-} // namespace plib
#endif // NLTYPES_H_