NSL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Member Functions | Private Attributes | List of all members
NSL::boolMatcher Class Reference

#include <matchers.h>

Inheritance diagram for NSL::boolMatcher:
NSL::matcher

Public Member Functions

 boolMatcher (funcType match)
 
 ~boolMatcher ()=default
 
- Public Member Functions inherited from NSL::matcher
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

bool check (Event &ev) override
 

Private Attributes

funcType m_match
 

Additional Inherited Members

- Public Types inherited from NSL::matcher
using funcType = std::function< bool(Event &)>
 
using hookType = std::function< void(Event &)>
 

Detailed Description

Definition at line 58 of file matchers.h.

Constructor & Destructor Documentation

NSL::boolMatcher::boolMatcher ( funcType  match)
inlineexplicit

Definition at line 60 of file matchers.h.

NSL::boolMatcher::~boolMatcher ( )
default

Member Function Documentation

bool NSL::boolMatcher::check ( Event ev)
inlineoverrideprivatevirtual

Implements NSL::matcher.

Definition at line 64 of file matchers.h.

Member Data Documentation

funcType NSL::boolMatcher::m_match
private

Definition at line 67 of file matchers.h.


The documentation for this class was generated from the following file: