![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Settings for the TEventDelegate class, which defines optional behavior when adding a binding to it. More...
#include <EventDelegate.h>
Public Member Functions | |
| FORCEINLINE constexpr FEventPolicy | With (FEventPolicy const &other) const |
| Merge two policy flags. | |
| FORCEINLINE constexpr bool | IsDefault () const |
| Is this instance equivalent to a default constructed one. | |
Data Fields | |
| bool | Once = false |
| The binding will be automatically removed after the next broadcast. | |
| bool | Belated = false |
| The binding will be executed immediately if the delegate has already been broadcasted. | |
| bool | CacheViaCopy = false |
| Attempt to copy arguments when storing them for belated invokes, instead of perfect forwarding them. This is only considered from the template argument. | |
| bool | ThreadSafe = false |
| Enable mutex locks around adding/broadcasting delegates. Only considered in DefaultPolicy. | |
Friends | |
| FORCEINLINE friend constexpr bool | operator== (FEventPolicy const &lhs, FEventPolicy const &rhs) |
| FORCEINLINE friend constexpr bool | operator!= (FEventPolicy const &lhs, FEventPolicy const &rhs) |
Settings for the TEventDelegate class, which defines optional behavior when adding a binding to it.
Definition at line 26 of file EventDelegate.h.
|
inlineconstexpr |
Is this instance equivalent to a default constructed one.
Definition at line 70 of file EventDelegate.h.
|
inlineconstexpr |
Merge two policy flags.
Definition at line 45 of file EventDelegate.h.
|
friend |
Definition at line 64 of file EventDelegate.h.
|
friend |
Definition at line 55 of file EventDelegate.h.
| bool Mcro::Delegates::FEventPolicy::Belated = false |
The binding will be executed immediately if the delegate has already been broadcasted.
Definition at line 32 of file EventDelegate.h.
| bool Mcro::Delegates::FEventPolicy::CacheViaCopy = false |
Attempt to copy arguments when storing them for belated invokes, instead of perfect forwarding them. This is only considered from the template argument.
Definition at line 39 of file EventDelegate.h.
| bool Mcro::Delegates::FEventPolicy::Once = false |
The binding will be automatically removed after the next broadcast.
Definition at line 29 of file EventDelegate.h.
| bool Mcro::Delegates::FEventPolicy::ThreadSafe = false |
Enable mutex locks around adding/broadcasting delegates. Only considered in DefaultPolicy.
Definition at line 42 of file EventDelegate.h.