Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Creates an FInheritedContextExtension for a getter/setter API. | Async/InheritedContext.h | ||
FInheritedContextExtension UE::MakeInheritedContextExtension
(
Func GetVar |
Creates an FInheritedContextExtension for a variable accessed through a callable. | Async/InheritedContext.h |
UE::MakeInheritedContextExtension()
Description
Creates an FInheritedContextExtension for a getter/setter API. Use when the variable is not directly accessible (e.g. accessed through IsSavingPackage()/SetIsSavingPackage()). Getter and Setter are compile-time function pointers baked into the generated callbacks.
Usage: static FInheritedContextExtension GExt = MakeInheritedContextExtension<&UE::IsSavingPackage, &UE::SetIsSavingPackage>();
| Name | UE::MakeInheritedContextExtension |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/InheritedContext.h |
| Include Path | #include "Async/InheritedContext.h" |
namespace UE
{
template<auto Getter, auto Setter>
FInheritedContextExtension UE::MakeInheritedContextExtension()
}
UE::MakeInheritedContextExtension(Func)
Description
Creates an FInheritedContextExtension for a variable accessed through a callable. The callable is invoked on the current thread each time, so this works correctly with thread_local variables. Captures by copy-constructing, applies by assignment. Equivalent to TGuardValue propagation. The callable must return an lvalue reference and must be convertible to a function pointer (i.e. non-capturing lambda or free function).
Usage: static FInheritedContextExtension GMyFlagExt = MakeInheritedContextExtension([]() -> bool& { return GMyFlag; });
| Name | UE::MakeInheritedContextExtension |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/InheritedContext.h |
| Include Path | #include "Async/InheritedContext.h" |
namespace UE
{
template<typename Func>
FInheritedContextExtension UE::MakeInheritedContextExtension
(
Func GetVar
)
}