blob: bcca8f45d837c3880208ce33e173433afadee800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#pragma once
#include "Node.h"
class NodeInput : public Node {
public:
NodeInput() = default;
NodeInput(const NodeInput * prototype);
~NodeInput() = default;
virtual void sim();
virtual NodeInput * clone() const;
private:
NodeInput(const char * type);
SignalLevel level = UNDEFINED;
};
// Input LOW and HIGH unicorns:
class NodeInputLow : public NodeInput {
public:
// NodeInputLow(const NodeInputLow * prototype);
// ~NodeInputLow() = default;
// virtual void compare();
// virtual NodeInputLow * clone() const;
private:
NodeInputLow(const char * type);
constexpr static const char * type = "input_low";
static NodeInputLow instance;
SignalLevel level = LOW;
};
class NodeInputHigh : public NodeInput {
private:
NodeInputHigh(const char * type);
constexpr static const char * type = "input_high";
static NodeInputHigh instance;
SignalLevel level = HIGH;
};
|