aboutsummaryrefslogtreecommitdiff
path: root/Gate.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-04 10:27:53 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-04 10:27:53 +0200
commit5f7fda2d9103d6f638747143931bb82822608fc7 (patch)
tree70cb63917729584648689f9dbdb0d75895163875 /Gate.h
parent2c0569e63e421525dfb882d4f3b1cbcf7a2a8eea (diff)
end of day
Diffstat (limited to 'Gate.h')
-rw-r--r--Gate.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/Gate.h b/Gate.h
index 14c35ac..3f34b7a 100644
--- a/Gate.h
+++ b/Gate.h
@@ -8,18 +8,25 @@
class Gate: Observer {
- private:
+ protected:
std::string label;
std::string type;
std::vector<Net*> inputs;
- std::vector<Net*> outputs;
+ Net* output;
public:
Gate(/* args */);
- ~Gate();
+ virtual ~Gate();
+ void update();
virtual void addInput(Net*);
- virtual void addOutput(Net*);
+ virtual void setOutput(Net*);
+ virtual void compare() = 0;
};
-class GateAnd
+class GateAnd: public Gate {
+ public:
+ GateAnd(){};
+ ~GateAnd(){};
+ void compare();
+};