aboutsummaryrefslogtreecommitdiff
path: root/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'Node.h')
-rw-r--r--Node.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/Node.h b/Node.h
index f1845a9..8db9fe9 100644
--- a/Node.h
+++ b/Node.h
@@ -1,32 +1,31 @@
#pragma once
+
#include <string>
#include <vector>
#include "Observer.h"
#include "Net.h"
-
-
class Node: Observer {
- protected:
- std::string label;
- std::string type;
+protected:
+ std::string label;
+ std::string type;
- std::vector<Net*> inputs;
- Net* output;
+ std::vector<Net*> inputs;
+ Net* output;
- public:
- Node(/* args */);
- virtual ~Node();
- void update();
- virtual void addInput(Net*);
- virtual void setOutput(Net*);
- virtual void compare() = 0;
+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();
+public:
+ GateAnd(){};
+ ~GateAnd(){};
+ void compare();
};