|
stmm-input-doc
0.17.0
|
Function callif. More...

Public Types | |
| using | CallIfFunction = std::function< bool(const shared_ptr< const Event > &)> |
Public Member Functions | |
| CallIfFuction (CallIfFunction &&oCallIfFunction) noexcept | |
| CallIfFuction (const CallIfFunction &oCallIfFunction) noexcept | |
| bool | operator() (const shared_ptr< const Event > &refEvent) const noexcept override |
| Function that determines whether an event should be sent to a listener. More... | |
Public Member Functions inherited from stmi::CallIf | |
| virtual | ~CallIf () noexcept=default |
Additional Inherited Members | |
Protected Member Functions inherited from stmi::CallIf | |
| CallIf () noexcept | |
Function callif.
Selects an event according to the return value of a custom function.
Beware! The function should not cause reference cycles that can lead to memory leaks.
The function should not throw exceptions (be noexcept).
| using stmi::CallIfFuction::CallIfFunction = std::function<bool(const shared_ptr<const Event>&)> |
|
explicitnoexcept |
|
explicitnoexcept |
|
inlineoverridevirtualnoexcept |
Function that determines whether an event should be sent to a listener.
| refEvent | The event. Cannot be null. |
true if the event is to be sent to the listener, false otherwise. Implements stmi::CallIf.
1.8.13