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

#include <future.hpp>

Public Member Functions

 Promise ()
 
 Promise (const T &t)
 
virtual ~Promise ()
 
 Promise (Promise< T > &&that)
 
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 ( const T &  t)
explicit
template<typename T >
process::Promise< T >::~Promise ( )
virtual
template<typename T>
process::Promise< T >::Promise ( Promise< T > &&  that)

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>
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: