UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RegisterCompiledInObjects.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#if UE_WITH_CONSTINIT_UOBJECT
8
10#include "Misc/TVariant.h"
12
13class UClass;
15class UObject;
16class UPackage;
17
18// Register partially initialized objects such as packages, classes, structs and enums for runtime construction
19// This structure is stored as a linked list where possible to avoid dynamic allocation during startup
21{
23
24 // Register an intrinsic class with a special initialization function
27 {
28 }
29
30 // Register a package and some objects that might otherwise not be registered - e.g. noexport structs and delegate
31 // function signatures. ArrayView should point to static memory
34 {
35 }
36
37 // Primary entry point - register a batch of objects from a single generated cpp file all together
38 // ArrayView should point to static memory
39 // Constructors for each possible set of parameters are provided to reduce code size at the call site
45 {
46 }
50 {
51 }
56 {
57 }
62 {
63 }
68 {
69 }
73 {
74 }
78 {
79 }
80
82 {
83 UPackage* Package = nullptr;
85 };
86
88 {
92 };
93
95 {
96 UClass* IntrinsicClass = nullptr;
98 };
99
102
103 // Delegating constructor
104 template<typename VARIANT>
107 {
108 Register();
109 }
110
111 // Register all our objects for deferred construction
113};
114
115#endif
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition TVariant.h:48
Definition Class.h:3793
Definition Class.h:2681
Definition Object.h:95
Definition Package.h:216
Definition TVariant.h:13