Zth (libzth)
Loading...
Searching...
No Matches
zth::TypedFiberFactory< F > Class Template Reference

#include <async.h>

Public Types

typedef function_type_helper< F >::type Function
 
typedef TypedFiberType< Function >::returnType Return
 
typedef TypedFiberType< Function >::fiberType TypedFiber_type
 
typedef SharedReference< typename TypedFiber_type::Future_typeFuture
 

Public Member Functions

constexpr TypedFiberFactory (Function function, char const *name) noexcept
 
template<typename F_ >
constexpr TypedFiberFactory (F_ &&function, char const *name) noexcept
 
template<typename... Args>
fiber_type< Functionoperator() (Args &&... args) const
 

Protected Member Functions

TypedFiber_typepolish (TypedFiber_type &fiber) const
 

Detailed Description

template<typename F>
class zth::TypedFiberFactory< F >

Definition at line 958 of file async.h.

Member Typedef Documentation

◆ Function

template<typename F >
typedef function_type_helper<F>::type zth::TypedFiberFactory< F >::Function

Definition at line 960 of file async.h.

◆ Future

template<typename F >
typedef SharedReference<typename TypedFiber_type::Future_type> zth::TypedFiberFactory< F >::Future

Definition at line 963 of file async.h.

◆ Return

template<typename F >
typedef TypedFiberType<Function>::returnType zth::TypedFiberFactory< F >::Return

Definition at line 961 of file async.h.

◆ TypedFiber_type

template<typename F >
typedef TypedFiberType<Function>::fiberType zth::TypedFiberFactory< F >::TypedFiber_type

Definition at line 962 of file async.h.

Constructor & Destructor Documentation

◆ TypedFiberFactory() [1/2]

template<typename F >
constexpr zth::TypedFiberFactory< F >::TypedFiberFactory ( Function  function,
char const *  name 
)
inlineconstexprnoexcept

Definition at line 965 of file async.h.

◆ TypedFiberFactory() [2/2]

template<typename F >
template<typename F_ >
constexpr zth::TypedFiberFactory< F >::TypedFiberFactory ( F_ &&  function,
char const *  name 
)
inlineconstexprnoexcept

Definition at line 972 of file async.h.

Member Function Documentation

◆ operator()()

template<typename F >
template<typename... Args>
fiber_type< Function > zth::TypedFiberFactory< F >::operator() ( Args &&...  args) const
inline

Definition at line 1006 of file async.h.

◆ polish()

template<typename F >
TypedFiber_type & zth::TypedFiberFactory< F >::polish ( TypedFiber_type fiber) const
inlineprotected

Definition at line 1013 of file async.h.


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