Interface and base class for all notification rule types.
More...
#include <I_pattern_rule.h>
|
| | 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.
|
| |
Interface and base class for all notification rule types.
◆ I_pattern_rule()
| sme::I_pattern_rule::I_pattern_rule |
( |
| ) |
|
|
inline |
Interface parent constructor for a new i pattern rule object.
◆ ~I_pattern_rule()
| virtual sme::I_pattern_rule::~I_pattern_rule |
( |
| ) |
|
|
inlinevirtual |
Destroy the i pattern rule object.
◆ action()
| void sme::I_pattern_rule::action |
( |
std::function< void()> |
_action | ) |
|
|
inline |
Binds a void(void) lambda as the callback action to this rule.
- Parameters
-
◆ is_active()
reports if rule is active for processing.
- Returns
- bool
◆ is_bound()
has the lambda callback been bound.
- Returns
- _always_inline
◆ process_rule()
| virtual void sme::I_pattern_rule::process_rule |
( |
std::uint64_t |
_old_value, |
|
|
std::uint64_t & |
_new_value |
|
) |
| |
|
pure virtual |
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 |
◆ pattern_rule_container
◆ m_is_active
| bool sme::I_pattern_rule::m_is_active |
|
protected |
◆ m_lambda
| std::function<void()> sme::I_pattern_rule::m_lambda |
|
protected |
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/I_pattern_rule.h