xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
XrdCl::FutureWrapper< Response > Class Template Reference

#include <XrdClOperationHandlers.hh>

Inheritance diagram for XrdCl::FutureWrapper< Response >:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::FutureWrapper< Response >:
Collaboration graph
[legend]

Public Member Functions

 FutureWrapper (std::future< Response > &ftr)
 
void HandleResponse (XRootDStatus *status, AnyObject *response)
 Callback method. More...
 
- Public Member Functions inherited from XrdCl::FutureWrapperBase< Response >
 FutureWrapperBase (std::future< Response > &ftr)
 
virtual ~FutureWrapperBase ()
 Destructor. More...
 
- Public Member Functions inherited from XrdCl::ResponseHandler
virtual ~ResponseHandler ()
 
virtual void HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList)
 

Additional Inherited Members

- Static Public Member Functions inherited from XrdCl::ResponseHandler
static ResponseHandlerWrap (std::function< void(XRootDStatus &, AnyObject &)> func)
 
static ResponseHandlerWrap (std::function< void(XRootDStatus *, AnyObject *)> func)
 
- Protected Member Functions inherited from XrdCl::FutureWrapperBase< Response >
void SetException (const XRootDStatus &err)
 
- Protected Attributes inherited from XrdCl::FutureWrapperBase< Response >
std::promise< Response > prms
 promise that corresponds to the future More...
 
bool fulfilled
 

Detailed Description

template<typename Response>
class XrdCl::FutureWrapper< Response >

A wrapper handler for a std::promise / std::future.

Constructor & Destructor Documentation

template<typename Response >
XrdCl::FutureWrapper< Response >::FutureWrapper ( std::future< Response > &  ftr)
inline

Constructor,

See Also
FutureWrapperBase
Parameters
ftr: the future to be linked with this handler

Member Function Documentation

template<typename Response >
void XrdCl::FutureWrapper< Response >::HandleResponse ( XRootDStatus status,
AnyObject response 
)
inlinevirtual

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