libabigail
Loading...
Searching...
No Matches
Public Member Functions | List of all members
simple_task< Fn, RetType, Args > Class Template Reference

The template of a task to be performed. More...

#include <abg-workers.h>

Inheritance diagram for simple_task< Fn, RetType, Args >:
[legend]

Public Member Functions

 simple_task (Fn &&fn, Args... args)
 
RetType get_return_value ()
 
virtual void perform ()
 

Detailed Description

template<typename Fn, typename RetType, typename... Args>
class abigail::workers::simple_task< Fn, RetType, Args >

The template of a task to be performed.

The function to be performed by the task, its return type and its list of parameters are parameters of the template.

Template Parameters
Fnthe function to be executed by the instantiation.
RetTypethe return type of the function type Fn.
Argsthe set of arugments of function Fn.

Definition at line 69 of file abg-workers.h.

Constructor & Destructor Documentation

◆ simple_task()

template<typename Fn , typename RetType , typename... Args>
simple_task ( Fn &&  fn,
Args...  args 
)
inline

Definition at line 79 of file abg-workers.h.

Member Function Documentation

◆ get_return_value()

template<typename Fn , typename RetType , typename... Args>
RetType get_return_value ( )
inline

Definition at line 85 of file abg-workers.h.

◆ perform()

template<typename Fn , typename RetType , typename... Args>
virtual void perform ( )
inlinevirtual

Implements task.

Definition at line 91 of file abg-workers.h.


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