libcopp 2.3.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes
future::future< T, TPTR > Class Template Reference

#include <future.h>

Collaboration diagram for future::future< T, TPTR >:
Collaboration graph

Public Types

using self_type = future< T, TPTR >
 
using poller_type = poller< T, TPTR >
 
using storage_type = typename poller_type::storage_type
 
using value_type = typename poller_type::value_type
 
using ptr_type = typename poller_type::ptr_type
 

Public Member Functions

 future () noexcept(std::is_nothrow_constructible< poller_type >::value)
 
 ~future () noexcept(std::is_nothrow_destructible< poller_type >::value)
 
LIBCOPP_UTIL_FORCEINLINE bool is_ready () const noexcept
 
LIBCOPP_UTIL_FORCEINLINE bool is_pending () const noexcept
 
LIBCOPP_UTIL_FORCEINLINE const value_typedata () const noexcept
 
LIBCOPP_UTIL_FORCEINLINE value_typedata () noexcept
 
LIBCOPP_UTIL_FORCEINLINE const ptr_typeraw_ptr () const noexcept
 
LIBCOPP_UTIL_FORCEINLINE ptr_typeraw_ptr () noexcept
 
LIBCOPP_UTIL_FORCEINLINE const poller_typepoll_data () const noexcept
 
LIBCOPP_UTIL_FORCEINLINE poller_typepoll_data () noexcept
 
LIBCOPP_UTIL_FORCEINLINE void reset_data () noexcept(noexcept(::std::declval< poller_type >().reset()))
 
template<class U >
LIBCOPP_UTIL_FORCEINLINE void reset_data (U &&in) noexcept(std::is_nothrow_assignable< poller_type, U >::value)
 

Private Attributes

poller_type poll_data_
 

Detailed Description

template<class T, class TPTR = typename poll_storage_ptr_selector<T>::type>
class future::future< T, TPTR >

Definition at line 21 of file future.h.

Member Typedef Documentation

◆ poller_type

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
using future::future< T, TPTR >::poller_type = poller<T, TPTR>

Definition at line 24 of file future.h.

◆ ptr_type

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
using future::future< T, TPTR >::ptr_type = typename poller_type::ptr_type

Definition at line 27 of file future.h.

◆ self_type

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
using future::future< T, TPTR >::self_type = future<T, TPTR>

Definition at line 23 of file future.h.

◆ storage_type

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
using future::future< T, TPTR >::storage_type = typename poller_type::storage_type

Definition at line 25 of file future.h.

◆ value_type

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
using future::future< T, TPTR >::value_type = typename poller_type::value_type

Definition at line 26 of file future.h.

Constructor & Destructor Documentation

◆ future()

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
future::future< T, TPTR >::future ( )
inlinenoexcept

Definition at line 30 of file future.h.

◆ ~future()

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
future::future< T, TPTR >::~future ( )
inlinenoexcept

Definition at line 31 of file future.h.

Member Function Documentation

◆ data() [1/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE const value_type * future::future< T, TPTR >::data ( ) const
inlinenoexcept

Definition at line 37 of file future.h.

◆ data() [2/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE value_type * future::future< T, TPTR >::data ( )
inlinenoexcept

Definition at line 45 of file future.h.

◆ is_pending()

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE bool future::future< T, TPTR >::is_pending ( ) const
inlinenoexcept

Definition at line 35 of file future.h.

◆ is_ready()

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE bool future::future< T, TPTR >::is_ready ( ) const
inlinenoexcept

Definition at line 33 of file future.h.

◆ poll_data() [1/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE const poller_type & future::future< T, TPTR >::poll_data ( ) const
inlinenoexcept

Definition at line 55 of file future.h.

◆ poll_data() [2/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE poller_type & future::future< T, TPTR >::poll_data ( )
inlinenoexcept

Definition at line 56 of file future.h.

◆ raw_ptr() [1/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE const ptr_type & future::future< T, TPTR >::raw_ptr ( ) const
inlinenoexcept

Definition at line 53 of file future.h.

◆ raw_ptr() [2/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE ptr_type & future::future< T, TPTR >::raw_ptr ( )
inlinenoexcept

Definition at line 54 of file future.h.

◆ reset_data() [1/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
LIBCOPP_UTIL_FORCEINLINE void future::future< T, TPTR >::reset_data ( )
inlinenoexcept

Definition at line 57 of file future.h.

◆ reset_data() [2/2]

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
template<class U >
LIBCOPP_UTIL_FORCEINLINE void future::future< T, TPTR >::reset_data ( U &&  in)
inlinenoexcept

Definition at line 62 of file future.h.

Field Documentation

◆ poll_data_

template<class T , class TPTR = typename poll_storage_ptr_selector<T>::type>
poller_type future::future< T, TPTR >::poll_data_
private

Definition at line 67 of file future.h.


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