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
 

Public Member Functions

std_shared_future_baseoperator= (std_shared_future_base &&other) noexcept=default
 
std_shared_future_baseoperator= (SharedPointer< Future_type > &&other) noexcept
 
std_shared_future_baseoperator= (SharedReference< Future_type > &&other) noexcept
 
std_shared_future_baseoperator= (std_shared_future_base const &other) noexcept=default
 
std_shared_future_baseoperator= (SharedPointer< Future_type > const &other) noexcept
 
std_shared_future_baseoperator= (SharedReference< Future_type > const &other) noexcept
 
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
 
 operator SharedPointer< Future_type > const & () const &noexcept
 
 operator SharedPointer< Future_type > && () &&noexcept
 

Protected Types

using Future_type = zth::Future< value_type >
 

Protected Member Functions

 std_shared_future_base () noexcept=default
 
 std_shared_future_base (SharedPointer< Future_type > const &future) noexcept
 
 std_shared_future_base (SharedPointer< Future_type > &&future) noexcept
 
 std_shared_future_base (SharedReference< Future_type > const &future) noexcept
 
 std_shared_future_base (SharedReference< Future_type > &&future) noexcept
 
Future_typevalue () 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 47 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>
protected

Definition at line 52 of file future.h.

◆ value_type

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

Definition at line 49 of file future.h.

Constructor & Destructor Documentation

◆ std_shared_future_base() [1/5]

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

◆ std_shared_future_base() [2/5]

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

Definition at line 55 of file future.h.

◆ std_shared_future_base() [3/5]

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

Definition at line 59 of file future.h.

◆ std_shared_future_base() [4/5]

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

Definition at line 63 of file future.h.

◆ std_shared_future_base() [5/5]

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

Definition at line 67 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 204 of file future.h.

◆ operator SharedPointer< Future_type > &&()

template<typename T >
zth::impl::std_shared_future_base< T >::operator SharedPointer< Future_type > && ( ) &&
inlinenoexcept

Definition at line 191 of file future.h.

◆ operator SharedPointer< Future_type > const &()

template<typename T >
zth::impl::std_shared_future_base< T >::operator SharedPointer< Future_type > const & ( ) const &
inlinenoexcept

Definition at line 186 of file future.h.

◆ operator=() [1/6]

template<typename T >
std_shared_future_base & zth::impl::std_shared_future_base< T >::operator= ( SharedPointer< Future_type > &&  other)
inlinenoexcept

Definition at line 88 of file future.h.

◆ operator=() [2/6]

template<typename T >
std_shared_future_base & zth::impl::std_shared_future_base< T >::operator= ( SharedPointer< Future_type > const &  other)
inlinenoexcept

Definition at line 128 of file future.h.

◆ operator=() [3/6]

template<typename T >
std_shared_future_base & zth::impl::std_shared_future_base< T >::operator= ( SharedReference< Future_type > &&  other)
inlinenoexcept

Definition at line 94 of file future.h.

◆ operator=() [4/6]

template<typename T >
std_shared_future_base & zth::impl::std_shared_future_base< T >::operator= ( SharedReference< Future_type > const &  other)
inlinenoexcept

Definition at line 134 of file future.h.

◆ operator=() [5/6]

template<typename T >
std_shared_future_base & zth::impl::std_shared_future_base< T >::operator= ( std_shared_future_base< T > &&  other)
defaultnoexcept

◆ operator=() [6/6]

template<typename T >
std_shared_future_base & zth::impl::std_shared_future_base< T >::operator= ( std_shared_future_base< T > const &  other)
defaultnoexcept

◆ valid()

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

Definition at line 157 of file future.h.

◆ value()

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

Definition at line 197 of file future.h.

◆ wait()

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

Definition at line 162 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 170 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 179 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 210 of file future.h.


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