blob: 0cc08c6565f444c1d3ad32a14fb853aed51dc2e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include <string>
#include <vector>
#include <map>
#include "Node.h"
#include "Net.h"
using std::string;
using std::vector;
class Circuit {
public:
Circuit() = default;
virtual ~Circuit();
public:
virtual void create(string label, vector<string> nodes);
virtual void new_node(string label, string type);
virtual void new_net(string src, vector<string> dests);
virtual void sim();
private:
std::map<string, Node *> nodes = {};
vector<Net *> nets = {};
virtual Node * find_node(string label);
};
|