diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-08 14:10:50 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-08 14:10:50 +0200 |
commit | 2acd9a0097bb89e4b10ff77848d314e60f27be54 (patch) | |
tree | 70f83de0b7ed4da8bc31f5a5ba0c68249c1d8217 /GateAnd.h | |
parent | 9413d81efb2279fc136deee874a8560dd4bb4a7e (diff) |
instance Nodes using copy constructor in NodeFactory
Diffstat (limited to 'GateAnd.h')
-rw-r--r-- | GateAnd.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,11 +4,13 @@ class GateAnd : public Node { public: - GateAnd(const char * type); + GateAnd(const GateAnd * prototype); virtual ~GateAnd() = default; virtual void compare(); + virtual GateAnd * clone() const; private: + GateAnd(const char * type); constexpr static const char * type = "and"; static GateAnd instance; }; |