AsyncCallbacks.h
Go to the documentation of this file.
114 UnaryCbcCallbackDialer(Method method, Destination *destination): destination_(destination), method_(method) {}
158template <class Destination, typename Argument1, std::enable_if_t<!IsAsyncJob<Destination>::value, int> = 0>
167template <class Destination, typename Argument1, std::enable_if_t<IsAsyncJob<Destination>::value, int> = 0>
typename std::conditional< std::is_base_of< AsyncJob, T >::value, std::true_type, std::false_type >::type IsAsyncJob
Definition: AsyncCallbacks.h:155
UnaryCbcCallbackDialer< Destination, Argument1 > callbackDialer(void(Destination::*method)(Argument1 &), Destination *const destination)
helper function to simplify UnaryCbcCallbackDialer creation
Definition: AsyncCallbacks.h:160
AsyncCallback< typename Call::Dialer::Answer > AsyncCallback_(const RefCount< Call > &call)
Definition: AsyncCallbacks.h:187
Definition: AsyncCall.h:41
a smart AsyncCall pointer for delivery of future results
Definition: AsyncCallbacks.h:32
AsyncCallback()=default
AsyncCallback(const RefCount< Call > &call)
Definition: AsyncCallbacks.h:38
Definition: AsyncCall.h:107
Definition: RefCount.h:28
Definition: AsyncCallbacks.h:109
void print(std::ostream &os) const final
Definition: AsyncCallbacks.h:120
~UnaryCbcCallbackDialer() override=default
UnaryCbcCallbackDialer(Method method, Destination *destination)
Definition: AsyncCallbacks.h:114
void(Destination::* Method)(Argument1 &)
Definition: AsyncCallbacks.h:112
CbcPointer< Destination > destination_
object to deliver the answer to
Definition: AsyncCallbacks.h:126
CallDialer for single-parameter callback functions.
Definition: AsyncCallbacks.h:82
~UnaryFunCallbackDialer() override=default
void print(std::ostream &os) const final
Definition: AsyncCallbacks.h:93
UnaryFunCallbackDialer(Handler *const aHandler)
Definition: AsyncCallbacks.h:87
Definition: AsyncCallbacks.h:137
UnaryJobCallbackDialer(const CbcPointer< Job > &aJob, typename Base::Method aMethod)
Definition: AsyncCallbacks.h:141
Definition: AsyncJobCalls.h:108
void(Job::* Method)(Argument1 &)
Definition: AsyncJobCalls.h:110
access to a callback result carried by an asynchronous CallDialer
Definition: AsyncCallbacks.h:19
virtual ~WithAnswer()=default