Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl |
Include |
#include "Delegates/DelegateSignatureImpl.inl" |
template<typename T>
struct TObjectPtr
TObjectPtr is a type of pointer to a UObject that is meant to function as a drop-in replacement for raw pointer member properties. It is size equivalent to a 64-bit pointer and supports access tracking and optional lazy load behavior in editor builds. It stores either the address to the referenced object or (in editor builds) an index in the object handle table that describes a referenced object that hasn't been loaded yet. It is serialized identically to a raw pointer to a UObject. When resolved, its participation in garbage collection is identical to a raw pointer to a UObject.
This is useful for automatic replacement of raw pointers to support advanced cook-time dependency tracking and editor-time lazy load use cases. See UnrealObjectPtrTool for tooling to automatically replace raw pointer members with FObjectPtr/TObjectPtr members instead.
Name | Description | ||
---|---|---|---|
|
T * |
DebugPtr |
DebugPtr allows for easier dereferencing of a resolved TObjectPtr in watch windows of debuggers. |
|
ObjectPtr |
Name | Description | |
---|---|---|
|
TObjectPtr() |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
Name | Description | ||
---|---|---|---|
|
T * |
Get() |
: OBJPTR: There is a risk that the FObjectPtr is storing a reference to the wrong type. |
|
UClass * |
GetClass() |
|
|
GetFName() |
||
|
GetFullName ( |
||
|
FObjectHandl... |
GetHandle() |
|
|
GetName() |
||
|
TObjectPtr< ... |
GetOuter() |
|
|
TObjectPtr< ... |
GetPackage() |
|
|
GetPath() |
||
|
GetPathName() |
||
|
uint32 |
GetPtrTypeHash() |
|
|
bool |
IsA ( |
|
|
bool |
IsA() |
|
|
bool |
IsResolved() |
|
|
void |
SerializePtrStructured ( |
Name | Description | ||
---|---|---|---|
|
operator bool() |
||
|
operator T *() |
||
|
operator T *&() |
||
|
operator U *() |
||
|
operator UPTRINT() |
||
|
bool |
operator!() |
|
|
bool |
operator!= ( |
|
|
bool |
operator!= ( |
|
|
bool |
operator!= ( |
|
|
T & |
operator*() |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
bool |
operator== ( |
Equality/Inequality comparisons against other TObjectPtr. |
|
bool |
operator== ( |
Equality/Inequality comparisons against nullptr. |
|
bool |
operator== ( |
Equality/Inequality comparisons against another type that can be implicitly converted to the pointer type kept in a TObjectPtr. |
|
T * |
operator->() |
Name |
Description |
---|---|
ElementType |
TObjectPtr should only be used on types T that are EITHER: |
Name | Description | ||
---|---|---|---|
|
bool |
IsNull() |
IsNull is deprecated, please use operator bool instead. if (!MyObjectPtr) { ... } |
|
bool |
IsNullNoResolve() |
IsNullNoResolve is deprecated, please use operator bool instead. if (!MyObjectPtr) { ... } |