netlist: prepare path to non-virtual update functions. (nw)

This commit is contained in:
couriersud 2020-06-08 03:12:03 +02:00
parent ec0f62d789
commit 773a23f503
2 changed files with 15 additions and 4 deletions

View File

@ -18,10 +18,6 @@
#include <limits>
// ----------------------------------------------------------------------------------------
// Statically compiled solvers for mame netlist
// ----------------------------------------------------------------------------------------
namespace netlist
{

View File

@ -942,6 +942,10 @@ namespace netlist
logic_input_t(device_t &dev, const pstring &aname,
nldelegate delegate = nldelegate());
#if 0
template <class D>
logic_input_t(D &dev, const pstring &aname);
#endif
inline netlist_sig_t operator()() const noexcept;
void inactivate() noexcept;
@ -2196,6 +2200,17 @@ namespace netlist
// Any changes below will impact performance.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// logic_input_t
// -----------------------------------------------------------------------------
#if 0
template <class D>
logic_input_t::logic_input_t(D &dev, const pstring &aname)
: logic_input_t(dev, aname, STATE_INP_ACTIVE, nldelegate(&D :: update, &dev))
{
}
#endif
inline void logic_input_t::inactivate() noexcept
{
if (!is_state(STATE_INP_PASSIVE))