Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FDelegateHandle Class Reference

#include <IDelegateInstance.h>

Public Types

enum  EGenerateNewHandleType { GenerateNewHandle }
 

Public Member Functions

 FDelegateHandle ()
 
 FDelegateHandle (EGenerateNewHandleType)
 
bool IsValid () const
 
void Reset ()
 
bool operator== (const FDelegateHandle &Rhs) const
 
bool operator!= (const FDelegateHandle &Rhs) const
 

Static Private Member Functions

static uint64 GenerateNewID ()
 

Private Attributes

uint64 ID
 

Friends

FORCEINLINE uint32 GetTypeHash (const FDelegateHandle &Key)
 

Detailed Description

Class representing a handle to a specific object/function pair bound to a delegate.

Definition at line 13 of file IDelegateInstance.h.

Member Enumeration Documentation

◆ EGenerateNewHandleType

Enumerator
GenerateNewHandle 

Definition at line 16 of file IDelegateInstance.h.

Constructor & Destructor Documentation

◆ FDelegateHandle() [1/2]

FDelegateHandle::FDelegateHandle ( )
inline

Creates an initially unset handle

Definition at line 22 of file IDelegateInstance.h.

◆ FDelegateHandle() [2/2]

FDelegateHandle::FDelegateHandle ( EGenerateNewHandleType )
inlineexplicit

Creates a handle pointing to a new instance

Definition at line 28 of file IDelegateInstance.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ GenerateNewID()

static uint64 FDelegateHandle::GenerateNewID ( )
staticprivate

Generates a new ID for use the delegate handle.

Returns
A unique ID for the delegate.
+ Here is the caller graph for this function:

◆ IsValid()

bool FDelegateHandle::IsValid ( ) const
inline

Returns true if this was ever bound to a delegate, but you need to check with the owning delegate to confirm it is still valid

Definition at line 34 of file IDelegateInstance.h.

◆ operator!=()

bool FDelegateHandle::operator!= ( const FDelegateHandle & Rhs) const
inline

Definition at line 50 of file IDelegateInstance.h.

◆ operator==()

bool FDelegateHandle::operator== ( const FDelegateHandle & Rhs) const
inline

Definition at line 45 of file IDelegateInstance.h.

◆ Reset()

void FDelegateHandle::Reset ( )
inline

Clear handle to indicate it is no longer bound

Definition at line 40 of file IDelegateInstance.h.

Friends And Related Symbol Documentation

◆ GetTypeHash

FORCEINLINE uint32 GetTypeHash ( const FDelegateHandle & Key)
friend

Definition at line 55 of file IDelegateInstance.h.

Member Data Documentation

◆ ID

uint64 FDelegateHandle::ID
private

Definition at line 69 of file IDelegateInstance.h.


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