Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berry::AsyncRunnable< ArgType, OwnerType > Class Template Reference

#include <berryAsyncRunnable.h>

Inheritance diagram for berry::AsyncRunnable< ArgType, OwnerType >:
Collaboration diagram for berry::AsyncRunnable< ArgType, OwnerType >:

Public Types

typedef void(OwnerType::* Callback) (const ArgType &)
 

Public Member Functions

 AsyncRunnable (OwnerType *pOwner, Callback method, const ArgType &arg)
 
void run () override
 

Detailed Description

template<class ArgType, class OwnerType>
class berry::AsyncRunnable< ArgType, OwnerType >

This class can be used to call a method asynchronously from the UI thread using the Display::AsyncExec(Poco::Runnable*) method.

Definition at line 27 of file berryAsyncRunnable.h.

Member Typedef Documentation

◆ Callback

template<class ArgType , class OwnerType >
typedef void(OwnerType::* berry::AsyncRunnable< ArgType, OwnerType >::Callback) (const ArgType &)

Definition at line 30 of file berryAsyncRunnable.h.

Constructor & Destructor Documentation

◆ AsyncRunnable()

template<class ArgType , class OwnerType >
berry::AsyncRunnable< ArgType, OwnerType >::AsyncRunnable ( OwnerType *  pOwner,
Callback  method,
const ArgType &  arg 
)
inline

Definition at line 32 of file berryAsyncRunnable.h.

Member Function Documentation

◆ run()

template<class ArgType , class OwnerType >
void berry::AsyncRunnable< ArgType, OwnerType >::run ( )
inlineoverride

Definition at line 40 of file berryAsyncRunnable.h.


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