libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Friends | List of all members
qi::detail::FutureBaseTyped< T > Class Template Reference

#include <future.hxx>

Public Types

typedef boost::function< void(Promise
< T >)> 
CancelCallback
 
typedef FutureType< T >::type ValueType
 

Public Member Functions

 FutureBaseTyped ()
 
 ~FutureBaseTyped ()
 
bool isCancelable () const
 
void cancel (qi::Future< T > &future)
 
void setOnCancel (qi::Promise< T > &promise, CancelCallback onCancel)
 
void callCbNotify (qi::Future< T > &future)
 
void setValue (qi::Future< T > &future, const ValueType &value)
 
void set (qi::Future< T > &future)
 
void setError (qi::Future< T > &future, const std::string &message)
 
void setBroken (qi::Future< T > &future)
 
void setCanceled (qi::Future< T > &future)
 
void setOnDestroyed (boost::function< void(ValueType)> f)
 
void connect (qi::Future< T > future, const boost::function< void(qi::Future< T >)> &s, FutureCallbackType type)
 
const ValueType & value (int msecs) const
 
- Public Member Functions inherited from qi::detail::FutureBase
 FutureBase ()
 
 ~FutureBase ()
 
FutureState wait (int msecs) const
 
FutureState wait (qi::Duration duration) const
 
FutureState wait (qi::SteadyClock::time_point timepoint) const
 
FutureState state () const
 
bool isRunning () const
 
bool isFinished () const
 
bool isCanceled () const
 
bool isCancelRequested () const
 
bool hasError (int msecs) const
 
bool hasValue (int msecs) const
 
const std::string & error (int msecs) const
 
void reportStart ()
 
void reset ()
 

Friends

class Promise< T >
 

Additional Inherited Members

- Public Attributes inherited from qi::detail::FutureBase
FutureBasePrivate * _p
 
- Protected Member Functions inherited from qi::detail::FutureBase
void reportValue ()
 
void reportError (const std::string &message)
 
void requestCancel ()
 
void reportCanceled ()
 
boost::recursive_mutex & mutex ()
 
void notifyFinish ()
 

Detailed Description

template<typename T>
class qi::detail::FutureBaseTyped< T >

Definition at line 274 of file future.hxx.

Member Typedef Documentation

template<typename T >
typedef boost::function<void(Promise<T>)> qi::detail::FutureBaseTyped< T >::CancelCallback

Definition at line 276 of file future.hxx.

template<typename T >
typedef FutureType<T>::type qi::detail::FutureBaseTyped< T >::ValueType

Definition at line 277 of file future.hxx.

Constructor & Destructor Documentation

template<typename T >
qi::detail::FutureBaseTyped< T >::FutureBaseTyped ( )
inline

Definition at line 278 of file future.hxx.

template<typename T >
qi::detail::FutureBaseTyped< T >::~FutureBaseTyped ( )
inline

Definition at line 284 of file future.hxx.

Member Function Documentation

template<typename T >
void qi::detail::FutureBaseTyped< T >::callCbNotify ( qi::Future< T > &  future)
inline

Definition at line 324 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::cancel ( qi::Future< T > &  future)
inline

Definition at line 295 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::connect ( qi::Future< T >  future,
const boost::function< void(qi::Future< T >)> &  s,
FutureCallbackType  type 
)
inline

Definition at line 409 of file future.hxx.

template<typename T >
bool qi::detail::FutureBaseTyped< T >::isCancelable ( ) const
inline

Definition at line 290 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::set ( qi::Future< T > &  future)
inline

Definition at line 363 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::setBroken ( qi::Future< T > &  future)
inline

Definition at line 386 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::setCanceled ( qi::Future< T > &  future)
inline

Definition at line 395 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::setError ( qi::Future< T > &  future,
const std::string &  message 
)
inline

Definition at line 376 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::setOnCancel ( qi::Promise< T > &  promise,
CancelCallback  onCancel 
)
inline

Definition at line 310 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::setOnDestroyed ( boost::function< void(ValueType)>  f)
inline

Definition at line 404 of file future.hxx.

template<typename T >
void qi::detail::FutureBaseTyped< T >::setValue ( qi::Future< T > &  future,
const ValueType &  value 
)
inline

Definition at line 346 of file future.hxx.

template<typename T >
const ValueType& qi::detail::FutureBaseTyped< T >::value ( int  msecs) const
inline

Definition at line 438 of file future.hxx.

Friends And Related Function Documentation

template<typename T >
friend class Promise< T >
friend

Definition at line 450 of file future.hxx.


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