aboutsummaryrefslogtreecommitdiff
path: root/Gate.h
diff options
context:
space:
mode:
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