Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/ScopedCallback.h |
Include |
#include "Templates/ScopedCallback.h" |
template<class CallbackType>
class TScopedCallback
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.
Name | Description | |
---|---|---|
|
TScopedCallback() |
Name | Description | |
---|---|---|
|
~TScopedCallback() |
Fires a callback if outstanding requests exist. |
Name | Description | ||
---|---|---|---|
|
HasRequests() |
Checks whether this callback has outstanding requests. |
|
|
Request() |
Request a callback. |
|
|
Unrequest() |
Unrequest a callback. |