|
TraceMaker
C++ API of the engine
|
#include <crules/detect.hpp>
Public Member Functions | |
| const Role * | role (std::string_view name) const |
| const RuleOverride * | override_for (std::string_view rule) const |
| bool | disabled (std::string_view rule) const |
Public Attributes | |
| int | category = -1 |
| index into Catalogue::categories | |
| int | anchor = -1 |
| footprint index | |
| int | confidence = 0 |
| 0..100 | |
| bool | capped = false |
| confidence capped because the board has no pin names (doc 15 §3.6) | |
| std::vector< std::string > | evidence |
| matched detectors, e.g. "lib_id +60" | |
| std::vector< Role > | roles |
| bound roles, binding order | |
| std::string | superseded_by |
| set when a conflicting category won the same anchor (doc 15 §3.4) | |
| bool | asserted = false |
| forced by the user override file (assert) | |
| std::vector< RuleOverride > | overrides |
| from disable and set entries, one per rule id | |
Definition at line 37 of file detect.hpp.
| bool tmk::crules::Instance::disabled | ( | std::string_view | rule | ) | const |
| const RuleOverride * tmk::crules::Instance::override_for | ( | std::string_view | rule | ) | const |
| const Role * tmk::crules::Instance::role | ( | std::string_view | name | ) | const |
| int tmk::crules::Instance::anchor = -1 |
footprint index
Definition at line 39 of file detect.hpp.
| bool tmk::crules::Instance::asserted = false |
forced by the user override file (assert)
Definition at line 45 of file detect.hpp.
| bool tmk::crules::Instance::capped = false |
confidence capped because the board has no pin names (doc 15 §3.6)
Definition at line 41 of file detect.hpp.
| int tmk::crules::Instance::category = -1 |
index into Catalogue::categories
Definition at line 38 of file detect.hpp.
| int tmk::crules::Instance::confidence = 0 |
0..100
Definition at line 40 of file detect.hpp.
| std::vector<std::string> tmk::crules::Instance::evidence |
matched detectors, e.g. "lib_id +60"
Definition at line 42 of file detect.hpp.
| std::vector<RuleOverride> tmk::crules::Instance::overrides |
from disable and set entries, one per rule id
Definition at line 46 of file detect.hpp.
| std::vector<Role> tmk::crules::Instance::roles |
bound roles, binding order
Definition at line 43 of file detect.hpp.
| std::string tmk::crules::Instance::superseded_by |
set when a conflicting category won the same anchor (doc 15 §3.4)
Definition at line 44 of file detect.hpp.