aboutsummaryrefslogtreecommitdiff
path: root/Circuit.h
diff options
context:
space:
mode:
Diffstat (limited to 'Circuit.h')
-rw-r--r--Circuit.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Circuit.h b/Circuit.h
index 5fd8d23..1806293 100644
--- a/Circuit.h
+++ b/Circuit.h
@@ -18,10 +18,12 @@ public:
public:
void create(string label, vector<string> nodes);
void new_node(string label, string type);
- void new_net(string label, string node);
+ void new_net(string src, vector<string> dests);
private:
std::map<string, Node *> nodes = {};
- std::map<string, Net *> nets = {};
+ vector<Net *> nets = {};
+
+ virtual Node * find_node(string label);
};