UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WeakFieldPtr.h File Reference
#include "Templates/Requires.h"
#include "UObject/WeakObjectPtrTemplates.h"
#include "UObject/WeakObjectPtr.h"
#include "UObject/FieldPath.h"
#include <type_traits>

Go to the source code of this file.

Classes

struct  TWeakFieldPtr< T >
 
struct  TIsPODType< TWeakFieldPtr< T > >
 
struct  TIsZeroConstructType< TWeakFieldPtr< T > >
 
struct  TIsWeakPointerType< TWeakFieldPtr< T > >
 
struct  TWeakFieldPtrMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >
 

Functions

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator== (const TWeakFieldPtr< LhsType > &Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator== (const TWeakFieldPtr< LhsType > &Lhs, const RhsType *Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator== (const LhsType *Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator!= (const TWeakFieldPtr< LhsType > &Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator!= (const TWeakFieldPtr< LhsType > &Lhs, const RhsType *Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator!= (const LhsType *Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator== (const TWeakFieldPtr< LhsType > &Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator== (const TWeakFieldPtr< LhsType > &Lhs, const RhsType *Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator== (const LhsType *Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType >
UE_FORCEINLINE_HINT bool operator== (const TWeakFieldPtr< LhsType > &Lhs, TYPE_OF_NULLPTR)
 
template<typename RhsType >
UE_FORCEINLINE_HINT bool operator== (TYPE_OF_NULLPTR, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator!= (const TWeakFieldPtr< LhsType > &Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator!= (const TWeakFieldPtr< LhsType > &Lhs, const RhsType *Rhs)
 
template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator!= (const LhsType *Lhs, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename LhsType >
UE_FORCEINLINE_HINT bool operator!= (const TWeakFieldPtr< LhsType > &Lhs, TYPE_OF_NULLPTR)
 
template<typename RhsType >
UE_FORCEINLINE_HINT bool operator!= (TYPE_OF_NULLPTR, const TWeakFieldPtr< RhsType > &Rhs)
 
template<typename T >
UE_FORCEINLINE_HINT TWeakFieldPtr< T > MakeWeakFieldPtr (T *Ptr)
 
template<class T >
FArchiveoperator<< (FArchive &Ar, TWeakFieldPtr< T > &WeakFieldPtr)
 

Function Documentation

◆ MakeWeakFieldPtr()

template<typename T >
UE_FORCEINLINE_HINT TWeakFieldPtr< T > MakeWeakFieldPtr ( T *  Ptr)

◆ operator!=() [1/8]

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator!= ( const LhsType Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for inequality

Parameters
Lhspointer to compare
Rhsweak pointer to compare

◆ operator!=() [2/8]

template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator!= ( const LhsType Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for inequality

Parameters
Lhspointer to compare
Rhsweak pointer to compare

◆ operator!=() [3/8]

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator!= ( const TWeakFieldPtr< LhsType > &  Lhs,
const RhsType Rhs 
)

Compare weak pointers for inequality

Parameters
Lhsweak pointer to compare
Rhspointer to compare

◆ operator!=() [4/8]

template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator!= ( const TWeakFieldPtr< LhsType > &  Lhs,
const RhsType Rhs 
)

Compare weak pointers for inequality

Parameters
Lhsweak pointer to compare
Rhspointer to compare

◆ operator!=() [5/8]

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator!= ( const TWeakFieldPtr< LhsType > &  Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for inequality

Parameters
Lhsweak pointer to compare
Rhsweak pointer to compare

◆ operator!=() [6/8]

template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator!= ( const TWeakFieldPtr< LhsType > &  Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for inequality

Parameters
Lhsweak pointer to compare
Rhsweak pointer to compare

◆ operator!=() [7/8]

Test weak pointer for non-null

Parameters
Lhsweak pointer to test

◆ operator!=() [8/8]

Test weak pointer for non-null

Parameters
Rhsweak pointer to test

◆ operator<<()

template<class T >
FArchive & operator<< ( FArchive Ar,
TWeakFieldPtr< T > &  WeakFieldPtr 
)

◆ operator==() [1/8]

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator== ( const LhsType Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for equality

Parameters
Lhspointer to compare
Rhsweak pointer to compare

◆ operator==() [2/8]

template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator== ( const LhsType Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for equality

Parameters
Lhspointer to compare
Rhsweak pointer to compare

◆ operator==() [3/8]

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator== ( const TWeakFieldPtr< LhsType > &  Lhs,
const RhsType Rhs 
)

Compare weak pointers for equality

Parameters
Lhsweak pointer to compare
Rhspointer to compare

◆ operator==() [4/8]

template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator== ( const TWeakFieldPtr< LhsType > &  Lhs,
const RhsType Rhs 
)

Compare weak pointers for equality

Parameters
Lhsweak pointer to compare
Rhspointer to compare

◆ operator==() [5/8]

template<typename LhsType , typename RhsType UE_REQUIRES>
bool operator== ( const TWeakFieldPtr< LhsType > &  Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for equality

Parameters
Lhsweak pointer to compare
Rhsweak pointer to compare

◆ operator==() [6/8]

template<typename LhsType , typename RhsType UE_REQUIRES_DEFINITION>
UE_FORCEINLINE_HINT bool operator== ( const TWeakFieldPtr< LhsType > &  Lhs,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Compare weak pointers for equality

Parameters
Lhsweak pointer to compare
Rhsweak pointer to compare

◆ operator==() [7/8]

template<typename LhsType >
UE_FORCEINLINE_HINT bool operator== ( const TWeakFieldPtr< LhsType > &  Lhs,
TYPE_OF_NULLPTR   
)

Test weak pointer for null

Parameters
Lhsweak pointer to test

◆ operator==() [8/8]

template<typename RhsType >
UE_FORCEINLINE_HINT bool operator== ( TYPE_OF_NULLPTR  ,
const TWeakFieldPtr< RhsType > &  Rhs 
)

Test weak pointer for null

Parameters
Rhsweak pointer to test