blob: 639a93b9ef6e78614be8fc1cdf66053b4d089188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "Node.h"
class GateAnd : public Node {
public:
GateAnd() = default;
GateAnd(const GateAnd * prototype);
~GateAnd() = default;
virtual GateAnd * clone() const;
protected:
SignalLevel level();
int min_inputs = 0;
int max_inputs = -1;
GateAnd(const char * type);
private:
constexpr static const char * type = "and";
static GateAnd instance;
};
|