xrootd
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XrdCl::FutureWrapperBase< Response > Class Template Reference

#include <XrdClOperationHandlers.hh>

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

Public Member Functions

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

Protected Member Functions

void SetException (const XRootDStatus &err)
 

Protected Attributes

std::promise< Response > prms
 promise that corresponds to the future
 
bool fulfilled
 

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)
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ FutureWrapperBase()

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

Constructor, initializes the std::future argument from its own std::promise

Parameters
ftr: the future to be linked with this handler

References XrdCl::FutureWrapperBase< Response >::prms.

◆ ~FutureWrapperBase()

template<typename Response >
virtual XrdCl::FutureWrapperBase< Response >::~FutureWrapperBase ( )
inlinevirtual

Member Function Documentation

◆ SetException()

template<typename Response >
void XrdCl::FutureWrapperBase< Response >::SetException ( const XRootDStatus err)
inlineprotected

Member Data Documentation

◆ fulfilled

template<typename Response >
bool XrdCl::FutureWrapperBase< Response >::fulfilled
protected

◆ prms

template<typename Response >
std::promise<Response> XrdCl::FutureWrapperBase< Response >::prms
protected

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