MIRA
Public Member Functions | Public Attributes | Protected Attributes | List of all members
FunctionRunnable< F > Class Template Reference

Runnable that wraps any function pointer. More...

#include <fw/Runnable.h>

Inheritance diagram for FunctionRunnable< F >:
Inheritance graph
[legend]

Public Member Functions

 FunctionRunnable (F &&fn, DiagnosticsModulePtr module=NULL)
 
virtual void run (DispatcherThread *dispatcher)
 Called from dispatcher thread this runnable is attached to, whenever the runnable should be executed. More...
 
void setDiagnosticsModule (DiagnosticsModulePtr module)
 
DiagnosticsModulePtr getDiagnosticsModule ()
 

Public Attributes

function
 

Protected Attributes

DiagnosticsModulePtr mDiagnosticsModule
 

Detailed Description

template<typename F>
class mira::FunctionRunnable< F >

Runnable that wraps any function pointer.

Constructor & Destructor Documentation

◆ FunctionRunnable()

FunctionRunnable ( F &&  fn,
DiagnosticsModulePtr  module = NULL 
)
inline

Member Function Documentation

◆ run()

virtual void run ( DispatcherThread dispatcher)
inlinevirtual

Called from dispatcher thread this runnable is attached to, whenever the runnable should be executed.

Implements IRunnable.

◆ setDiagnosticsModule()

void setDiagnosticsModule ( DiagnosticsModulePtr  module)
inlineinherited

◆ getDiagnosticsModule()

DiagnosticsModulePtr getDiagnosticsModule ( )
inlineinherited

Member Data Documentation

◆ function

F function

◆ mDiagnosticsModule

DiagnosticsModulePtr mDiagnosticsModule
protectedinherited

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