aboutsummaryrefslogtreecommitdiff
path: root/Gate.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-05-29 11:38:27 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-05-29 11:38:27 +0200
commitee74e0a40ad4aa2de417544b9c33d98eb06c081b (patch)
treecc2d05708ec68dc6cfbe97fed2577df7c233a863 /Gate.h
parent22b97d969cdff46a06a48a5bce7d183c4a877fb5 (diff)
Renamed class Node to Gate
Diffstat (limited to 'Gate.h')
-rw-r--r--Gate.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Gate.h b/Gate.h
new file mode 100644
index 0000000..14c35ac
--- /dev/null
+++ b/Gate.h
@@ -0,0 +1,25 @@
+#pragma once
+#include <string>
+#include <vector>
+
+#include "Observer.h"
+#include "Net.h"
+
+
+
+class Gate: Observer {
+ private:
+ std::string label;
+ std::string type;
+
+ std::vector<Net*> inputs;
+ std::vector<Net*> outputs;
+
+ public:
+ Gate(/* args */);
+ ~Gate();
+ virtual void addInput(Net*);
+ virtual void addOutput(Net*);
+};
+
+class GateAnd