Zth (libzth)
Loading...
Searching...
No Matches
zth::impl::std_future_base< T > Class Template Reference

#include <future.h>

Inheritance diagram for zth::impl::std_future_base< T >:
zth::impl::std_shared_future_base< T >

Public Types

using base = impl::std_shared_future_base< T >
 
- Public Types inherited from zth::impl::std_shared_future_base< T >
using value_type = T
 
using Future_type = zth::Future< value_type >
 

Public Member Functions

std_future_baseoperator= (std_future_base &&other)
 
 std_future_base (std_future_base const &)=delete
 
std_future_baseoperator= (std_future_base const &)=delete
 
std::shared_future< zth::type< T > > share () const
 
- Public Member Functions inherited from zth::impl::std_shared_future_base< T >
bool valid () const noexcept
 
void wait () const
 
template<class Rep , class Period >
std::future_status wait_for (std::chrono::duration< Rep, Period > const &timeout_duration) const
 
template<class Clock , class Duration >
std::future_status wait_until (const std::chrono::time_point< Clock, Duration > &timeout_time) const
 

Protected Member Functions

 std_future_base () noexcept=default
 
 std_future_base (SharedPointer< typename base::Future_type > future) noexcept
 
 std_future_base (std_future_base &&other) noexcept
 
- Protected Member Functions inherited from zth::impl::std_shared_future_base< T >
 std_shared_future_base () noexcept=default
 
 std_shared_future_base (SharedPointer< Future_type > &&future) noexcept
 
value () const
 
void check_valid () const
 

Additional Inherited Members

- Protected Attributes inherited from zth::impl::std_shared_future_base< T >
zth::SharedPointer< zth::Future< T > > m_future
 

Detailed Description

template<typename T>
class zth::impl::std_future_base< T >

Definition at line 100 of file future.h.

Member Typedef Documentation

◆ base

template<typename T >
using zth::impl::std_future_base< T >::base = impl::std_shared_future_base<T>

Definition at line 102 of file future.h.

Constructor & Destructor Documentation

◆ std_future_base() [1/4]

template<typename T >
zth::impl::std_future_base< T >::std_future_base ( )
protecteddefaultnoexcept

◆ std_future_base() [2/4]

template<typename T >
zth::impl::std_future_base< T >::std_future_base ( SharedPointer< typename base::Future_type future)
inlineexplicitprotectednoexcept

Definition at line 107 of file future.h.

◆ std_future_base() [3/4]

template<typename T >
zth::impl::std_future_base< T >::std_future_base ( std_future_base< T > &&  other)
inlineprotectednoexcept

Definition at line 111 of file future.h.

◆ std_future_base() [4/4]

template<typename T >
zth::impl::std_future_base< T >::std_future_base ( std_future_base< T > const &  )
delete

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
std_future_base & zth::impl::std_future_base< T >::operator= ( std_future_base< T > &&  other)
inline

Definition at line 117 of file future.h.

◆ operator=() [2/2]

template<typename T >
std_future_base & zth::impl::std_future_base< T >::operator= ( std_future_base< T > const &  )
delete

◆ share()

template<typename T >
std::shared_future< zth::type< T > > zth::impl::std_future_base< T >::share ( ) const
inline

Definition at line 126 of file future.h.


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