aboutsummaryrefslogtreecommitdiff
path: root/Node.cpp
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 15:54:44 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 15:54:44 +0200
commit8dafb610811a34f0ec49e7484942341cf78bb6f6 (patch)
treef206be2d3254b1b13a8cc17ca39213260182c168 /Node.cpp
parentd0aa3cb4e42d9ee60756b3807f4d23776a6f19c3 (diff)
parent79afbacfd2ce5c5b25bd38b9247977faf2cf5e34 (diff)
Merge remote-tracking branch 'origin/master' into node
Diffstat (limited to 'Node.cpp')
-rw-r--r--Node.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Node.cpp b/Node.cpp
index a0fc27b..d3564da 100644
--- a/Node.cpp
+++ b/Node.cpp
@@ -1,22 +1,23 @@
+#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;
}
void Node::update(){
std::cout << "updated" << std::endl;
- this->compare();
+ this->sim();
}