Horizon
rule_shorted_pads.hpp
1 #pragma once
2 #include "common/common.hpp"
3 #include "rules/rule.hpp"
4 #include "rules/rule_match.hpp"
5 #include "rules/rule_match_component.hpp"
6 #include <set>
7 
8 namespace horizon {
9 class RuleShortedPads : public Rule {
10 public:
11  static const auto id = RuleID::SHORTED_PADS;
12  RuleID get_id() const override
13  {
14  return id;
15  }
16 
17  RuleShortedPads(const UUID &uu);
18  RuleShortedPads(const UUID &uu, const json &j);
19  json serialize() const override;
20 
21  std::string get_brief(const class Block *block = nullptr, class IPool *pool = nullptr) const override;
22  bool can_export() const override;
23 
24  bool matches(const class Component *component, const class Net *net) const;
25 
26  RuleMatch match;
27  RuleMatchComponent match_component;
28 };
29 } // namespace horizon
A block is one level of hierarchy in the netlist.
Definition: block.hpp:29
A Component is an instanced Entity in a Block.
Definition: component.hpp:41
Definition: ipool.hpp:14
Definition: net.hpp:11
Definition: rule_match_component.hpp:8
Definition: rule_match.hpp:8
Definition: rule_shorted_pads.hpp:9
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