diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-16 10:12:49 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-16 10:12:49 +0200 |
commit | 1fcb7e5f3b2f1ce8663192c62529ce227a046af3 (patch) | |
tree | fd851324376f621ba67cadf27255edd0dc0d5c91 | |
parent | 14ccc8cf5b5ba2020a0fce007f7dc85921011077 (diff) | |
parent | 11bbc8eba4919c450b817c028644f0f6bbd6f2d0 (diff) |
Merge branch 'master' of github.com:lonkaars/depa
-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; }; |