You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-147632 #rb Rob.Gay, Helen.Yang #preflight 62791ab5066ebb49109cfaea [CL 20102001 by phil popp in ue5-main branch]
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MetasoundFrontendArchetypeRegistry.h"
|
|
#include "MetasoundFrontendController.h"
|
|
#include "MetasoundFrontendDocument.h"
|
|
#include "MetasoundFrontendRegistryTransaction.h"
|
|
#include "UObject/NoExportTypes.h"
|
|
|
|
namespace Metasound
|
|
{
|
|
namespace Frontend
|
|
{
|
|
using FInterfaceTransactionStream = TTransactionStream<FInterfaceRegistryTransaction>;
|
|
|
|
class FInterfaceRegistry : public IInterfaceRegistry
|
|
{
|
|
public:
|
|
|
|
static FInterfaceRegistry& Get();
|
|
|
|
FInterfaceRegistry();
|
|
|
|
virtual ~FInterfaceRegistry() = default;
|
|
|
|
virtual void RegisterInterface(TUniquePtr<IInterfaceRegistryEntry>&& InEntry) override;
|
|
|
|
virtual const IInterfaceRegistryEntry* FindInterfaceRegistryEntry(const FInterfaceRegistryKey& InKey) const override;
|
|
|
|
virtual bool FindInterface(const FInterfaceRegistryKey& InKey, FMetasoundFrontendInterface& OutInterface) const override;
|
|
|
|
TUniquePtr<FInterfaceTransactionStream> CreateTransactionStream();
|
|
|
|
virtual void ForEachRegistryTransactionSince(FRegistryTransactionID InSince, FRegistryTransactionID* OutCurrentRegistryTransactionID, TFunctionRef<void(const FInterfaceRegistryTransaction&)> InFunc) const override;
|
|
private:
|
|
using FInterfaceTransactionBuffer = TTransactionBuffer<FInterfaceRegistryTransaction>;
|
|
|
|
TMap<FInterfaceRegistryKey, TUniquePtr<IInterfaceRegistryEntry>> Entries;
|
|
TSharedRef<FInterfaceTransactionBuffer> TransactionBuffer;
|
|
};
|
|
}
|
|
}
|
|
|