Files
UnrealEngineUWP/Engine/Source/Developer/DerivedDataCache/Public/DerivedDataBuildFunctionRegistry.h
zousar shaker cd9c332085 Add methods for iterating through build functions in the function registry.
#rb devin.doucette

#ROBOMERGE-SOURCE: CL 16888770 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16888793 by zousar shaker in ue5-release-engine-test branch]
2021-07-19 16:49:35 -04:00

32 lines
987 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/StringFwd.h"
#include "Templates/Function.h"
struct FGuid;
namespace UE::DerivedData { class IBuildFunction; }
namespace UE::DerivedData
{
/**
* A build function registry maintains a collection of build functions.
*/
class IBuildFunctionRegistry
{
public:
virtual ~IBuildFunctionRegistry() = default;
/** Find a function by name. Returns null if not found. Safe to call from a scheduled job or the main thread. */
virtual const IBuildFunction* FindFunction(FStringView Function) const = 0;
/** Find a function version by name. Returns zero if not found. Safe to call from any thread. */
virtual FGuid FindFunctionVersion(FStringView Function) const = 0;
/** Iterate the complete list of build function versions. Safe to call from any thread. */
virtual void IterateFunctionVersions(TFunctionRef<void(FStringView Name, const FGuid& Version)> Visitor) const = 0;
};
} // UE::DerivedData