Horizon
Loading...
Searching...
No Matches
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
8namespace horizon {
9class RuleShortedPads : public Rule {
10public:
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:40
Definition ipool.hpp:15
Definition net.hpp:11
Definition rule_match_component.hpp:9
Definition rule_match.hpp:9
Definition rule_shorted_pads.hpp:9
Definition rule.hpp:58
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