summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pfunction.h')
-rw-r--r--src/lib/netlist/plib/pfunction.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pfunction.h b/src/lib/netlist/plib/pfunction.h
index 60d85a3358c..7d5984f9d15 100644
--- a/src/lib/netlist/plib/pfunction.h
+++ b/src/lib/netlist/plib/pfunction.h
@@ -9,6 +9,7 @@
#define PFUNCTION_H_
#include "pstring.h"
+#include "pstate.h"
#include <vector>
@@ -43,6 +44,22 @@ namespace plib {
double m_param;
};
public:
+ /*! Constructor with state saving support
+ *
+ * @param name Name of this object
+ * @param owner Owner of this object
+ * @param state_manager State manager to handle saving object state
+ *
+ */
+ pfunction(const pstring &name, const void *owner, state_manager_t &state_manager)
+ : m_lfsr(0xACE1u)
+ {
+ state_manager.save_item(owner, m_lfsr, name + ".lfsr");
+ }
+
+ /*! Constructor without state saving support
+ *
+ */
pfunction()
: m_lfsr(0xACE1u)
{