aboutsummaryrefslogtreecommitdiff
path: root/GateOr.h
blob: 06681482f275ba7e862fd0942666329df49cb09e (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
#pragma once

#include "Node.h"

class GateOr : public Node {
public:
	GateOr() = default;
	GateOr(const GateOr * prototype);
	~GateOr() = default;
	virtual GateOr * clone() const;

protected:
	SignalLevel level();

private:
	using Node::Node;
	constexpr static const char * type = "or";
	static GateOr instance;

private:
	int min_inputs = 0;
	int max_inputs = -1;
};