aboutsummaryrefslogtreecommitdiff
path: root/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Node.cpp')
-rw-r--r--Node.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Node.cpp b/Node.cpp
index a0fc27b..1b0b9b8 100644
--- a/Node.cpp
+++ b/Node.cpp
@@ -1,17 +1,18 @@
+#include <iostream>
+
#include "Node.h"
#include "NodeFactory.h"
-
-#include <iostream>
+#include "Net.h"
Node::Node(const char * type) {
NodeFactory::assign(type, this);
}
-void Node::addInput(Net* net) {
+void Node::addInput(Net * net) {
net->attach(this);
}
-void Node::setOutput(Net* net){
+void Node::setOutput(Net * net){
this->output = net;
}