diff options
-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; }; |