libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::CancelableFuture< T >::Promise Class Reference

#include <CancelableFuture.h>

Public Member Functions

FutureBreaker Breaker () const
 
void Cancel ()
 
CancelableFuture< T > Future () const
 
bool IsCanceled () const
 
Promiseoperator= (const Promise &)=default
 
Promiseoperator= (Promise &&)=default
 
 Promise ()=default
 
 Promise (const Promise &)=default
 
 Promise (Promise &&)=default
 
void SetValue (const T &value)
 
virtual ~Promise ()=default
 

Constructor & Destructor Documentation

◆ Promise() [1/3]

template<typename T >
osmscout::CancelableFuture< T >::Promise::Promise ( )
default

◆ ~Promise()

template<typename T >
virtual osmscout::CancelableFuture< T >::Promise::~Promise ( )
virtualdefault

◆ Promise() [2/3]

template<typename T >
osmscout::CancelableFuture< T >::Promise::Promise ( const Promise )
default

◆ Promise() [3/3]

template<typename T >
osmscout::CancelableFuture< T >::Promise::Promise ( Promise &&  )
default

Member Function Documentation

◆ Breaker()

template<typename T >
FutureBreaker osmscout::CancelableFuture< T >::Promise::Breaker ( ) const
inline

◆ Cancel()

template<typename T >
void osmscout::CancelableFuture< T >::Promise::Cancel ( )
inline

◆ Future()

template<typename T >
CancelableFuture<T> osmscout::CancelableFuture< T >::Promise::Future ( ) const
inline

◆ IsCanceled()

template<typename T >
bool osmscout::CancelableFuture< T >::Promise::IsCanceled ( ) const
inline

◆ operator=() [1/2]

template<typename T >
Promise& osmscout::CancelableFuture< T >::Promise::operator= ( const Promise )
default

◆ operator=() [2/2]

template<typename T >
Promise& osmscout::CancelableFuture< T >::Promise::operator= ( Promise &&  )
default

◆ SetValue()

template<typename T >
void osmscout::CancelableFuture< T >::Promise::SetValue ( const T &  value)
inline

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