UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMGlobalHeapRoot.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
9namespace Verse
10{
11struct FAbstractVisitor;
13
14// If you have a class that is meant to be used exclusively for global variables (like TUniqueConstructor), then
15// subclass this to give that class the ability to mark its referenced cells.
16//
17// Never use this for things that aren't truly global.
18struct FGlobalHeapRoot
19{
21 virtual ~FGlobalHeapRoot() = default;
22
23 virtual void Visit(FMarkStackVisitor& Visitor) = 0;
24 virtual void Visit(FAbstractVisitor& Visitor) = 0;
25};
26
27} // namespace Verse
28#endif // WITH_VERSE_VM
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
decltype(auto) Visit(Func &&Callable, Variants &&... Args)
Definition TVariant.h:271
Definition Archive.h:36