TEventContainer

Class that owns the injected producer function and its associated data buffer

Windows
MacOS
Linux

Inheritance Hierarchy

IEventContainer

TEventContainer

References

Module

ChaosSolvers

Header

/Engine/Source/Runtime/Experimental/ChaosSolvers/Public/EventManager.h

Include

#include "EventManager.h"

Syntax

template<typename PayloadType>
class TEventContainer : public Chaos::IEventContainer

Remarks

Class that owns the injected producer function and its associated data buffer

Constructors

Name Description

Public function

TEventContainer

(
    TEventContainer& Other
)

Copy constructor

Public function

TEventContainer

(
    const Chaos::EMultiBufferMode& Buf...,
    TFunction< void...
)

Regular constructor

Destructors

Name Description

Public function

~TEventContainer()

Destructor cleans up memory

Functions

Name Description

Public function Virtual

void

 

DestroyStaleEvents

(
    TFunction< void(PayloadType&EventD...
)

Overridden from IEventContainer

Name Description

Public function Virtual

void

 

DispatchConsumerData()

Dispatch events to the registered handlers

Public function Virtual

void

 

FlipBufferIfRequired()

Flips the buffer if the buffer type is double or triple

Public function Virtual

void

 

InjectProducerData

(
    const FPBDRigidsSolver* Solver
)

Inject data from the physics solver into the producer side of the buffer

Public function Virtual

void

 

RegisterHandler

(
    const FEventHandlerPtr& Handler
)

Register the delegate function that will handle the events on the game thread

Public function Virtual

void

 

UnregisterHandler

(
    const void* InHandler
)

Unregister the delegate function that handles the events on the game thread

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