Zth (libzth)
zth::AutoFuture< T > Class Template Reference

#include <async.h>

Inheritance diagram for zth::AutoFuture< T >:
zth::SharedPointer< Future< T > >

Public Types

typedef SharedPointer< Future< T > > base
 
typedef Future< T > Future_type
 

Public Member Functions

virtual ~AutoFuture () override=default
 
constexpr AutoFuture () noexcept
 
constexpr AutoFuture (AutoFuture const &af) noexcept
 
constexpr AutoFuture (base const &p) noexcept
 
template<typename F >
 AutoFuture (TypedFiber< T, F > &fiber)
 
template<typename F >
AutoFutureoperator= (TypedFiber< T, F > &fiber)
 
AutoFutureoperator= (AutoFuture const &af)
 
- Public Member Functions inherited from zth::SharedPointer< Future< T > >
constexpr SharedPointer (Future< T > *object=nullptr) noexcept
 
constexpr SharedPointer (SharedPointer const &p) noexcept
 
constexpr SharedPointer (SharedPointer &&p) noexcept
 
virtual ~SharedPointer ()
 
void reset (Future< T > *object=nullptr)
 
SharedPointeroperator= (Future< T > *object)
 
SharedPointeroperator= (SharedPointer const &p)
 
constexpr SharedPointeroperator= (SharedPointer &&p) noexcept
 
constexpr Future< T > * get () const noexcept
 
constexpr operator Future< T > * () const noexcept
 
constexpr Future< T > * operator* () const noexcept
 
constexpr Future< T > * operator-> () const noexcept
 
constexpr Future< T > * release () noexcept
 

Detailed Description

template<typename T>
class zth::AutoFuture< T >

Definition at line 253 of file async.h.

Member Typedef Documentation

◆ base

template<typename T >
typedef SharedPointer<Future<T> > zth::AutoFuture< T >::base

Definition at line 256 of file async.h.

◆ Future_type

template<typename T >
typedef Future<T> zth::AutoFuture< T >::Future_type

Definition at line 257 of file async.h.

Constructor & Destructor Documentation

◆ ~AutoFuture()

template<typename T >
virtual zth::AutoFuture< T >::~AutoFuture ( )
overridevirtualdefault

◆ AutoFuture() [1/4]

template<typename T >
constexpr zth::AutoFuture< T >::AutoFuture ( )
inlineconstexprnoexcept

Definition at line 261 of file async.h.

◆ AutoFuture() [2/4]

template<typename T >
constexpr zth::AutoFuture< T >::AutoFuture ( AutoFuture< T > const &  af)
inlineconstexprnoexcept

Definition at line 265 of file async.h.

◆ AutoFuture() [3/4]

template<typename T >
constexpr zth::AutoFuture< T >::AutoFuture ( base const &  p)
inlineconstexprnoexcept

Definition at line 270 of file async.h.

◆ AutoFuture() [4/4]

template<typename T >
template<typename F >
zth::AutoFuture< T >::AutoFuture ( TypedFiber< T, F > &  fiber)
inline

Definition at line 276 of file async.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
AutoFuture& zth::AutoFuture< T >::operator= ( AutoFuture< T > const &  af)
inline

Definition at line 288 of file async.h.

◆ operator=() [2/2]

template<typename T >
template<typename F >
AutoFuture& zth::AutoFuture< T >::operator= ( TypedFiber< T, F > &  fiber)
inline

Definition at line 282 of file async.h.


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