Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/FPCGPerExecutionCache
Description
Returns the cached value if present, otherwise calls InMakeEntry() to produce one. If the source's task is valid the produced value is stored in the cache before returning. InMakeEntry must return T::ValueType by value.
| Name | GetOrCreateExecutionCacheValue |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Graph/PCGGraphPerExecutionCache.h |
| Include Path | #include "Graph/PCGGraphPerExecutionCache.h" |
template<typename T, typename FuncType>
T::ValueType GetOrCreateExecutionCacheValue
(
const IPCGGraphExecutionSource * InSource,
TPCGPerExecutionCacheId < T > InCacheId,
const FuncType & InMakeEntry,
bool bInValidateWritable,
bool bEnableLogging
)