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

#include <future.h>

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

Public Types

using value_type = T
 
using Future_type = zth::Future< value_type >
 

Public Member Functions

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_shared_future_base () noexcept=default
 
 std_shared_future_base (SharedPointer< Future_type > &&future) noexcept
 
value () const
 
void check_valid () const
 

Protected Attributes

zth::SharedPointer< zth::Future< T > > m_future
 

Detailed Description

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

Definition at line 41 of file future.h.

Member Typedef Documentation

◆ Future_type

template<typename T >
using zth::impl::std_shared_future_base< T >::Future_type = zth::Future<value_type>

Definition at line 44 of file future.h.

◆ value_type

template<typename T >
using zth::impl::std_shared_future_base< T >::value_type = T

Definition at line 43 of file future.h.

Constructor & Destructor Documentation

◆ std_shared_future_base() [1/2]

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

◆ std_shared_future_base() [2/2]

template<typename T >
zth::impl::std_shared_future_base< T >::std_shared_future_base ( SharedPointer< Future_type > &&  future)
inlineexplicitprotectednoexcept

Definition at line 49 of file future.h.

Member Function Documentation

◆ check_valid()

template<typename T >
void zth::impl::std_shared_future_base< T >::check_valid ( ) const
inlineprotected

Definition at line 90 of file future.h.

◆ valid()

template<typename T >
bool zth::impl::std_shared_future_base< T >::valid ( ) const
inlinenoexcept

Definition at line 54 of file future.h.

◆ value()

template<typename T >
T zth::impl::std_shared_future_base< T >::value ( ) const
inlineprotected

Definition at line 84 of file future.h.

◆ wait()

template<typename T >
void zth::impl::std_shared_future_base< T >::wait ( ) const
inline

Definition at line 59 of file future.h.

◆ wait_for()

template<typename T >
template<class Rep , class Period >
std::future_status zth::impl::std_shared_future_base< T >::wait_for ( std::chrono::duration< Rep, Period > const &  timeout_duration) const
inline

Definition at line 67 of file future.h.

◆ wait_until()

template<typename T >
template<class Clock , class Duration >
std::future_status zth::impl::std_shared_future_base< T >::wait_until ( const std::chrono::time_point< Clock, Duration > &  timeout_time) const
inline

Definition at line 76 of file future.h.

Member Data Documentation

◆ m_future

template<typename T >
zth::SharedPointer<zth::Future<T> > zth::impl::std_shared_future_base< T >::m_future
protected

Definition at line 96 of file future.h.


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