template<typename R, typename... Args>
bpf::Event<R(Args...)> class

Template parameters
R the return type
Args the argument types

Contents

Represents an event (non const mode)

Public functions

void operator+=(Delegate<R(Args...)>&& delegate)
void Invoke(Args && ... args)
auto GetEventCount() const -> fsize noexcept

Function documentation

template<typename R, typename... Args>
void bpf::Event<R(Args...)><R, Args>::operator+=(Delegate<R(Args...)>&& delegate)

Parameters
delegate the delegate to register

Subscribes a new delegate to this event

template<typename R, typename... Args>
void bpf::Event<R(Args...)><R, Args>::Invoke(Args && ... args)

Parameters
args the arguments to pass to the delegate

Invokes this event. Delegates are automatically removed

template<typename R, typename... Args>
fsize bpf::Event<R(Args...)><R, Args>::GetEventCount() const noexcept

Returns unsigned

Returns number of events