|
Rebel Fork Framework
|
Base signal type. More...
#include <Urho3D/Core/Signal.h>
Public Types | |
| using | Handler = ea::fixed_function<HandlerSize, bool(RefCounted*, Sender*, Args...)> |
| Signal handler type. | |
| using | Subscription |
| Subscription type. | |
| using | SubscriptionVector |
| Subscription collection type. | |
Public Member Functions | |
| void | Unsubscribe (RefCounted *receiver) |
| Unsubscribe all handlers of specified receiver from this signal. | |
| template<typename... InvokeArgs> | |
| void | operator() (Sender *sender, InvokeArgs &&... args) |
| Invoke signal. | |
| bool | HasSubscriptions () const |
| Returns true when event has at least one subscription. | |
Protected Member Functions | |
| void | RemoveExpiredElements () |
| template<class Receiver, class Callback> | |
| Handler | WrapHandler (Callback handler) |
| template<class Receiver, class Callback> | |
| Handler | WrapHandlerWithSender (Callback handler) |
Protected Attributes | |
| SubscriptionVector | subscriptions_ |
| Vector of subscriptions. May contain expired elements. | |
| bool | invocationInProgress_ {} |
| Whether the invocation is in progress. If true, cannot execute RemoveExpiredElements(). | |
Base signal type.
| using Urho3D::Detail::SignalBase< Priority, Sender, Args >::Subscription |
Subscription type.
| using Urho3D::Detail::SignalBase< Priority, Sender, Args >::SubscriptionVector |
Subscription collection type.