Navigation
API > API/Plugins > API/Plugins/PCG
| Name | FPCGPerExecutionCache |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Graph/PCGGraphPerExecutionCache.h |
| Include Path | #include "Graph/PCGGraphPerExecutionCache.h" |
Syntax
struct FPCGPerExecutionCache
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Entries | TMap< FPCGTaskId, FPCGPerExecutionCacheEntry > | Graph/PCGGraphPerExecutionCache.h | ||
| Lock | PCG::FRecursiveSharedLock | Per graph execution cache, gets emptied when executor has no more work to do | Graph/PCGGraphPerExecutionCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddStructReferencedObjects
(
FReferenceCollector& Collector |
Graph/PCGGraphPerExecutionCache.h | ||
void Clear() |
Graph/PCGGraphPerExecutionCache.h | ||
TOptional< typename T::ValueType > GetExecutionCacheEntry
(
const IPCGGraphExecutionSource* InSource, |
Returns the cached value for the source's current task, unset otherwise. | Graph/PCGGraphPerExecutionCache.h | |
T::ValueType GetOrCreateExecutionCacheValue
(
const IPCGGraphExecutionSource* InSource, |
Returns the cached value if present, otherwise calls InMakeEntry() to produce one. | Graph/PCGGraphPerExecutionCache.h | |
void SetExecutionCacheEntry
(
const IPCGGraphExecutionSource* InSource, |
Stores a new value for the source's current task and typed ID. | Graph/PCGGraphPerExecutionCache.h |