Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::unique_future< R > Class Template Reference

#include <future.hpp>

Inheritance diagram for boost::unique_future< R >:
Collaboration diagram for boost::unique_future< R >:

Public Types

typedef future_state::state state
 
typedef R value_type
 

Public Member Functions

 unique_future (future_ptr a_future)
 
BOOST_CONSTEXPR unique_future ()
 
 unique_future (exceptional_ptr const &ex)
 
 ~unique_future ()
 
 unique_future (BOOST_THREAD_RV_REF(unique_future) other) BOOST_NOEXCEPT
 
 unique_future (BOOST_THREAD_RV_REF(unique_future< unique_future< R > >) other)
 
unique_futureoperator= (BOOST_THREAD_RV_REF(unique_future) other) BOOST_NOEXCEPT
 
shared_future< R > share ()
 
void swap (unique_future &other)
 
void set_async ()
 
void set_deferred ()
 
bool run_if_is_deferred ()
 
bool run_if_is_deferred_or_ready ()
 
move_dest_type get ()
 
template<typename R2 >
boost::disable_if< is_void< R2 >
, move_dest_type >::type 
get_or (BOOST_THREAD_RV_REF(R2) v)
 
template<typename R2 >
boost::disable_if< is_void< R2 >
, move_dest_type >::type 
get_or (R2 const &v)
 
void set_exceptional_if_invalid ()
 
void swap (basic_future &that) BOOST_NOEXCEPT
 
state get_state () const
 
bool is_ready () const
 
bool has_exception () const
 
bool has_value () const
 
launch launch_policy (boost::unique_lock< boost::mutex > &lk) const
 
exception_ptr get_exception_ptr ()
 
bool valid () const BOOST_NOEXCEPT
 
void wait () const
 

Static Public Member Functions

static future_ptr make_exceptional_future_ptr (exceptional_ptr const &ex)
 

Public Attributes

future_ptr future_
 

Friends

class shared_future< R >
 
class promise< R >
 
class packaged_task< R >
 
class detail::future_waiter
 
template<class Rp , class Fp >
unique_future< Rp > detail::make_future_async_shared_state (BOOST_THREAD_FWD_REF(Fp) f)
 
template<class Rp , class Fp >
unique_future< Rp > detail::make_future_deferred_shared_state (BOOST_THREAD_FWD_REF(Fp) f)
 

Member Typedef Documentation

template<typename R >
typedef future_state::state boost::unique_future< R >::state
template<typename R >
typedef R boost::unique_future< R >::value_type

Constructor & Destructor Documentation

template<typename R >
boost::unique_future< R >::unique_future ( future_ptr  a_future)
inline
template<typename R >
BOOST_CONSTEXPR boost::unique_future< R >::unique_future ( )
inline
template<typename R >
boost::unique_future< R >::unique_future ( exceptional_ptr const &  ex)
inline
template<typename R >
boost::unique_future< R >::~unique_future ( )
inline
template<typename R >
boost::unique_future< R >::unique_future ( BOOST_THREAD_RV_REF(unique_future< R >)  other)
inline
template<typename R >
boost::unique_future< R >::unique_future ( BOOST_THREAD_RV_REF(unique_future< unique_future< R > >)  other)
inline

Member Function Documentation

template<typename R >
move_dest_type boost::unique_future< R >::get ( )
inline
template<typename R >
exception_ptr boost::detail::basic_future< R >::get_exception_ptr ( )
inlineinherited
template<typename R >
template<typename R2 >
boost::disable_if< is_void<R2>, move_dest_type>::type boost::unique_future< R >::get_or ( BOOST_THREAD_RV_REF(R2)  v)
inline
template<typename R >
template<typename R2 >
boost::disable_if< is_void<R2>, move_dest_type>::type boost::unique_future< R >::get_or ( R2 const &  v)
inline
template<typename R >
state boost::detail::basic_future< R >::get_state ( ) const
inlineinherited
template<typename R >
bool boost::detail::basic_future< R >::has_exception ( ) const
inlineinherited
template<typename R >
bool boost::detail::basic_future< R >::has_value ( ) const
inlineinherited
template<typename R >
bool boost::detail::basic_future< R >::is_ready ( ) const
inlineinherited
template<typename R >
launch boost::detail::basic_future< R >::launch_policy ( boost::unique_lock< boost::mutex > &  lk) const
inlineinherited
template<typename R >
unique_future& boost::unique_future< R >::operator= ( BOOST_THREAD_RV_REF(unique_future< R >)  other)
inline
template<typename R >
bool boost::unique_future< R >::run_if_is_deferred ( )
inline
template<typename R >
bool boost::unique_future< R >::run_if_is_deferred_or_ready ( )
inline
template<typename R >
void boost::unique_future< R >::set_async ( )
inline
template<typename R >
void boost::unique_future< R >::set_deferred ( )
inline
template<typename R >
shared_future<R> boost::unique_future< R >::share ( )
inline

References boost::fusion::move().

template<typename R >
void boost::detail::basic_future< R >::swap ( basic_future< R > &  that)
inlineinherited
template<typename R >
void boost::unique_future< R >::swap ( unique_future< R > &  other)
inline

References boost::swap.

template<typename R >
bool boost::detail::basic_future< R >::valid ( ) const
inlineinherited
template<typename R >
void boost::detail::basic_future< R >::wait ( void  ) const
inlineinherited

Friends And Related Function Documentation

template<typename R >
friend class detail::future_waiter
friend
template<typename R >
template<class Rp , class Fp >
unique_future<Rp> detail::make_future_async_shared_state ( BOOST_THREAD_FWD_REF(Fp)  f)
friend
template<typename R >
template<class Rp , class Fp >
unique_future<Rp> detail::make_future_deferred_shared_state ( BOOST_THREAD_FWD_REF(Fp)  f)
friend
template<typename R >
friend class packaged_task< R >
friend
template<typename R >
friend class promise< R >
friend
template<typename R >
friend class shared_future< R >
friend

Member Data Documentation


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