UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMEnumerationInline.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#if WITH_VERSE_VM || defined(__INTELLISENSE__)
5
7
8namespace Verse
9{
10
11inline VEnumerator& VEnumeration::GetEnumeratorChecked(int32 IntValue) const
12{
13 V_DIE_UNLESS(IntValue >= 0 && IntValue < int32(NumEnumerators));
14 return *Enumerators[IntValue].Get();
15}
16
17inline VEnumeration& VEnumeration::New(FAllocationContext Context, VPackage* Package, VArray* RelativePath, VArray* EnumName, VArray* AttributeIndices, VArray* Attributes, UEnum* ImportEnum, bool bNative, const TArray<VEnumerator*>& Enumerators)
18{
19 return *new (Context.AllocateFastCell(sizeof(VEnumeration) + Enumerators.Num() * sizeof(TWriteBarrier<VEnumerator>))) VEnumeration(Context, Package, RelativePath, EnumName, AttributeIndices, Attributes, ImportEnum, bNative, Enumerators);
20}
21
22} // namespace Verse
23#endif // WITH_VERSE_VM
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
Definition Array.h:670
Definition Class.h:2791
Definition Archive.h:36