diff options
Diffstat (limited to 'Node.h')
-rw-r--r-- | Node.h | 35 |
1 files changed, 17 insertions, 18 deletions
@@ -1,32 +1,31 @@ #pragma once + #include <string> #include <vector> #include "Observer.h" #include "Net.h" - - class Node: Observer { - protected: - std::string label; - std::string type; +protected: + std::string label; + std::string type; - std::vector<Net*> inputs; - Net* output; + std::vector<Net*> inputs; + Net* output; - public: - Node(/* args */); - virtual ~Node(); - void update(); - virtual void addInput(Net*); - virtual void setOutput(Net*); - virtual void compare() = 0; +public: + Node(/* args */); + virtual ~Node(); + void update(); + virtual void addInput(Net*); + virtual void setOutput(Net*); + virtual void compare() = 0; }; class GateAnd: public Node { - public: - GateAnd(){}; - ~GateAnd(){}; - void compare(); +public: + GateAnd(){}; + ~GateAnd(){}; + void compare(); }; |