blob: 5fd8d236e9744761674d657d710b5d61df118ebb (
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
|
#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:
void create(string label, vector<string> nodes);
void new_node(string label, string type);
void new_net(string label, string node);
private:
std::map<string, Node *> nodes = {};
std::map<string, Net *> nets = {};
};
|