Horizon
net_tie.hpp
1 #pragma once
2 #include "nlohmann/json_fwd.hpp"
3 #include "util/uuid.hpp"
4 #include "util/uuid_ptr.hpp"
5 #include "util/uuid_vec.hpp"
6 #include "pool/unit.hpp"
7 
8 namespace horizon {
9 using json = nlohmann::json;
10 
11 class NetTie {
12 public:
13  NetTie(const UUID &uu, const json &, class Block &block);
14  NetTie(const UUID &uu, const json &);
15  NetTie(const UUID &uu);
16 
17  UUID uuid;
18  UUID get_uuid() const;
19 
20  uuid_ptr<class Net> net_primary;
21  uuid_ptr<class Net> net_secondary;
22 
23  void update_refs(Block &block);
24 
25  json serialize() const;
26 };
27 } // namespace horizon
A block is one level of hierarchy in the netlist.
Definition: block.hpp:29
Definition: net_tie.hpp:11
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: uuid_ptr.hpp:8
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62