blob: e4ddbb918a06ab1291acd30a3fb8e52fe5467e17 (
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
|
#include "NodeInput.h"
#include "Exception.h"
NodeInputLow NodeInputLow::instance(NodeInputLow::type);
NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type);
NodeInput::NodeInput() : Node() {
this->min_inputs = 0;
this->max_inputs = 0;
}
void NodeInput::addInput(Net *) {
throw NodeException(this, "NodeInput cannot have inputs");
}
NodeInputLow * NodeInputLow::clone() const {
return new NodeInputLow(this);
}
SignalLevel NodeInputLow::level() { return LOW; }
NodeInputHigh * NodeInputHigh::clone() const {
return new NodeInputHigh(this);
}
SignalLevel NodeInputHigh::level() { return HIGH; }
|