Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
TMethodJob< T > Class Template Reference

Use a function as a job. More...

#include <TMethodJob.h>

Inheritance diagram for TMethodJob< T >:
Collaboration diagram for TMethodJob< T >:

Public Member Functions

 TMethodJob (T *object, void(T::*method)(void *), void *arg=nullptr)
 run() invokes object->method(arg)
 ~TMethodJob () override=default
void run () override
 Run the job.
Public Member Functions inherited from IInterface
virtual ~IInterface ()=default
 Interface destructor does nothing.

Detailed Description

template<class T>
class TMethodJob< T >

Use a function as a job.

A job class that invokes a member function.

Constructor & Destructor Documentation

◆ TMethodJob()

template<class T>
TMethodJob< T >::TMethodJob ( T * object,
void(T::* method )(void *),
void * arg = nullptr )
inline

run() invokes object->method(arg)

◆ ~TMethodJob()

template<class T>
TMethodJob< T >::~TMethodJob ( )
overridedefault

Member Function Documentation

◆ run()

template<class T>
void TMethodJob< T >::run ( )
inlineoverridevirtual

Run the job.

Implements IJob.


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