cpp-mate  0.7
Helpful library for C++.
CppMate::Pipeline< R, A > Class Template Referenceabstract

Represents abstract pipeline. More...

#include <ThreadPool.hpp>

Public Types

using Signature = std::function< R(A...)>
 

Public Member Functions

virtual ~Pipeline ()=default
 
virtual std::future< R > addTask (Signature task, A &&... args)=0
 Adds a new task for execution. More...
 

Detailed Description

template<typename R, typename... A>
class CppMate::Pipeline< R, A >

Represents abstract pipeline.

Member Typedef Documentation

◆ Signature

template<typename R , typename... A>
using CppMate::Pipeline< R, A >::Signature = std::function<R(A...)>

The signature of a task.

Constructor & Destructor Documentation

◆ ~Pipeline()

template<typename R , typename... A>
virtual CppMate::Pipeline< R, A >::~Pipeline ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ addTask()

template<typename R , typename... A>
virtual std::future<R> CppMate::Pipeline< R, A >::addTask ( Signature  task,
A &&...  args 
)
pure virtual

Adds a new task for execution.

Parameters
taskthe task to add.
argsthe task arguments.
Returns
future object to tracking task results.

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