UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PackedObjectRef.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
5
6// HEADER_UNIT_SKIP - Included through other header
7
8#if UE_WITH_OBJECT_HANDLE_LATE_RESOLVE
9
11{
16 struct FPackedObjectRef
17 {
18 // Must be 0 for a reference to null.
19 // The least significant bit must always be 1 in a non-null reference.
21
22 inline bool operator==(FPackedObjectRef RHS) const
23 {
24 return EncodedRef == RHS.EncodedRef;
25 }
26
27 inline bool operator!=(FPackedObjectRef RHS) const
28 {
29 return EncodedRef != RHS.EncodedRef;
30 }
31
32 friend inline uint32 GetTypeHash(FPackedObjectRef ObjectRef)
33 {
34 return GetTypeHash(ObjectRef.EncodedRef);
35 }
36
37 inline bool IsNull() { return EncodedRef == 0; }
38 };
39}
40
41#endif
FPlatformTypes::UPTRINT UPTRINT
An unsigned integer the same size as a pointer.
Definition Platform.h:1146
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_FORCEINLINE_HINT bool operator!=(const FIndexedPointer &Other) const
Definition LockFreeList.h:76
uint32_t uint32
Definition binka_ue_file_header.h:6
uint32 GetTypeHash(const FKey &Key)
Definition BlackboardKey.h:35
bool operator==(const FCachedAssetKey &A, const FCachedAssetKey &B)
Definition AssetDataMap.h:501
Definition CoreGlobals.cpp:268