rule executes if the masked pattern matches the start (old) and end (new) values.
More...
#include <pattern.h>
|
| | pattern (uint64_t _mask, uint64_t _start, uint64_t _end) |
| | Construct a new pattern object.
|
| |
| virtual | ~pattern () |
| | Destroy the pattern object.
|
| |
| virtual void | process_rule (uint64_t _old_value, uint64_t &_new_value) |
| | process rule evaluation between old and new values.
|
| |
| | I_pattern_rule () |
| | Interface parent constructor for a new i pattern rule object.
|
| |
| virtual | ~I_pattern_rule () |
| | Destroy the i pattern rule object.
|
| |
| virtual void | process_rule (std::uint64_t _old_value, std::uint64_t &_new_value)=0 |
| | process rule evaluation between old and new values.
|
| |
| void | action (std::function< void()> _action) |
| | Binds a void(void) lambda as the callback action to this rule.
|
| |
| _always_inline bool | is_active () |
| | reports if rule is active for processing.
|
| |
| _always_inline bool | is_bound () |
| | has the lambda callback been bound.
|
| |
|
| uint64_t | m_mask |
| | mask to apply for rule evaluation.
|
| |
| uint64_t | m_start |
| | initial value to match with mask.
|
| |
| uint64_t | m_end |
| | new value to match with mask.
|
| |
rule executes if the masked pattern matches the start (old) and end (new) values.
◆ pattern()
| sme::rules::pattern::pattern |
( |
uint64_t |
_mask, |
|
|
uint64_t |
_start, |
|
|
uint64_t |
_end |
|
) |
| |
|
inline |
Construct a new pattern object.
- Parameters
-
| _mask | to be applied on the target (Register or Field) |
| _start | value which _old_data should match |
| _end | value which _new_data should match |
◆ ~pattern()
| virtual sme::rules::pattern::~pattern |
( |
| ) |
|
|
inlinevirtual |
Destroy the pattern object.
◆ process_rule()
| virtual void sme::rules::pattern::process_rule |
( |
uint64_t |
_old_value, |
|
|
uint64_t & |
_new_value |
|
) |
| |
|
inlinevirtual |
process rule evaluation between old and new values.
- Parameters
-
| _old_value | value of content prior to read or write |
| _new_value | value of content post read or write |
◆ m_end
| uint64_t sme::rules::pattern::m_end |
new value to match with mask.
◆ m_mask
| uint64_t sme::rules::pattern::m_mask |
mask to apply for rule evaluation.
◆ m_start
| uint64_t sme::rules::pattern::m_start |
initial value to match with mask.
The documentation for this class was generated from the following file:
- /disk2/mp/builds/mono-124635/src/devices/c++-api/extensions/src/sme/pattern_rules/pattern.h