aboutsummaryrefslogtreecommitdiff
path: root/NodeInput.h
diff options
context:
space:
mode:
Diffstat (limited to 'NodeInput.h')
-rw-r--r--NodeInput.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/NodeInput.h b/NodeInput.h
index e6206b9..23a5e14 100644
--- a/NodeInput.h
+++ b/NodeInput.h
@@ -8,11 +8,14 @@ public:
NodeInput(const NodeInput * prototype);
~NodeInput() = default;
virtual void sim();
+ SignalLevel level();
virtual NodeInput * clone() const;
protected:
- using Node::Node;
- SignalLevel level = UNDEFINED;
+ NodeInput(const char * type);
+
+private:
+ SignalLevel input = UNDEFINED;
};
// Input LOW and HIGH unicorns:
@@ -30,7 +33,7 @@ private:
constexpr static const char * type = "input_low";
static NodeInputLow instance;
- SignalLevel level = LOW;
+ SignalLevel input = LOW;
};
class NodeInputHigh : public NodeInput {
@@ -39,5 +42,5 @@ private:
constexpr static const char * type = "input_high";
static NodeInputHigh instance;
- SignalLevel level = HIGH;
+ SignalLevel input = HIGH;
};