aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-16 10:12:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-16 10:12:49 +0200
commit1fcb7e5f3b2f1ce8663192c62529ce227a046af3 (patch)
treefd851324376f621ba67cadf27255edd0dc0d5c91
parent14ccc8cf5b5ba2020a0fce007f7dc85921011077 (diff)
parent11bbc8eba4919c450b817c028644f0f6bbd6f2d0 (diff)
Merge branch 'master' of github.com:lonkaars/depa
-rw-r--r--GateNor.cpp6
-rw-r--r--GateNor.h9
2 files changed, 10 insertions, 5 deletions
diff --git a/GateNor.cpp b/GateNor.cpp
index cb70236..5e31863 100644
--- a/GateNor.cpp
+++ b/GateNor.cpp
@@ -13,7 +13,7 @@ SignalLevel GateNor::level() {
// GateNor::GateNor(const GateNor * prototype) : Node() { }
-// GateNor * GateNor::clone() const {
-// return new GateNor(this);
-// }
+GateNor * GateNor::clone() const {
+ return new GateNor(this);
+}
diff --git a/GateNor.h b/GateNor.h
index 2c2760d..35b5a74 100644
--- a/GateNor.h
+++ b/GateNor.h
@@ -4,11 +4,16 @@
#include "GateOr.h"
class GateNor : public GateOr {
-private:
+public:
+ virtual GateNor * clone() const;
+
+protected:
SignalLevel level();
+ using GateOr::GateOr;
+private:
+ GateNor(const GateNor *) : GateOr() {}
// GateNor(const char * type);
- using GateOr::GateOr;
constexpr static const char * type = "nor";
static GateNor instance;
};