UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::AssetDataGather::Private::FAssetDataDiscoveryCache Class Reference

#include <AssetDataGathererDiscoveryCache.h>

Public Member Functions

FString GetCacheFileName () const
 
bool IsInitialized () const
 
EFeatureEnabled IsWriteEnabled () const
 
void Shutdown ()
 
void LoadAndUpdateCache ()
 
void SaveCache ()
 
FCachedVolumeInfoFindOrAddVolume (FStringView PathOrVolumeName)
 
FCachedDirScanDirFindOrAddDir (FStringView Path, FCachedVolumeInfo **OutVolume=nullptr)
 
void RemoveDir (FStringView Path)
 
FCachedVolumeInfoFindVolume (FStringView PathOrVolumeName)
 
FCachedDirScanDirFindDir (FStringView Path, FCachedVolumeInfo **OutVolume=nullptr)
 
void QueueConsume ()
 
void QueueAdd (FString DirName, FCachedDirScanDir DirData)
 
void QueueAdd (FString DirName, FFileJournalFileHandle JournalHandle, bool bIsReparsePoint)
 

Detailed Description

Keeps a record of the directories, files, and file timestamps that were found by the directory scan the last time it ran, and invalidates the records that have been reported modified by the PlatformFileJournal.

ThreadSafety: Not threadsafe, with the exception of QueueAdd functions, which can be called at any time from any thread.

Member Function Documentation

◆ FindDir()

FCachedDirScanDir * UE::AssetDataGather::Private::FAssetDataDiscoveryCache::FindDir ( FStringView  Path,
FCachedVolumeInfo **  OutVolume = nullptr 
)

Assumes Path has already been normalized.

◆ FindOrAddDir()

FCachedDirScanDir & UE::AssetDataGather::Private::FAssetDataDiscoveryCache::FindOrAddDir ( FStringView  Path,
FCachedVolumeInfo **  OutVolume = nullptr 
)

Assumes Path has already been normalized.

◆ FindOrAddVolume()

FCachedVolumeInfo & UE::AssetDataGather::Private::FAssetDataDiscoveryCache::FindOrAddVolume ( FStringView  PathOrVolumeName)

◆ FindVolume()

FCachedVolumeInfo * UE::AssetDataGather::Private::FAssetDataDiscoveryCache::FindVolume ( FStringView  PathOrVolumeName)

◆ GetCacheFileName()

FString UE::AssetDataGather::Private::FAssetDataDiscoveryCache::GetCacheFileName ( ) const

◆ IsInitialized()

bool UE::AssetDataGather::Private::FAssetDataDiscoveryCache::IsInitialized ( ) const
inline

◆ IsWriteEnabled()

EFeatureEnabled UE::AssetDataGather::Private::FAssetDataDiscoveryCache::IsWriteEnabled ( ) const
inline

◆ LoadAndUpdateCache()

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::LoadAndUpdateCache ( )

◆ QueueAdd() [1/2]

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::QueueAdd ( FString  DirName,
FCachedDirScanDir  DirData 
)

◆ QueueAdd() [2/2]

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::QueueAdd ( FString  DirName,
FFileJournalFileHandle  JournalHandle,
bool  bIsReparsePoint 
)

◆ QueueConsume()

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::QueueConsume ( )

◆ RemoveDir()

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::RemoveDir ( FStringView  Path)

◆ SaveCache()

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::SaveCache ( )

◆ Shutdown()

void UE::AssetDataGather::Private::FAssetDataDiscoveryCache::Shutdown ( )

The documentation for this class was generated from the following files: