Rebel Fork Framework
|
Public Member Functions | |
template<class Receiver , class Callback > | |
void | Subscribe (Receiver *receiver, Priority priority, Callback handler) |
Subscribe to event. Callback receives only signal arguments. | |
template<class Receiver , class Callback > | |
void | SubscribeWithSender (Receiver *receiver, Priority priority, Callback handler) |
Subscribe to event. Callback receives sender and signal arguments. | |
Public Member Functions inherited from Urho3D::Detail::SignalBase< Priority, Sender, Args... > | |
void | Unsubscribe (RefCounted *receiver) |
Unsubscribe all handlers of specified receiver from this signal. | |
void | operator() (Sender *sender, InvokeArgs &&... args) |
Invoke signal. | |
bool | HasSubscriptions () const |
Returns true when event has at least one subscription. | |
Additional Inherited Members | |
Public Types inherited from Urho3D::Detail::SignalBase< Priority, Sender, Args... > | |
using | Handler = ea::fixed_function< HandlerSize, bool(RefCounted *, Sender *, Args...)> |
Signal handler type. | |
using | Subscription = ea::conditional_t< HasPriority, PrioritySignalSubscription< Handler, Priority >, SignalSubscription< Handler > > |
Subscription type. | |
using | SubscriptionVector = ea::conditional_t< HasPriority, ea::vector_multiset< Subscription >, ea::vector< Subscription > > |
Subscription collection type. | |
Static Public Attributes inherited from Urho3D::Detail::SignalBase< Priority, Sender, Args... > | |
static const unsigned | HandlerSize |
Small object optimization buffer size. | |
static constexpr bool | HasPriority |
Whether the signal is prioritized. | |
Protected Member Functions inherited from Urho3D::Detail::SignalBase< Priority, Sender, Args... > | |
void | RemoveExpiredElements () |
Handler | WrapHandler (Callback handler) |
Handler | WrapHandlerWithSender (Callback handler) |
Protected Attributes inherited from Urho3D::Detail::SignalBase< Priority, Sender, Args... > | |
SubscriptionVector | subscriptions_ |
Vector of subscriptions. May contain expired elements. | |
bool | invocationInProgress_ |
Whether the invocation is in progress. If true, cannot execute RemoveExpiredElements(). | |