Apache Mesos
Public Member Functions | Friends | List of all members
process::Promise< T > Class Template Reference

#include <future.hpp>

Public Member Functions

 Promise ()
 
virtual ~Promise ()
 
 Promise (const T &t)
 
 Promise (Promise &&that)=default
 
Promiseoperator= (Promise &&)=default
 
 Promise (const Promise &that)=delete
 
Promiseoperator= (const Promise &)=delete
 
bool discard ()
 
bool set (const T &_t)
 
bool set (T &&_t)
 
bool set (const Future< T > &future)
 
bool associate (const Future< T > &future)
 
bool fail (const std::string &message)
 
Future< T > future () const
 

Friends

template<typename U >
class Future
 
template<typename U >
void internal::discarded (Future< U > future)
 

Constructor & Destructor Documentation

template<typename T >
process::Promise< T >::Promise ( )
template<typename T >
process::Promise< T >::~Promise ( )
virtual
template<typename T>
process::Promise< T >::Promise ( const T &  t)
explicit
template<typename T>
process::Promise< T >::Promise ( Promise< T > &&  that)
default
template<typename T>
process::Promise< T >::Promise ( const Promise< T > &  that)
delete

Member Function Documentation

template<typename T>
bool process::Promise< T >::associate ( const Future< T > &  future)
template<typename T >
bool process::Promise< T >::discard ( )
template<typename T >
bool process::Promise< T >::fail ( const std::string &  message)
template<typename T >
Future< T > process::Promise< T >::future ( ) const
template<typename T>
Promise& process::Promise< T >::operator= ( Promise< T > &&  )
default
template<typename T>
Promise& process::Promise< T >::operator= ( const Promise< T > &  )
delete
template<typename T>
bool process::Promise< T >::set ( const T &  _t)
template<typename T>
bool process::Promise< T >::set ( T &&  _t)
template<typename T>
bool process::Promise< T >::set ( const Future< T > &  future)

Friends And Related Function Documentation

template<typename T>
template<typename U >
friend class Future
friend
template<typename T>
template<typename U >
void internal::discarded ( Future< U >  future)
friend

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