diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-04 10:27:53 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-04 10:27:53 +0200 |
commit | 5f7fda2d9103d6f638747143931bb82822608fc7 (patch) | |
tree | 70cb63917729584648689f9dbdb0d75895163875 /Gate.h | |
parent | 2c0569e63e421525dfb882d4f3b1cbcf7a2a8eea (diff) |
end of day
Diffstat (limited to 'Gate.h')
-rw-r--r-- | Gate.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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(); +}; |