UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMFalse.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 "VVMCell.h"
8#include "VVMGlobalHeapPtr.h"
10#include "VVMOption.h"
11#include "VVMType.h"
12
13namespace Verse
14{
15enum class EValueStringFormat;
16
17struct VFalse : VType
18{
21
22 static void InitializeGlobals(FAllocationContext Context);
23
24 COREUOBJECT_API void AppendToStringImpl(FAllocationContext Context, FUtf8StringBuilderBase& Builder, EValueStringFormat Format, TSet<const void*>& VisitedObjects, uint32 RecursionDepth);
25
26 static constexpr bool SerializeIdentity = false;
27 COREUOBJECT_API static void SerializeLayout(FAllocationContext Context, VFalse*& This, FStructuredArchiveVisitor& Visitor);
28 COREUOBJECT_API void SerializeImpl(FAllocationContext Context, FStructuredArchiveVisitor& Visitor);
29
30private:
31 VFalse(FAllocationContext Context)
33 {
34 }
35
36 static VFalse& New(FAllocationContext Context)
37 {
38 return *new (Context.AllocateFastCell(sizeof(VFalse))) VFalse(Context);
39 }
40};
41
44
45// True is represented as VOption(VFalse)
46inline VOption& GlobalTrue()
47{
48 return *GlobalTruePtr.Get();
49}
50
51inline VFalse& GlobalFalse()
52{
53 return *GlobalFalsePtr.Get();
54}
55
56} // namespace Verse
57#endif // WITH_VERSE_VM
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
T * New(FMemStackBase &Mem, int32 Count=1, int32 Align=DEFAULT_ALIGNMENT)
Definition MemStack.h:259
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition StringBuilder.h:79
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition ObjectPtr.h:426
bool SerializeImpl(const UScriptStruct *InSourceEventType, const void *InSourceEventData, FLiveLinkSerializedFrameData &OutSerializedData)
Definition LiveLinkCompression.cpp:126
Definition Archive.h:36
EValueStringFormat
Definition VVMValuePrinting.h:17