libcopp  2.2.0
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 ()
 
 ~future ()
 
UTIL_FORCEINLINE bool is_ready () const LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE bool is_pending () const LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE const value_typedata () const LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE value_typedata () LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE const ptr_typeraw_ptr () const LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE ptr_typeraw_ptr () LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE const poller_typepoll_data () const LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE poller_typepoll_data () LIBCOPP_MACRO_NOEXCEPT
 
UTIL_FORCEINLINE void reset_data ()
 
template<class U >
UTIL_FORCEINLINE void reset_data (U &&in)
 

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 ( )
inline

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 ( )
inline

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>
UTIL_FORCEINLINE const value_type* future::future< T, TPTR >::data ( ) const
inline

Definition at line 37 of file future.h.

◆ data() [2/2]

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

Definition at line 45 of file future.h.

◆ is_pending()

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

Definition at line 35 of file future.h.

◆ is_ready()

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

Definition at line 33 of file future.h.

◆ poll_data() [1/2]

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

Definition at line 55 of file future.h.

◆ poll_data() [2/2]

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

Definition at line 56 of file future.h.

◆ raw_ptr() [1/2]

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

Definition at line 53 of file future.h.

◆ raw_ptr() [2/2]

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

Definition at line 54 of file future.h.

◆ reset_data() [1/2]

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

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 >
UTIL_FORCEINLINE void future::future< T, TPTR >::reset_data ( U &&  in)
inline

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


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