Horizon
rule_clearance_same_net.hpp
1 #pragma once
2 #include "common/common.hpp"
3 #include "rules/rule.hpp"
4 #include "rules/rule_match.hpp"
5 
6 namespace horizon {
7 class RuleClearanceSameNet : public Rule {
8 public:
9  RuleClearanceSameNet(const UUID &uu);
10  RuleClearanceSameNet(const UUID &uu, const json &j);
11  json serialize() const override;
12 
13  std::string get_brief(const class Block *block = nullptr) const override;
14  bool is_match_all() const override;
15 
16  int64_t get_clearance(PatchType a, PatchType b) const;
17  void set_clearance(PatchType a, PatchType b, int64_t c);
18  uint64_t get_max_clearance() const;
19 
20  RuleMatch match;
21  int layer = 10000;
22 
23 private:
24  std::map<std::pair<PatchType, PatchType>, int64_t> clearances;
25 };
26 } // namespace horizon
libzip::int64_t
zip_int64_t int64_t
zip_int64_t typedef.
Definition: zip.hpp:103
nlohmann::basic_json
a class to store JSON values
Definition: json.hpp:166
libzip::uint64_t
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition: zip.hpp:108