diff options
Diffstat (limited to 'GateXor.h')
-rw-r--r-- | GateXor.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/GateXor.h b/GateXor.h new file mode 100644 index 0000000..37903e0 --- /dev/null +++ b/GateXor.h @@ -0,0 +1,22 @@ +#pragma once + +#include "Node.h" + +class GateXor : public Node { +public: + GateXor() = default; + GateXor(const GateXor * prototype); + ~GateXor() = default; + virtual GateXor * clone() const; + +private: + SignalLevel level(); + + using Node::Node; + constexpr static const char * type = "xor"; + static GateXor instance; + +private: + int min_inputs = 1; + int max_inputs = -1; +}; |