diff options
Diffstat (limited to 'Circuit.h')
-rw-r--r-- | Circuit.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,6 +2,10 @@ #include <string> #include <vector> +#include <map> + +#include "Node.h" +#include "Net.h" using std::string; using std::vector; @@ -9,11 +13,15 @@ using std::vector; class Circuit { public: Circuit() = default; - virtual ~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 = {}; }; |