diff options
Diffstat (limited to 'NodeInput.h')
-rw-r--r-- | NodeInput.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/NodeInput.h b/NodeInput.h index bcca8f4..e6206b9 100644 --- a/NodeInput.h +++ b/NodeInput.h @@ -4,21 +4,22 @@ class NodeInput : public Node { public: - NodeInput() = default; + NodeInput() = default; NodeInput(const NodeInput * prototype); ~NodeInput() = default; virtual void sim(); virtual NodeInput * clone() const; -private: - NodeInput(const char * type); - - SignalLevel level = UNDEFINED; +protected: + using Node::Node; + SignalLevel level = UNDEFINED; }; // Input LOW and HIGH unicorns: class NodeInputLow : public NodeInput { + using NodeInput::NodeInput; + public: // NodeInputLow(const NodeInputLow * prototype); // ~NodeInputLow() = default; @@ -26,18 +27,17 @@ public: // virtual NodeInputLow * clone() const; private: - NodeInputLow(const char * type); constexpr static const char * type = "input_low"; static NodeInputLow instance; - SignalLevel level = LOW; + SignalLevel level = LOW; }; class NodeInputHigh : public NodeInput { private: - NodeInputHigh(const char * type); + using NodeInput::NodeInput; constexpr static const char * type = "input_high"; static NodeInputHigh instance; - SignalLevel level = HIGH; + SignalLevel level = HIGH; }; |