tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
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"

Inheritance diagram for tracktion::engine::AsyncCaller:
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 Member Functions inherited from juce::AsyncUpdater
void triggerAsyncUpdate ()
 
void cancelPendingUpdate () noexcept
 
void handleUpdateNowIfNeeded ()
 
bool isUpdatePending () const noexcept
 

Public Attributes

std::function< void()> function
 

Detailed Description

Asyncronously call a function.

Definition at line 17 of file tracktion_AsyncFunctionUtils.h.

Constructor & Destructor Documentation

◆ AsyncCaller()

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

Creates an AsyncCaller with a given callback function.

Definition at line 23 of file tracktion_AsyncFunctionUtils.h.

◆ ~AsyncCaller()

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

Destructor.

Definition at line 29 of file tracktion_AsyncFunctionUtils.h.

Member Function Documentation

◆ handleAsyncUpdate()

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

Implements juce::AsyncUpdater.

Definition at line 41 of file tracktion_AsyncFunctionUtils.h.

◆ setFunction()

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

Sets the function to call.

Definition at line 35 of file tracktion_AsyncFunctionUtils.h.

Member Data Documentation

◆ function

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

Definition at line 47 of file tracktion_AsyncFunctionUtils.h.


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