Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
796 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Map.h"
#include "Misc/ScopeLock.h"
#include "PixelStreamingInputMessage.h"
/**
* @brief An map type that broadcasts the OnProtocolUpdated whenever
* it's inner map is updated
*/
class PIXELSTREAMINGINPUT_API FInputProtocolMap
{
public:
FPixelStreamingInputMessage& Add(FString Key, const FPixelStreamingInputMessage& Value);
int Remove(FString Key);
FPixelStreamingInputMessage& GetOrAdd(FString Key);
FPixelStreamingInputMessage* Find(FString Key);
const FPixelStreamingInputMessage* Find(FString Key) const;
void Clear();
bool IsEmpty() const;
void Apply(const TFunction<void(FString, FPixelStreamingInputMessage)>& Visitor);
private:
TMap<FString, FPixelStreamingInputMessage> InnerMap;
};