Files
UnrealEngineUWP/Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCacheModule.h
devin doucette abd22903b7 Fixed forwarding of -DDC=<Graph> to avoid initializing DDC and only forward non-default graph names
#preflight 631f926c1e6887c4a6d4c30d
#rb Zousar.Shaker

[CL 21984731 by devin doucette in ue5-main branch]
2022-09-13 12:12:58 -04:00

38 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "Modules/ModuleInterface.h"
class FDerivedDataCacheInterface;
/**
* Module for the Derived Data Cache and Derived Data Build.
*/
class IDerivedDataCacheModule : public IModuleInterface
{
public:
/** Return the DDC interface **/
UE_DEPRECATED(4.27, "GetDDC has been replaced by CreateOrGetCache.")
virtual FDerivedDataCacheInterface& GetDDC() = 0;
/**
* Returns the cache, which is created by the first call to this function.
*
* This always returns a pointer to a valid cache, but that pointer becomes null when the module
* shuts down and destroys the cache. This extra level of indirection allows a caller to observe
* the destruction of the cache without polling this function or monitoring the module lifetime.
*/
virtual FDerivedDataCacheInterface* const* CreateOrGetCache() = 0;
/**
* Returns a pointer to the cache, which may be null.
*
* This returns a non-null pointer to a cache which may be null and becomes null when the module
* shuts down and destroys the cache. This extra level of indirection allows a caller to observe
* the destruction of the cache without polling this function or monitoring the module lifetime.
*/
virtual FDerivedDataCacheInterface* const* GetCache() = 0;
};