|
XRootD
|
#include <XrdClOperationHandlers.hh>
Inheritance diagram for XrdCl::FutureWrapperBase< Response >:
Collaboration diagram for XrdCl::FutureWrapperBase< Response >:Public Member Functions | |
| FutureWrapperBase (std::future< Response > &ftr) | |
| virtual | ~FutureWrapperBase () |
| Destructor. More... | |
Public Member Functions inherited from XrdCl::ResponseHandler | |
| virtual | ~ResponseHandler () |
| virtual void | HandleResponse (XRootDStatus *status, AnyObject *response) |
| virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
Protected Member Functions | |
| void | SetException (const XRootDStatus &err) |
Protected Attributes | |
| bool | fulfilled |
| std::promise< Response > | prms |
| promise that corresponds to the future More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from XrdCl::ResponseHandler | |
| static ResponseHandler * | Wrap (std::function< void(XRootDStatus &, AnyObject &)> func) |
| static ResponseHandler * | Wrap (std::function< void(XRootDStatus *, AnyObject *)> func) |
A wrapper handler for a std::promise / std::future.
Definition at line 461 of file XrdClOperationHandlers.hh.
|
inline |
Constructor, initializes the std::future argument from its own std::promise
| ftr | : the future to be linked with this handler |
Definition at line 471 of file XrdClOperationHandlers.hh.
References XrdCl::FutureWrapperBase< Response >::prms.
|
inlinevirtual |
Destructor.
Definition at line 479 of file XrdClOperationHandlers.hh.
References XrdCl::errPipelineFailed, XrdCl::FutureWrapperBase< Response >::fulfilled, XrdCl::FutureWrapperBase< Response >::SetException(), and XrdCl::stError.
Here is the call graph for this function:
|
inlineprotected |
Set exception in the std::promise / std::future
| err | : the error |
Definition at line 491 of file XrdClOperationHandlers.hh.
References XrdCl::FutureWrapperBase< Response >::fulfilled, and XrdCl::FutureWrapperBase< Response >::prms.
Referenced by XrdCl::FutureWrapperBase< Response >::~FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), and XrdCl::FutureWrapper< void >::HandleResponse().
Here is the caller graph for this function:
|
protected |
|
protected |
promise that corresponds to the future
Definition at line 501 of file XrdClOperationHandlers.hh.
Referenced by XrdCl::FutureWrapperBase< Response >::FutureWrapperBase(), XrdCl::FutureWrapper< Response >::HandleResponse(), XrdCl::FutureWrapper< void >::HandleResponse(), and XrdCl::FutureWrapperBase< Response >::SetException().