diff options
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 |