UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PropertyPathFunctionsTest.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Containers/Array.h"
7#include "Containers/Map.h"
8#include "Containers/Set.h"
9#include "Misc/Optional.h"
10#include "Templates/TypeHash.h"
11#include "UObject/Object.h"
14
15#include "PropertyPathFunctionsTest.generated.h"
16
17#if WITH_TESTS
18
19USTRUCT()
21{
23
24public:
25 UPROPERTY()
26 int32 Unused = -1;
27
28 UPROPERTY()
29 int32 Key = 0;
30
32
34 : Key(InKey)
35 {
36 }
37
39 {
40 return Key == Other.Key;
41 }
42
44 {
45 return GetTypeHashHelper(Value.Key);
46 }
47};
48
49USTRUCT()
51{
53
54public:
55 UPROPERTY()
56 int32 Unused = -1;
57
58 UPROPERTY()
59 int32 Int32 = 0;
60
61 UPROPERTY()
63
64 UPROPERTY()
65 TArray<int32> Int32Array;
66
67 UPROPERTY()
68 TSet<int32> Int32Set;
69
70 UPROPERTY()
72
73 UPROPERTY()
75};
76
77UCLASS()
79{
81
82public:
83 UPROPERTY()
85
86 UPROPERTY()
88
89 UPROPERTY()
91
92 UPROPERTY()
94
95 UPROPERTY()
97};
98
99#endif // WITH_TESTS
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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 UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
UE_FORCEINLINE_HINT uint32 GetTypeHashHelper(const T &V)
Definition TypeHash.h:215
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition Object.h:95
uint32 GetTypeHash(const FKey &Key)
Definition BlackboardKey.h:35
bool operator==(const FCachedAssetKey &A, const FCachedAssetKey &B)
Definition AssetDataMap.h:501
Definition Optional.h:131