All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
blaze::threadpool::FuncWrapper< Callable > Class Template Reference

Wrapper class for scheduled functions/functors.The FuncWrapper class is a wrapper for any callable function or functor of the following structure: More...

#include <FuncWrapper.h>

Inherits blaze::threadpool::Task.

Public Member Functions

Constructor
 FuncWrapper (Callable func)
 Constructor for the FuncWrapper class. More...
 
Destructor
virtual ~FuncWrapper ()
 Destructor for the FuncWrapper class.
 
Execution functions
virtual void run ()
 Executes the wrapped function/functor. More...
 

Private Attributes

Member variables
Callable func_
 The wrapped function/functor.
 

Detailed Description

template<typename Callable>
class blaze::threadpool::FuncWrapper< Callable >

Wrapper class for scheduled functions/functors.

The FuncWrapper class is a wrapper for any callable function or functor of the following structure:

// Definition of a function with no arguments that returns void
void function() { ... }
// Definition of a functor taking no arguments and returning void
struct Functor
{
void operator()() { ... }
};

Constructor & Destructor Documentation

template<typename Callable >
blaze::threadpool::FuncWrapper< Callable >::FuncWrapper ( Callable  func)
inlineexplicit

Constructor for the FuncWrapper class.

Parameters
funcThe given user task.

Member Function Documentation

template<typename Callable >
void blaze::threadpool::FuncWrapper< Callable >::run ( )
virtual

Executes the wrapped function/functor.

Returns
void

Implements blaze::threadpool::Task.


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