FCacheEventTrack

Windows
MacOS
Linux

References

Module

ChaosCaching

Header

/Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/CacheEvents.h

Include

#include "Chaos/CacheEvents.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
struct FCacheEventTrack

Variables

Name Description

Public variable

TArray< uint8 &...

 

EventData

Public variable UProperty

FName

 

Name

Public variable UProperty

UScriptStruct &...

 

Struct

Type of the event stored in this track.

Public variable UProperty

TArray< float >

 

TimeStamps

Constructors

Name Description

Public function

FCacheEventTrack()

Public function

FCacheEventTrack

(
    FName InName,
    UScriptStruct* InStruct
)

Destructors

Name Description

Public function

~FCacheEventTrack()

Functions

Name Description

Public function

void

 

DestroyAll()

Because the memory management for this track is manual, Destroy all will destroy the stored structs correctly

Public function

T *

 

GetEvent

(
    int32 Index
)

Public function

FHandle

 

GetEventHandle

(
    int32 Index
)

Get a handle to an event that can easily resolve the inner event type without knowing the track

Public function

TArray< T &#...

 

GetEvents

(
    float T0,
    float T1,
    int32* OptOutBeginIndex
)

Public function Const

int32

 

GetTransientVersion()

The transient version changes whenever the size of the event array changes and invalidates all old event handles

Public function

void

 

Merge

(
    FCacheEventTrack&& Other
)

Merge the events from another track, leaving the other empty.

Public function Const

int32

 

Num()

Public function

void

 

PushEvent

(
    float TimeStamp,
    const T& InEvent
)

Pushes an event to the track, this will perform a copy of the event and store it inside the track

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Custom serialize handles generic event serialization

Classes

Name

Description

Public struct

FHandle

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss