aboutsummaryrefslogtreecommitdiff
path: root/GateAnd.h
blob: 5de827c735dc4908b93061acdd0a2421e7bbc01d (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;
	using Node::Node;

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