#include <matchers.h>
Public Types | |
| using | funcType = std::function< bool(Event &)> |
| using | hookType = std::function< void(Event &)> |
Public Member Functions | |
| virtual bool | operator() (Event &ev) |
| virtual void | AddPreHook (const hookType &hook) |
| virtual void | AddPreHook (hookType &&hook) |
| virtual void | AddPostHook (const hookType &hook, PostHookCondition condition) |
| virtual void | AddPostHook (hookType &&hook, PostHookCondition condition) |
Private Member Functions | |
| virtual bool | check (Event &ev)=0 |
Private Attributes | |
| std::vector< hookType > | m_preHooks {} |
| std::vector< std::pair < hookType, PostHookCondition > > | m_postHooks {} |
Definition at line 17 of file matchers.h.
| using NSL::matcher::funcType = std::function<bool(Event &)> |
Definition at line 19 of file matchers.h.
| using NSL::matcher::hookType = std::function<void(Event &)> |
Definition at line 20 of file matchers.h.
|
inlinevirtual |
Definition at line 44 of file matchers.h.
|
inlinevirtual |
Definition at line 47 of file matchers.h.
|
inlinevirtual |
Definition at line 41 of file matchers.h.
|
inlinevirtual |
Definition at line 42 of file matchers.h.
|
privatepure virtual |
Implemented in NSL::notMatcher, NSL::orMatcher, NSL::andMatcher, and NSL::boolMatcher.
Referenced by operator()().
|
inlinevirtual |
Definition at line 22 of file matchers.h.
References NSL::Always, check(), m_postHooks, m_preHooks, NSL::OnFailure, and NSL::OnSuccess.
|
private |
Definition at line 53 of file matchers.h.
Referenced by operator()().
|
private |
Definition at line 52 of file matchers.h.
Referenced by operator()().
1.8.5