aboutsummaryrefslogtreecommitdiff
path: root/GateAnd.h
blob: 142c6283ed5cdc4621232d33438bf737d74002ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "Node.h"

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

private:
	SignalLevel level();

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