MCRO
C++23 utilities for Unreal Engine.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
Mcro::Delegates::FEventPolicy Struct Reference

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)
 

Detailed Description

Settings for the TEventDelegate class, which defines optional behavior when adding a binding to it.

Definition at line 26 of file EventDelegate.h.

Member Function Documentation

◆ IsDefault()

FORCEINLINE constexpr bool Mcro::Delegates::FEventPolicy::IsDefault ( ) const
inlineconstexpr

Is this instance equivalent to a default constructed one.

Definition at line 70 of file EventDelegate.h.

◆ With()

FORCEINLINE constexpr FEventPolicy Mcro::Delegates::FEventPolicy::With ( FEventPolicy const & other) const
inlineconstexpr

Merge two policy flags.

Definition at line 45 of file EventDelegate.h.

Friends And Related Symbol Documentation

◆ operator!=

FORCEINLINE friend constexpr bool operator!= ( FEventPolicy const & lhs,
FEventPolicy const & rhs )
friend

Definition at line 64 of file EventDelegate.h.

◆ operator==

FORCEINLINE friend constexpr bool operator== ( FEventPolicy const & lhs,
FEventPolicy const & rhs )
friend

Definition at line 55 of file EventDelegate.h.

Field Documentation

◆ Belated

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.

◆ CacheViaCopy

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.

◆ Once

bool Mcro::Delegates::FEventPolicy::Once = false

The binding will be automatically removed after the next broadcast.

Definition at line 29 of file EventDelegate.h.

◆ ThreadSafe

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.


The documentation for this struct was generated from the following file: