aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gate.cpp10
-rw-r--r--Gate.h (renamed from Node.h)8
-rw-r--r--Node.cpp10
3 files changed, 15 insertions, 13 deletions
diff --git a/Gate.cpp b/Gate.cpp
new file mode 100644
index 0000000..22d57e2
--- /dev/null
+++ b/Gate.cpp
@@ -0,0 +1,10 @@
+#include "Gate.h"
+
+Gate::Gate(/* args */){}
+Gate::~Gate(){}
+void Gate::addInput(Net*){
+
+}
+void Gate::addOutput(Net*){
+
+}
diff --git a/Node.h b/Gate.h
index 70a580c..14c35ac 100644
--- a/Node.h
+++ b/Gate.h
@@ -7,7 +7,7 @@
-class Node: Observer {
+class Gate: Observer {
private:
std::string label;
std::string type;
@@ -16,8 +16,10 @@ class Node: Observer {
std::vector<Net*> outputs;
public:
- Node(/* args */);
- ~Node();
+ Gate(/* args */);
+ ~Gate();
virtual void addInput(Net*);
virtual void addOutput(Net*);
};
+
+class GateAnd
diff --git a/Node.cpp b/Node.cpp
deleted file mode 100644
index 7ed1f98..0000000
--- a/Node.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-#include "Node.h"
-
-Node::Node(/* args */){}
-Node::~Node(){}
-void Node::addInput(Net*){
-
-}
-void Node::addOutput(Net*){
-
-}