TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tracktion::engine::AsyncCaller Struct Reference

Asyncronously call a function. More...

#include <tracktion_AsyncFunctionUtils.h>

Inherits juce::AsyncUpdater.

Public Member Functions

 AsyncCaller ()=default
 Creates an empty AsyncCaller.
 
 AsyncCaller (std::function< void()> f)
 Creates an AsyncCaller with a given callback function.
 
 ~AsyncCaller () override
 Destructor.
 
void setFunction (std::function< void()> f)
 Sets the function to call.
 
void handleAsyncUpdate () override
 

Public Attributes

std::function< void()> function
 

Detailed Description

Asyncronously call a function.

Constructor & Destructor Documentation

◆ AsyncCaller() [1/2]

tracktion::engine::AsyncCaller::AsyncCaller ( )
default

Creates an empty AsyncCaller.

◆ AsyncCaller() [2/2]

tracktion::engine::AsyncCaller::AsyncCaller ( std::function< void()>  f)

Creates an AsyncCaller with a given callback function.

References function.

◆ ~AsyncCaller()

tracktion::engine::AsyncCaller::~AsyncCaller ( )
override

Destructor.

Member Function Documentation

◆ setFunction()

void tracktion::engine::AsyncCaller::setFunction ( std::function< void()>  f)

Sets the function to call.

References function.

◆ handleAsyncUpdate()

void tracktion::engine::AsyncCaller::handleAsyncUpdate ( )
override

.

References function.

Member Data Documentation

◆ function

std::function<void()> tracktion::engine::AsyncCaller::function

The documentation for this struct was generated from the following file: