casa
5.7.0-16
|
#include <Future.h>
Public Types | |
typedef A | value_type |
Public Member Functions | |
Future () | |
Constructors. More... | |
Future (const A &a) | |
Future (A &&a) | |
Future (const std::exception_ptr &e) | |
Future (std::exception_ptr &&e) | |
Future (const std::shared_future< Try< A > > &f) | |
Future (std::shared_future< Try< A > > &&f) | |
Future (std::future< Try< A > > &&f) | |
NB: the following method would be erroneous, since calling std::future::share() is not const on std::future. More... | |
template<typename F , typename FB = typename std::result_of<F(const A&)>::type, class = std::enable_if<std::is_base_of<FutureBase,FB>::value>> | |
FB | flatMap (F &&fn) const |
Instance methods. More... | |
template<class = std::enable_if<std::is_base_of<FutureBase,A>::value>> | |
A | flatten () const |
template<typename F , typename FB = typename std::result_of<F()>::type, class = std::enable_if<std::is_base_of<FutureBase,FB>::value>> | |
FB | followedBy (F fn) const |
template<typename F , typename FB = typename std::result_of<F()>::type, class = std::enable_if<std::is_base_of<FutureBase,FB>::value >> | |
Future< A > | forEffect (F fn) const |
Try< A > | get () const |
template<typename P , typename F , class = std::enable_if< std::is_convertible<std::result_of<P(const A&)>,bool>::value>, class = std::enable_if< std::is_same<Future<A>,std::result_of<F(const A&)> >::value>> | |
Future< A > | iterateUntil (P p, F &&f) const |
template<typename P , typename F , class = std::enable_if< std::is_convertible<std::result_of<P(const A&)>,bool>::value>, class = std::enable_if< std::is_same<Future<A>,std::result_of<F(const A&)> >::value>> | |
Future< A > | iterateWhile (P p, F f) const |
template<typename F , typename B = typename std::result_of<F(const A&)>::type> | |
Future< B > | map (F fn) const |
template<typename F , class = std::enable_if< std::is_convertible< std::result_of<F(std::exception_ptr &)>,A>::value>> | |
Future< A > | recoverWith (F fn) const |
void | wait () const |
template<class Rep , class Period > | |
std::future_status | waitFor (const std::chrono::duration< Rep, Period > &rel_time) const |
template<class Clock , class Duration > | |
std::future_status | waitUntil (const std::chrono::time_point< Clock, Duration > &abs_time) const |
template<typename F , typename FB = typename std::result_of<F(const A&)>::type, class = std::enable_if<std::is_base_of<FutureBase,FB>::value>> | |
FB | operator>>= (F &&fn) const |
template<typename F , typename FB = typename std::result_of<F()>::type, class = std::enable_if<std::is_base_of<FutureBase,FB>::value>> | |
FB | operator>> (F &&fn) const |
template<typename F , typename B = typename std::result_of<F(const A&)>::type> | |
Future< B > | operator| (F &&fn) const |
Static Public Member Functions | |
template<typename F , class = std::enable_if< std::is_convertible<std::result_of<F()>,A>::value,A>> | |
static Future< A > | from (F f) |
Static methods. More... | |
template<typename F , typename B = typename std::result_of<F(const A&)>::type> | |
static std::function< Future < B >const Future< A > &)> | lift (F f) |
Private Attributes | |
std::shared_future< Try< A > > | m_fta |
typedef A casa::vi::Future< A >::value_type |
|
inline |
|
inline |
Definition at line 55 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 61 of file Future.h.
References casa::vi::Future< A >::m_fta, and move().
|
inline |
Definition at line 67 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 73 of file Future.h.
References casacore::C::e, casa::vi::Future< A >::m_fta, and move().
|
inline |
|
inline |
|
inline |
|
inline |
Instance methods.
Definition at line 136 of file Future.h.
References casa::vi::Future< A >::map().
Referenced by casa::vi::Future< A >::followedBy(), casa::vi::Future< A >::forEffect(), and casa::vi::Future< A >::operator>>=().
|
inline |
Definition at line 147 of file Future.h.
References casacore::C::e, and casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 168 of file Future.h.
References casa::vi::Future< A >::flatMap().
Referenced by casa::vi::Future< A >::operator>>().
|
inline |
Definition at line 180 of file Future.h.
References casa::vi::Future< A >::flatMap().
|
inlinestatic |
Static methods.
Definition at line 104 of file Future.h.
References casa::vi::try_().
Referenced by casa::vi::future().
|
inline |
Definition at line 192 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 209 of file Future.h.
References casa::vi::Future< A >::iterateWhile().
|
inline |
Definition at line 228 of file Future.h.
Referenced by casa::vi::Future< A >::iterateUntil().
|
inlinestatic |
|
inline |
Definition at line 249 of file Future.h.
References casa::vi::Future< A >::m_fta.
Referenced by casa::vi::Future< A >::flatMap(), and casa::vi::Future< A >::operator|().
|
inline |
Definition at line 319 of file Future.h.
References casa::vi::Future< A >::followedBy().
|
inline |
Definition at line 307 of file Future.h.
References casa::vi::Future< A >::flatMap().
|
inline |
Definition at line 331 of file Future.h.
References casa::vi::Future< A >::map().
|
inline |
Definition at line 266 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 279 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 287 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
inline |
Definition at line 295 of file Future.h.
References casa::vi::Future< A >::m_fta.
|
private |
Definition at line 337 of file Future.h.
Referenced by casa::vi::Future< A >::flatten(), casa::vi::Future< A >::Future(), casa::vi::Future< A >::get(), casa::vi::Future< A >::map(), casa::vi::Future< A >::recoverWith(), casa::vi::Future< A >::wait(), casa::vi::Future< A >::waitFor(), and casa::vi::Future< A >::waitUntil().