Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/ScopedCallback.h |
Include | #include "Templates/ScopedCallback.h" |
Syntax
template<class CallbackType>
class TScopedCallback
Remarks
Helper object for batching callback requests and firing on destruction of the FScopedCallback object. CallbackType is a class implementing a static method called FireCallback, which does the work.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Fires a callback if outstanding requests exist. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | HasRequests () |
Checks whether this callback has outstanding requests. |
![]() |
void | Request () |
Request a callback. |
![]() |
void | Unrequest () |
Unrequest a callback. |