diff options
-rw-r--r-- | Gate.cpp | 10 | ||||
-rw-r--r-- | Gate.h (renamed from Node.h) | 8 | ||||
-rw-r--r-- | Node.cpp | 10 |
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*){ + +} @@ -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*){ - -} |