UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TScopedCallback< CallbackType > Class Template Reference

#include <ScopedCallback.h>

Public Member Functions

 TScopedCallback ()
 
 ~TScopedCallback ()
 
void Request ()
 
void Unrequest ()
 
bool HasRequests () const
 

Detailed Description

template<class CallbackType>
class TScopedCallback< CallbackType >

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.

Constructor & Destructor Documentation

◆ TScopedCallback()

◆ ~TScopedCallback()

template<class CallbackType >
TScopedCallback< CallbackType >::~TScopedCallback ( )
inline

Fires a callback if outstanding requests exist.

Member Function Documentation

◆ HasRequests()

template<class CallbackType >
bool TScopedCallback< CallbackType >::HasRequests ( ) const
inline

Checks whether this callback has outstanding requests.

Returns
true if there are outstanding requests, false otherwise.

◆ Request()

template<class CallbackType >
void TScopedCallback< CallbackType >::Request ( )
inline

Request a callback.

◆ Unrequest()

template<class CallbackType >
void TScopedCallback< CallbackType >::Unrequest ( )
inline

Unrequest a callback.


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