EM_Task/CoreUObject/Private/Serialization/ArchiveFindAllRefs.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

27 lines
722 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Serialization/ArchiveUObject.h"
/** Helper archive class to find all references, used by the cycle finder **/
class FArchiveFindAllRefs: public FArchiveUObject
{
public:
/**
* Constructor
*
* @param Src the object to serialize which may contain a references
*/
FArchiveFindAllRefs(UObject* Src);
virtual FString GetArchiveName() const { return TEXT("FArchiveFindAllRefs"); }
/** List of all direct references from the Object passed to the constructor **/
TArray<UObject*> References;
private:
/** Serialize a reference **/
FArchive& operator<<(class UObject*& Obj);
};