aboutsummaryrefslogtreecommitdiff
path: root/GateAnd.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-08 14:10:50 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-08 14:10:50 +0200
commit2acd9a0097bb89e4b10ff77848d314e60f27be54 (patch)
tree70f83de0b7ed4da8bc31f5a5ba0c68249c1d8217 /GateAnd.h
parent9413d81efb2279fc136deee874a8560dd4bb4a7e (diff)
instance Nodes using copy constructor in NodeFactory
Diffstat (limited to 'GateAnd.h')
-rw-r--r--GateAnd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/GateAnd.h b/GateAnd.h
index 40e3927..5eedc07 100644
--- a/GateAnd.h
+++ b/GateAnd.h
@@ -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;
};