Horizon
pad.hpp
1 #pragma once
2 #include "block/block.hpp"
3 #include "nlohmann/json_fwd.hpp"
4 #include "parameter/set.hpp"
5 #include "pool/padstack.hpp"
6 #include "pool/pool.hpp"
7 #include "pool/symbol.hpp"
8 #include "pool/unit.hpp"
9 #include "util/placement.hpp"
10 #include "util/uuid.hpp"
11 #include "util/uuid_provider.hpp"
12 #include "util/uuid_ptr.hpp"
13 #include <fstream>
14 #include <map>
15 #include <vector>
16 
17 namespace horizon {
18 using json = nlohmann::json;
19 
20 class Pad : public UUIDProvider {
21 public:
22  Pad(const UUID &uu, const json &, Pool &pool);
23  Pad(const UUID &uu, const Padstack *ps);
24  UUID uuid;
25  const Padstack *pool_padstack;
26  Padstack padstack;
27  Placement placement;
28  std::string name;
29  ParameterSet parameter_set;
30 
31  uuid_ptr<Net> net = nullptr;
32  UUID net_segment;
33 
34  virtual UUID get_uuid() const;
35  json serialize() const;
36 };
37 } // namespace horizon
a class to store JSON values
Definition: json.hpp:161
Definition: placement.hpp:8
Interface for objects that have a UUID.
Definition: uuid_provider.hpp:9
Definition: uuid_ptr.hpp:9
Definition: padstack.hpp:20
Definition: pad.hpp:20
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:18
Definition: block.cpp:7
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61