16#ifndef CPP_API_EXTENSIONS_SRC_SME_PATTERN_RULES_PATTERN_H
17#define CPP_API_EXTENSIONS_SRC_SME_PATTERN_RULES_PATTERN_H
59 pattern( uint64_t _mask, uint64_t _start, uint64_t _end)
79 virtual void process_rule( uint64_t _old_value, uint64_t & _new_value) {
Interface and base class for all notification rule types.
Definition: I_pattern_rule.h:32
_always_inline bool is_active()
reports if rule is active for processing.
Definition: I_pattern_rule.h:78
std::function< void()> m_lambda
placeholder for lambda
Definition: I_pattern_rule.h:38
_always_inline bool is_bound()
has the lambda callback been bound.
Definition: I_pattern_rule.h:85
rule executes if the masked pattern matches the start (old) and end (new) values.
Definition: pattern.h:31
uint64_t m_mask
mask to apply for rule evaluation.
Definition: pattern.h:38
uint64_t m_start
initial value to match with mask.
Definition: pattern.h:44
pattern(uint64_t _mask, uint64_t _start, uint64_t _end)
Construct a new pattern object.
Definition: pattern.h:59
virtual ~pattern()
Destroy the pattern object.
Definition: pattern.h:71
virtual void process_rule(uint64_t _old_value, uint64_t &_new_value)
process rule evaluation between old and new values.
Definition: pattern.h:79
uint64_t m_end
new value to match with mask.
Definition: pattern.h:50
Definition: expression_vector.h:25