Scanframe Modular Application 0.1.0
|
Class for creating Qt threads easier. More...
#include <QtThreadClosure.h>
Public Member Functions | |
QtThreadClosure (QObject *parent=nullptr) | |
Standard QT constructor. | |
QtThreadClosure (const func_type &f, QObject *parent=nullptr) | |
Constructor assigning the closure function. | |
~QtThreadClosure () override | |
Public Member Functions inherited from sf::TClosure< void, QThread &, QObject * > | |
TClosure ()=default | |
Default constructor. | |
TClosure (const TClosure &c) | |
Copy constructor. | |
TClosure (const func_type &fn) | |
Function assignment constructor. | |
TClosure & | assign (const func_type &fn) |
Function assignment method for static function. | |
TClosure & | assign (ClassType *cls, MethodType mtd, BoundArgs... args) |
Binds a non-static class member function to this instance. | |
TClosure & | unassign () |
Function assignment member. | |
TClosure & | operator= (const TClosure &c) |
Closure assignment operator. | |
TClosure & | operator= (const func_type &f) |
Closure assignment operator. | |
void | operator() (Args... args) const |
Make the call to the member function. | |
bool | isAssigned () const |
Checks if the closure is valid for calling. | |
operator bool () const | |
Checks if the closure is valid for calling. | |
Protected Member Functions | |
void | run () override |
Overrides run function and calls the closure assigned one. | |
Protected Member Functions inherited from sf::TClosure< void, QThread &, QObject * > | |
void | call (Args... args) const |
Makes the call to the member function. | |
Additional Inherited Members | |
Public Types inherited from sf::TClosure< void, QThread &, QObject * > | |
typedef std::function< void(Args...)> | func_type |
Function type of the lambda or function. | |
Class for creating Qt threads easier.
|
inlineexplicit |
Standard QT constructor.
|
inlineexplicit |
Constructor assigning the closure function.
|
inlineoverride |
|
inlineoverrideprotected |
Overrides run function and calls the closure assigned one.