Horizon
rule_plane.hpp
1 #pragma once
2 #include "common/common.hpp"
3 #include "plane.hpp"
4 #include "rules/rule.hpp"
5 #include "rules/rule_match.hpp"
6 
7 namespace horizon {
8 class RulePlane : public Rule {
9 public:
10  static const auto id = RuleID::PLANE;
11  RuleID get_id() const override
12  {
13  return id;
14  }
15 
16  RulePlane(const UUID &uu);
17  RulePlane(const UUID &uu, const json &j, const RuleImportMap &import_map);
18  json serialize() const override;
19 
20  std::string get_brief(const class Block *block = nullptr, class IPool *pool = nullptr) const override;
21  bool is_match_all() const override;
22  bool can_export() const override;
23 
24  RuleMatch match;
25  int layer = 10000;
26 
27  PlaneSettings settings;
28 };
29 } // namespace horizon
A block is one level of hierarchy in the netlist.
Definition: block.hpp:29
Definition: ipool.hpp:14
Definition: plane.hpp:9
Definition: rule.hpp:34
Definition: rule_match.hpp:8
Definition: rule_plane.hpp:8
Definition: rule.hpp:54
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:177