From 760520d490ef9a382aee9b0338ba289b1538974b Mon Sep 17 00:00:00 2001 From: UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:30:24 +0200 Subject: Renamed class Gate -> Node --- Node.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Node.h (limited to 'Node.h') diff --git a/Node.h b/Node.h new file mode 100644 index 0000000..f1845a9 --- /dev/null +++ b/Node.h @@ -0,0 +1,32 @@ +#pragma once +#include +#include + +#include "Observer.h" +#include "Net.h" + + + +class Node: Observer { + protected: + std::string label; + std::string type; + + std::vector inputs; + Net* output; + + public: + Node(/* args */); + virtual ~Node(); + void update(); + virtual void addInput(Net*); + virtual void setOutput(Net*); + virtual void compare() = 0; +}; + +class GateAnd: public Node { + public: + GateAnd(){}; + ~GateAnd(){}; + void compare(); +}; -- cgit v1.2.3