2 #include "common/common.hpp"
3 #include "rules/rule.hpp"
4 #include "rules/rule_match.hpp"
7 class RuleClearanceCopper :
public Rule {
9 RuleClearanceCopper(
const UUID &uu);
10 RuleClearanceCopper(
const UUID &uu,
const json &j);
11 json serialize()
const override;
13 std::string get_brief(
const class Block *block =
nullptr)
const override;
14 bool is_match_all()
const override;
21 uint64_t get_clearance(PatchType a, PatchType b)
const;
22 void set_clearance(PatchType a, PatchType b,
uint64_t c);
26 std::array<uint64_t, static_cast<size_t>(PatchType::N_TYPES) *
static_cast<size_t>(PatchType::N_TYPES)> clearances;