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

#include <async.h>

Public Types

typedef TypedFiberFactory< typename function_type_helper< F >::type > factory
 
typedef factory::Function function
 
typedef factory::Future future
 
typedef fiber_type< functionfiber
 
typedef factory::TypedFiber_type TypedFiber_type
 

Public Member Functions

 fiber_type (TypedFiber_type &f) noexcept
 
TypedFiber_type::Return operator* ()
 
TypedFiber_type::Return operator-> ()
 
TypedFiber_typegetFiber () const noexcept
 
 operator TypedFiber_type & () const noexcept
 
 operator Fiber & () const noexcept
 
future getFuture () const noexcept
 
 operator future () const noexcept
 
zth_fiber_t handle () const noexcept
 
void kill () noexcept
 
void cancel ()
 
template<typename Manipulator >
fiberoperator<< (Manipulator const &m) &
 
template<typename Manipulator >
fiber const & operator<< (Manipulator const &m) const
 
template<typename Manipulator >
fiber && operator<< (Manipulator const &m) &&
 
future operator<< (asFuture const &)
 

Public Attributes

SharedPointer< TypedFiber_type_fiber
 

Detailed Description

template<typename F>
struct zth::fiber_type< F >

Definition at line 1037 of file async.h.

Member Typedef Documentation

◆ factory

template<typename F >
typedef TypedFiberFactory<typename function_type_helper<F>::type> zth::fiber_type< F >::factory

Definition at line 1038 of file async.h.

◆ fiber

template<typename F >
typedef fiber_type<function> zth::fiber_type< F >::fiber

Definition at line 1041 of file async.h.

◆ function

template<typename F >
typedef factory::Function zth::fiber_type< F >::function

Definition at line 1039 of file async.h.

◆ future

template<typename F >
typedef factory::Future zth::fiber_type< F >::future

Definition at line 1040 of file async.h.

◆ TypedFiber_type

template<typename F >
typedef factory::TypedFiber_type zth::fiber_type< F >::TypedFiber_type

Definition at line 1043 of file async.h.

Constructor & Destructor Documentation

◆ fiber_type()

template<typename F >
zth::fiber_type< F >::fiber_type ( TypedFiber_type f)
inlinenoexcept

Definition at line 1047 of file async.h.

Member Function Documentation

◆ cancel()

template<typename F >
void zth::fiber_type< F >::cancel ( )
inline

Definition at line 1100 of file async.h.

◆ getFiber()

template<typename F >
TypedFiber_type & zth::fiber_type< F >::getFiber ( ) const
inlinenoexcept

Definition at line 1065 of file async.h.

◆ getFuture()

template<typename F >
future zth::fiber_type< F >::getFuture ( ) const
inlinenoexcept

Definition at line 1080 of file async.h.

◆ handle()

template<typename F >
zth_fiber_t zth::fiber_type< F >::handle ( ) const
inlinenoexcept

Definition at line 1090 of file async.h.

◆ kill()

template<typename F >
void zth::fiber_type< F >::kill ( )
inlinenoexcept

Definition at line 1095 of file async.h.

◆ operator Fiber &()

template<typename F >
zth::fiber_type< F >::operator Fiber & ( ) const
inlinenoexcept

Definition at line 1075 of file async.h.

◆ operator future()

template<typename F >
zth::fiber_type< F >::operator future ( ) const
inlinenoexcept

Definition at line 1085 of file async.h.

◆ operator TypedFiber_type &()

template<typename F >
zth::fiber_type< F >::operator TypedFiber_type & ( ) const
inlinenoexcept

Definition at line 1070 of file async.h.

◆ operator*()

template<typename F >
TypedFiber_type::Return zth::fiber_type< F >::operator* ( )
inline

Definition at line 1051 of file async.h.

◆ operator->()

template<typename F >
TypedFiber_type::Return zth::fiber_type< F >::operator-> ( )
inline

Definition at line 1058 of file async.h.

◆ operator<<() [1/4]

template<typename F >
future zth::fiber_type< F >::operator<< ( asFuture const &  )
inline

Definition at line 1128 of file async.h.

◆ operator<<() [2/4]

template<typename F >
template<typename Manipulator >
fiber & zth::fiber_type< F >::operator<< ( Manipulator const &  m) &
inline

Definition at line 1106 of file async.h.

◆ operator<<() [3/4]

template<typename F >
template<typename Manipulator >
fiber && zth::fiber_type< F >::operator<< ( Manipulator const &  m) &&
inline

Definition at line 1121 of file async.h.

◆ operator<<() [4/4]

template<typename F >
template<typename Manipulator >
fiber const & zth::fiber_type< F >::operator<< ( Manipulator const &  m) const
inline

Definition at line 1113 of file async.h.

Member Data Documentation

◆ _fiber

template<typename F >
SharedPointer<TypedFiber_type> zth::fiber_type< F >::_fiber

Definition at line 1044 of file async.h.


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