aboutsummaryrefslogtreecommitdiff
path: root/GateAnd.h
blob: 2991c1d4e8ed15ec04d49786d0b75037cb34a4c7 (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() = default;
	virtual GateAnd * clone() const;

protected:
	SignalLevel level();

	int min_inputs = 0;
	int max_inputs = -1;
	using Node::Node;

private:
	GateAnd(const GateAnd * prototype);
	constexpr static const char * type = "and";
	static GateAnd instance;
};