diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-12 17:21:46 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-12 17:21:46 +0200 |
commit | a6eb3c69badee386579fba82cae5b29cfb3e8171 (patch) | |
tree | b394befa733f960fe85323f8a5d12b27bc2b12d3 /Node.h | |
parent | e689d7947050face22fa1533d9a1cba6d43ea6b8 (diff) | |
parent | d1e381e301bb55432997ff355b5c938e76cd4f20 (diff) |
change nothing
Diffstat (limited to 'Node.h')
-rw-r--r-- | Node.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5,6 +5,7 @@ #include "Observer.h" #include "Net.h" +#include "Exception.h" using std::string; using std::vector; @@ -19,7 +20,8 @@ public: void update(); virtual void addInput(Net *); virtual void setOutput(Net *); - virtual void sim() = 0; + virtual void sim(); + virtual SignalLevel level() = 0; protected: Node(const char * type); @@ -28,5 +30,9 @@ protected: vector<Net *> inputs; Net * output; + +private: + int min_inputs = -1; + int max_inputs = -1; }; |