Navigation
API > API/Plugins > API/Plugins/ChaosCaching
| Name | FCacheEventTrack |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/CacheEvents.h |
| Include Path | #include "Chaos/CacheEvents.h" |
Syntax
USTRUCT ()
struct FCacheEventTrack
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Chaos/CacheEvents.h | |||
FCacheEventTrack
(
FName InName, |
Chaos/CacheEvents.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FCacheEventTrack() |
Chaos/CacheEvents.h |
Structs
| Name | Remarks |
|---|---|
| FHandle |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EventData | TArray< uint8 * > | Chaos/CacheEvents.h | ||
| Name | FName | Chaos/CacheEvents.h | ||
| Struct | TObjectPtr< UScriptStruct > | Type of the event stored in this track. | Chaos/CacheEvents.h | |
| TimeStamps | TArray< float > | Chaos/CacheEvents.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TransientVersion | int32 | Version/Modified counter to invalidate evaluation handles if something holds on to them over time Because handles are used during evaluation we don't need to store this per event | Chaos/CacheEvents.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DestroyAll() |
Because the memory management for this track is manual, Destroy all will destroy the stored structs correctly | Chaos/CacheEvents.h | |
T * GetEvent
(
int32 Index |
Chaos/CacheEvents.h | ||
const T * GetEvent
(
int32 Index |
Chaos/CacheEvents.h | ||
FHandle GetEventHandle
(
int32 Index |
Get a handle to an event that can easily resolve the inner event type without knowing the track | Chaos/CacheEvents.h | |
TArray< T * > GetEvents
(
float T0, |
Chaos/CacheEvents.h | ||
int32 GetTransientVersion() |
The transient version changes whenever the size of the event array changes and invalidates all old event handles | Chaos/CacheEvents.h | |
void Merge
(
FCacheEventTrack&& Other |
Merge the events from another track, leaving the other empty. | Chaos/CacheEvents.h | |
int32 Num() |
Chaos/CacheEvents.h | ||
void PushEvent
(
float TimeStamp, |
Pushes an event to the track, this will perform a copy of the event and store it inside the track | Chaos/CacheEvents.h | |
bool Serialize
(
FArchive& Ar |
Custom serialize handles generic event serialization | Chaos/CacheEvents.h |