diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-07 15:22:00 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-07 15:22:00 +0200 |
commit | 9e1b22e12bb0915081c94e6266b9725251500dcd (patch) | |
tree | 014f96a345201df949bcb4ff032728e792c18be9 /Node.h | |
parent | bde4c3fe7885b66c0bb59b8407c74b350fc6b44d (diff) |
WIP begin writing factory
Diffstat (limited to 'Node.h')
-rw-r--r-- | Node.h | 30 |
1 files changed, 13 insertions, 17 deletions
@@ -6,26 +6,22 @@ #include "Observer.h" #include "Net.h" -class Node: Observer { -protected: - std::string label; - std::string type; - - std::vector<Net*> inputs; - Net* output; +using std::string; +using std::vector; +class Node : Observer { public: - Node(/* args */); - virtual ~Node(); + Node(const char * type); + virtual ~Node() = default; void update(); - virtual void addInput(Net*); - virtual void setOutput(Net*); + virtual void addInput(Net *); + virtual void setOutput(Net *); virtual void compare() = 0; -}; -class GateAnd: public Node { -public: - GateAnd(){}; - ~GateAnd(){}; - void compare(); +protected: + string label; + + vector<Net *> inputs; + Net * output; }; + |