aboutsummaryrefslogtreecommitdiff
path: root/GateNot.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 18:06:24 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 18:06:24 +0200
commit26a7c785113e4e8343685b33d8ac4aa2023380f3 (patch)
tree285afe6ea1b9f2a4f2a552cd28ae87b889b20bc0 /GateNot.h
parent40c827da8e00a88a095f99786254493450a57065 (diff)
nor/or
Diffstat (limited to 'GateNot.h')
-rw-r--r--GateNot.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/GateNot.h b/GateNot.h
new file mode 100644
index 0000000..55fd9ce
--- /dev/null
+++ b/GateNot.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "Node.h"
+
+class GateNot : public Node {
+public:
+ GateNot() = default;
+ GateNot(const GateNot * prototype);
+ ~GateNot() = default;
+ virtual GateNot * clone() const;
+
+private:
+ SignalLevel level();
+
+ using Node::Node;
+ constexpr static const char * type = "Not";
+ static GateNot instance;
+
+private:
+ int min_inputs = 1;
+ int max_inputs = 1;
+};