libqi-api  release-2.5.3-2016-11-18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Functions
future.hxx File Reference
#include <vector>
#include <utility>
#include <boost/bind.hpp>
#include <qi/eventloop.hpp>
#include <qi/actor.hpp>
#include <qi/type/detail/futureadapter.hpp>
#include <qi/log.hpp>
#include <qi/detail/futurebarrier.hpp>

Go to the source code of this file.

Classes

struct  qi::detail::Caller< T, R >
 
struct  qi::detail::Caller< T, void >
 
struct  qi::detail::ContinueThenMaybeAsync< Async, T, R >
 
struct  qi::detail::ContinueThenMaybeAsync< true, T, R >
 
struct  qi::detail::ContinueThenMaybeAsync< false, T, R >
 
struct  qi::detail::ContinueAndThenMaybeAsync< Async, T, R >
 
struct  qi::detail::ContinueAndThenMaybeAsync< true, T, R >
 
struct  qi::detail::ContinueAndThenMaybeAsync< false, T, R >
 
class  qi::detail::AddUnwrap< Future< T > >
 
struct  qi::FutureValueConverter< void, void >
 
struct  qi::FutureValueConverter< T, void >
 
struct  qi::FutureValueConverter< void, T >
 
struct  qi::detail::FutureWrapper< T >
 
struct  qi::detail::FutureWrapper< void >
 

Namespaces

 qi
 Deprecated in 2.5. Use int8_t from <cstdint>.
 
 qi::detail
 

Macros

#define _QI_DETAIL_FUTURE_HXX_
 

Functions

template<typename T , typename R >
void qi::detail::continueThen (const Future< T > &future, const boost::function< R(const Future< T > &)> &func, qi::Promise< R > &promise)
 
template<typename T , typename R >
void qi::detail::continueThenAsync (const Future< T > &future, const boost::function< qi::Future< R >(const Future< T > &)> &func, qi::Promise< R > &promise)
 
template<typename T , typename R >
void qi::detail::continueAndThen (const Future< T > &future, const boost::function< R(const typename Future< T >::ValueType &)> &func, qi::Promise< R > &promise)
 
template<typename T , typename R >
void qi::detail::continueAndThenAsync (const Future< T > &future, const boost::function< qi::Future< R >(const typename Future< T >::ValueType &)> &func, qi::Promise< R > &promise)
 
template<typename T >
void qi::detail::waitForFirstHelper (qi::Promise< qi::Future< T > > &prom, qi::Future< T > &fut, qi::Atomic< int > *count)
 
template<typename T >
qi::Future< T > qi::makeFutureError (const std::string &error)
 Helper function to return a future with the error set. More...
 
template<typename FT , typename PT , typename CONV >
void qi::detail::futureAdapter (const Future< FT > &f, Promise< PT > p, CONV converter)
 
template<typename FT >
void qi::detail::futureCancelAdapter (boost::weak_ptr< FutureBaseTyped< FT > > wf)
 
template<typename R >
void qi::adaptFutureUnwrap (Future< AnyReference > &f, Promise< R > &p)
 Feed a promise from a generic future which may be unwrapped if it contains itself a future. More...
 
template<typename FT , typename PT >
void qi::adaptFuture (const Future< FT > &f, Promise< PT > &p, AdaptFutureOption option=AdaptFutureOption_ForwardCancel)
 Feed a promise from a future of possibly different type. More...
 
template<typename FT , typename PT , typename CONV >
void qi::adaptFuture (const Future< FT > &f, Promise< PT > &p, CONV converter, AdaptFutureOption option=AdaptFutureOption_ForwardCancel)
 Similar to adaptFuture(f, p) but with a custom converter. More...
 

Macro Definition Documentation

#define _QI_DETAIL_FUTURE_HXX_

Definition at line 8 of file future.hxx.