UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMLocation.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_VERSE_VM || defined(__INTELLISENSE__)
6
7#include "HAL/Platform.h"
8
10
11namespace Verse
12{
13struct FAllocationContext;
14struct VUniqueString;
15
16struct FLocation
17{
18 FLocation() = default;
19
20 explicit FLocation(uint32 Line)
21 : Line(Line)
22 {
23 }
24
26 {
27 return Left.Line == Right.Line;
28 }
29
31 {
32 return Left.Line != Right.Line;
33 }
34
35 friend uint32 GetTypeHash(const FLocation& Location)
36 {
37 return ::GetTypeHash(Location.Line);
38 }
39
40 template <typename TVisitor>
41 friend void Visit(TVisitor& Visitor, FLocation& Value)
42 {
43 Visitor.Visit(Value.Line, TEXT("Line"));
44 }
45
46 uint32 Line{};
47};
48
50{
51 return FLocation{0};
52}
53} // namespace Verse
54
55#endif
#define TEXT(x)
Definition Platform.h:1272
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
decltype(auto) Visit(Func &&Callable, Variants &&... Args)
Definition TVariant.h:271
uint32_t uint32
Definition binka_ue_file_header.h:6
@ Visitor
Definition XmppMultiUserChat.h:94
uint32 GetTypeHash(const FKey &Key)
Definition BlackboardKey.h:35
bool operator==(const FCachedAssetKey &A, const FCachedAssetKey &B)
Definition AssetDataMap.h:501
Definition Archive.h:36