UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Handles.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
8#include "Handles.generated.h"
9
11{
13 static constexpr TableHandle InvalidTableHandle = TNumericLimits<TableHandle>::Max();
14
16 static constexpr RowHandle InvalidRowHandle = 0;
17
19 static constexpr QueryHandle InvalidQueryHandle = TNumericLimits<QueryHandle>::Max();
20
22 {
24 };
25} // namespace UE::Editor::DataStorage
26
27/*
28 * FTedsRowHandle is a strongly typed wrapper around UE::Editor::DataStorage::RowHandle and should only be used in cases where you need the extra info.
29 * E.g for reflection/UHT or for template specializing something that needs to know the semantics of the row handle.
30 * For all other cases, you should use the regular typedef UE::Editor::DataStorage::RowHandle
31 */
32USTRUCT()
34{
36
37 UPROPERTY()
38 uint64 RowHandle = UE::Editor::DataStorage::InvalidRowHandle;
39
40 operator UE::Editor::DataStorage::RowHandle () const
41 {
42 return RowHandle;
43 }
44
50
51 bool IsValid() const
52 {
53 return RowHandle != UE::Editor::DataStorage::InvalidRowHandle;
54 }
55
57 {
58 return GetTypeHash(Key.RowHandle);
59 }
60};
61
62static_assert(sizeof(FTedsRowHandle::RowHandle) == sizeof(UE::Editor::DataStorage::RowHandle), "RowHandle and RowHandle wrapper sizes should match");
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition CommonTypes.cpp:10
uint64 TableHandle
Definition Handles.h:12
uint64 QueryHandle
Definition Handles.h:18
uint64 RowHandle
Definition Handles.h:15
Definition AdvancedWidgetsModule.cpp:13
Definition Handles.h:34
bool IsValid() const
Definition Handles.h:51
friend uint32 GetTypeHash(const FTedsRowHandle &Key)
Definition Handles.h:56
FTedsRowHandle & operator=(UE::Editor::DataStorage::RowHandle InRowHandle)
Definition Handles.h:45
uint64 RowHandle
Definition Handles.h:38
Definition NumericLimits.h:41
uint64 Reserved
Definition Handles.h:23