UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ImportTypeHierarchy.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
6#include "UObject/NameTypes.h"
9
10/*
11* FImportTypeHierarchy are meta-data entries stored as a map in package files (see FPackageFileSummary).
12* Their purpose is to store the full type hierarchy of a package Import entry that is a Struct-based object.
13* NOTE1: This is internal-engine data that should not be used by user code. The format of the data is also subject to change.
14* NOTE2: The class hierarchy stored is a snapshot of the type when the object was saved. It might not correspond to the actual
15 type hierarchy when the object is loaded.
16* NOTE3: UObject::StaticClass is omitted from the SuperTypes array as it is implied.
17*/
19{
20
23{
25 // Package where the type object lives.
27 // This is the Class 'kind' for the type (e.g., "Class", "VerseClass", "BlueprintGeneratedClass", "UserDefinedStruct", etc).
29 // Package where the Class 'kind' object lives.
31
35};
36
39{
40 TArray<FTypeResource> SuperTypes;
41
42public:
43
44 UE_INTERNAL const TArray<FTypeResource>& GetSuperTypes() const { return SuperTypes; }
45 UE_INTERNAL void AddSuperType(const FTypeResource& SuperType) { SuperTypes.Add(SuperType); }
46 UE_INTERNAL void AddSuperType(FTypeResource&& SuperType) { SuperTypes.Add(SuperType); }
47
49
53};
54
55} // namespace UE::Serialization::Private
#define UE_INTERNAL
Definition CoreMiscDefines.h:345
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Archive.h:1208
Definition NameTypes.h:617
Definition StructuredArchiveSlots.h:52
Definition Array.h:670
UE_NODEBUG UE_FORCEINLINE_HINT SizeType Add(ElementType &&Item)
Definition Array.h:2696
Definition ImportTypeHierarchy.h:39
static UE_INTERNAL bool IsSerializationEnabled()
Definition ImportTypeHierarchy.cpp:17
UE_INTERNAL void AddSuperType(const FTypeResource &SuperType)
Definition ImportTypeHierarchy.h:45
UE_INTERNAL const TArray< FTypeResource > & GetSuperTypes() const
Definition ImportTypeHierarchy.h:44
friend COREUOBJECT_API FArchive & operator<<(FArchive &Ar, FImportTypeHierarchy &I)
Definition ImportTypeHierarchy.cpp:39
UE_INTERNAL void AddSuperType(FTypeResource &&SuperType)
Definition ImportTypeHierarchy.h:46
Definition StructuredLog.cpp:42
Definition ImportTypeHierarchy.h:23
FName PackageName
Definition ImportTypeHierarchy.h:26
FName TypeName
Definition ImportTypeHierarchy.h:24
friend COREUOBJECT_API FArchive & operator<<(FArchive &Ar, FTypeResource &R)
Definition ImportTypeHierarchy.cpp:23
FName ClassName
Definition ImportTypeHierarchy.h:28
FName ClassPackageName
Definition ImportTypeHierarchy.h:30