Medical Imaging Interaction Toolkit  2016.11.0
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 31 of file berryAsyncRunnable.h.

Member Typedef Documentation

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

Definition at line 34 of file berryAsyncRunnable.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file berryAsyncRunnable.h.

Member Function Documentation

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

Definition at line 44 of file berryAsyncRunnable.h.


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