libtasks Documentation  1.6
tasks::exec_task Class Reference

#include <exec_task.h>

Inheritance diagram for tasks::exec_task:
Collaboration diagram for tasks::exec_task:

Public Types

typedef std::function< void()> func_t
 
- Public Types inherited from tasks::task
typedef std::function< void(worker
*worker)> 
finish_func_worker_t
 
typedef std::function< void()> finish_func_void_t
 

Public Member Functions

 exec_task (func_t f)
 
virtual ~exec_task ()
 
std::string get_string () const
 
virtual void execute ()
 
- Public Member Functions inherited from tasks::task
virtual ~task ()
 
bool auto_delete () const
 Returns true if auto deletion is active. More...
 
void disable_auto_delete ()
 Call this to deactivate auto deletion. More...
 
void finish (worker *worker=nullptr)
 Called by a worker when a task has auto_deletion enabled. More...
 
void on_finish (finish_func_worker_t f)
 
void on_finish (finish_func_void_t f)
 

Private Attributes

func_t m_func
 

Detailed Description

Definition at line 18 of file exec_task.h.

Member Typedef Documentation

typedef std::function<void()> tasks::exec_task::func_t

Definition at line 20 of file exec_task.h.

Constructor & Destructor Documentation

tasks::exec_task::exec_task ( func_t  f)
inline

Definition at line 22 of file exec_task.h.

virtual tasks::exec_task::~exec_task ( )
inlinevirtual

Definition at line 23 of file exec_task.h.

Member Function Documentation

virtual void tasks::exec_task::execute ( )
inlinevirtual

Definition at line 31 of file exec_task.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string tasks::exec_task::get_string ( ) const
inline

Definition at line 25 of file exec_task.h.

Here is the caller graph for this function:

Member Data Documentation

func_t tasks::exec_task::m_func
private

Definition at line 37 of file exec_task.h.


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