aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-16 09:46:10 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-16 09:46:10 +0200
commit11bbc8eba4919c450b817c028644f0f6bbd6f2d0 (patch)
tree82f35356b6cd9b05a8a11bfeacb15b108aa91f5d
parent42a564bb911618980083b9f13931d8422927a2fb (diff)
Nor fixed
-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;
};