|
SAT Solver Template
|
C# inspired event class that manages a list of event handlers that can be invoked together. More...
#include <SubscribableEvent.hpp>
Public Member Functions | |
| SubscribableEvent (const SubscribableEvent &)=delete | |
| SubscribableEvent & | operator= (const SubscribableEvent &)=delete |
| SubscribableEvent (SubscribableEvent &&) noexcept=default | |
| SubscribableEvent & | operator= (SubscribableEvent &&) noexcept=default |
| template<typename Handler > | |
| void | subscribe_unhandled (Handler &&handlerFunction) |
| template<typename Handler > | |
| SubscriberHandle | subscribe_handled (Handler &&handlerFunction) |
| template<typename ... InvokeArgs> | |
| void | trigger (InvokeArgs &&... args) const |
C# inspired event class that manages a list of event handlers that can be invoked together.
| Args | Arguments types of the event handler functions |
|
inline |
Adds a functor to the event handler list. The functor is called when trigger is invoked
| Handler | type of handler functor |
| handlerFunction | functor to be subscribed to the event |
|
inline |
Adds a functor to the event handler list. The functor is called when trigger is invoked
| Handler | type of handler functor |
| handlerFunction | functor to be subscribed to the event |
|
inline |
Triggers the event. All subscribed event handlers are invoked with the provided arguments
| args | arguments to the event handlers |