UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMPackageInline.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
12
13namespace Verse
14{
15
16template <typename FunctorType> // FunctorType is (VTupleType*) -> void
17void VPackage::ForEachUsedTupleType(FunctorType&& F)
18{
20 {
21 UsedTupleTypes->ForEach([&](VCell* Key, VCell* Value) { F(&Key->StaticCast<VTupleType>()); });
22 }
23}
24
25template <typename FunctorType> // FunctorType is (VNamedType*) -> void
26void VPackage::ForEachUsedImport(FunctorType&& F)
27{
28 if (UsedImports)
29 {
30 for (uint32 Index = 0; Index < UsedImports->Num(); ++Index)
31 {
32 F(&UsedImports->GetValue(Index).StaticCast<VNamedType>());
33 }
34 }
35}
36
37} // namespace Verse
38#endif // WITH_VERSE_VM
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:36
U16 Index
Definition radfft.cpp:71