STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Types | List of all members
shared_future< _Ty > Class Template Reference
Inheritance diagram for shared_future< _Ty >:
_State_manager< _Ty >

Public Member Functions

 shared_future () _NOEXCEPT
 
 shared_future (const shared_future &_Other)
 
shared_futureoperator= (const shared_future &_Right)
 
 shared_future (future< _Ty > &&_Other) _NOEXCEPT
 
 shared_future (shared_future &&_Other) _NOEXCEPT
 
shared_futureoperator= (shared_future &&_Right) _NOEXCEPT
 
 ~shared_future () _NOEXCEPT
 
const _Ty & get () const
 
- Public Member Functions inherited from _State_manager< _Ty >
 _State_manager ()
 
 _State_manager (_Associated_state< _Ty > *_New_state, bool _Get_once)
 
 _State_manager (const _State_manager &_Other, bool _Get_once=false)
 
 _State_manager (_State_manager &&_Other, bool _Get_once=false)
 
 ~_State_manager () _NOEXCEPT
 
_State_manageroperator= (const _State_manager &_Other)
 
_State_manageroperator= (_State_manager &&_Other)
 
bool valid () const _NOEXCEPT
 
void wait () const
 
template<class _Rep , class _Per >
_Future_status wait_for (const chrono::duration< _Rep, _Per > &_Rel_time) const
 
template<class _Clock , class _Dur >
_Future_status wait_until (const chrono::time_point< _Clock, _Dur > &_Abs_time) const
 
_Ty & _Get_value () const
 
void _Set_value (const _Ty &_Val, bool _Defer)
 
void _Set_value (_Ty &&_Val, bool _Defer)
 
void _Abandon ()
 
void _Set_exception (exception_ptr _Exc, bool _Defer)
 
void _Swap (_State_manager &_Other)
 
_Associated_state< _Ty > * _Ptr () const
 
void _Copy_from (const _State_manager &_Other)
 
void _Move_from (_State_manager &_Other)
 
bool _Is_ready () const
 
bool _Is_ready_at_thread_exit () const
 

Private Types

typedef _State_manager< _Ty > _Mybase
 

Member Typedef Documentation

template<class _Ty >
typedef _State_manager<_Ty> shared_future< _Ty >::_Mybase
private

Constructor & Destructor Documentation

template<class _Ty >
shared_future< _Ty >::shared_future ( )
inline
1246  { // construct
1247  }
template<class _Ty >
shared_future< _Ty >::shared_future ( const shared_future< _Ty > &  _Other)
inline
1250  : _Mybase(_Other)
1251  { // construct from shared_future object
1252  }
_State_manager< _Ty > _Mybase
Definition: future:1242
template<class _Ty >
shared_future< _Ty >::shared_future ( future< _Ty > &&  _Other)
inline
1261  : _Mybase(_STD forward<_Mybase>(_Other))
1262  { // construct from rvalue future object
1263  }
_State_manager< _Ty > _Mybase
Definition: future:1242
template<class _Ty >
shared_future< _Ty >::shared_future ( shared_future< _Ty > &&  _Other)
inline
1266  : _Mybase(_STD forward<shared_future>(_Other))
1267  { // construct from rvalue shared_future object
1268  }
_State_manager< _Ty > _Mybase
Definition: future:1242
template<class _Ty >
shared_future< _Ty >::~shared_future ( )
inline
1277  { // destroy
1278  }

Member Function Documentation

template<class _Ty >
const _Ty& shared_future< _Ty >::get ( ) const
inline
1281  { // block until ready then return the stored result or
1282  // throw the stored exception
1283  return (this->_Get_value());
1284  }
_Ty & _Get_value() const
Definition: future:1005
template<class _Ty >
shared_future& shared_future< _Ty >::operator= ( const shared_future< _Ty > &  _Right)
inline
1255  { // assign from shared_future object
1256  _Mybase::operator=(_Right);
1257  return (*this);
1258  }
_State_manager & operator=(const _State_manager &_Other)
Definition: future:960
template<class _Ty >
shared_future& shared_future< _Ty >::operator= ( shared_future< _Ty > &&  _Right)
inline
1271  { // assign from shared_future rvalue object
1272  _Mybase::operator=(_STD forward<shared_future>(_Right));
1273  return (*this);
1274  }
_State_manager & operator=(const _State_manager &_Other)
Definition: future:960

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