diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-16 09:46:10 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-16 09:46:10 +0200 |
commit | 11bbc8eba4919c450b817c028644f0f6bbd6f2d0 (patch) | |
tree | 82f35356b6cd9b05a8a11bfeacb15b108aa91f5d | |
parent | 42a564bb911618980083b9f13931d8422927a2fb (diff) |
Nor fixed
-rw-r--r-- | GateNor.cpp | 6 | ||||
-rw-r--r-- | GateNor.h | 9 |
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); +} @@ -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; }; |