Navigation
API > API/Plugins > API/Plugins/DisplayCluster
Cache template for named data with automatic deletion of unused items after timeout.
| Name | TDisplayClusterDataCache |
| Type | class |
| Header File | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Misc/DisplayClusterDataCache.h |
| Include Path | #include "Misc/DisplayClusterDataCache.h" |
Syntax
template<typename InDataType>
class TDisplayClusterDataCache
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TDisplayClusterDataCache() |
Misc/DisplayClusterDataCache.h |
Structs
| Name | Remarks |
|---|---|
| FCachedObject |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DataType | InDataType | Data type of stored objects | Misc/DisplayClusterDataCache.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedObjects | TArray< FCachedObject > | Cached objects map. | Misc/DisplayClusterDataCache.h | |
| TickableGameObject | TUniquePtr< FDisplayClusterTickableGameObject > | When CachedObjects is not empty, this ticking object will be created. | Misc/DisplayClusterDataCache.h | |
| TickHandle | FDelegateHandle | Event delegate container of the Tickable object. | Misc/DisplayClusterDataCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const TSharedPtr< DataType, ESPMode::ThreadSafe >& InDataRef |
Register a new object. | Misc/DisplayClusterDataCache.h | |
TSharedPtr< DataType, ESPMode::ThreadSafe > Find
(
const FString& InUniqueDataName |
Retrieve an existing object by a unique name. | Misc/DisplayClusterDataCache.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Release() |
Release the cache | Misc/DisplayClusterDataCache.h | |
void Tick
(
float DeltaTime |
When the number of DataRef references drops to 1, these items will be removed after a timeout. | Misc/DisplayClusterDataCache.h | |
void UpdateTickableGameObject() |
Create or remove tickable game object. | Misc/DisplayClusterDataCache.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Helper to perform the very common case of hashing an FString into a hex representation. | Misc/DisplayClusterDataCache.h |