UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMHeapIterationSet.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 "verse_heap_object_set_ue.h"
8#include "verse_heap_ue.h"
9
10namespace Verse
11{
12class FSubspace;
13
14class FHeapIterationSet final
15{
16public:
18 {
19 return reinterpret_cast<FHeapIterationSet*>(verse_heap_object_set_create());
20 }
21
22 static FHeapIterationSet* AllObjects()
23 {
24 return reinterpret_cast<FHeapIterationSet*>(&verse_heap_all_objects);
25 }
26
28 {
29 verse_heap_add_to_set(reinterpret_cast<pas_heap*>(Subspace), reinterpret_cast<verse_heap_object_set*>(this));
30 }
31
33 {
35 }
36
38 {
40 reinterpret_cast<verse_heap_object_set*>(this));
41 }
42
43 void IterateRange(size_t Begin,
44 size_t End,
46 void (*Callback)(void* Object, void* Arg),
47 void* Arg)
48 {
49 // FIXME: It would be super awesome if this could call verse_heap_object_set_iterate_range_inline.
51 reinterpret_cast<verse_heap_object_set*>(this), Begin, End, Filter, Callback, Arg);
52 }
53
54 void EndIterate()
55 {
57 }
58
59private:
60 FHeapIterationSet() = delete;
61 FHeapIterationSet(const FHeapIterationSet&) = delete;
62};
63
64} // namespace Verse
65#endif // WITH_VERSE_VM
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Archive.h:36