diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-05-29 11:38:27 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-05-29 11:38:27 +0200 |
commit | ee74e0a40ad4aa2de417544b9c33d98eb06c081b (patch) | |
tree | cc2d05708ec68dc6cfbe97fed2577df7c233a863 /Gate.h | |
parent | 22b97d969cdff46a06a48a5bce7d183c4a877fb5 (diff) |
Renamed class Node to Gate
Diffstat (limited to 'Gate.h')
-rw-r--r-- | Gate.h | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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 |