transwarp
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Protected Member Functions | Friends | List of all members
transwarp::functor Class Reference

A base class for a user-defined functor that needs access to the associated task or a cancel point to stop a task while it's running. More...

#include <transwarp.h>

Protected Member Functions

const transwarp::itasktranswarp_task () const noexcept
 The associated task.
 
void transwarp_cancel_point () const
 If the associated task is canceled then this will throw transwarp::task_canceled which will stop the task while it's running.
 

Friends

template<typename F >
void transwarp::detail::assign_task_if (F &, const transwarp::itask &) noexcept
 

Detailed Description

A base class for a user-defined functor that needs access to the associated task or a cancel point to stop a task while it's running.


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