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

#include <XrdClOperationHandlers.hh>

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

Public Member Functions

 FunctionWrapper (std::function< void(XRootDStatus &, Response &)> handleFunction)
 Constructor.
 
 FunctionWrapper (std::function< void(XRootDStatus &, Response &, HostList &)> handleFunction)
 Constructor.
 
void HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList)
 Callback method.
 
- Public Member Functions inherited from XrdCl::ResponseHandler
virtual ~ResponseHandler ()
 
virtual void HandleResponse (XRootDStatus *status, AnyObject *response)
 

Private Attributes

std::function< void(XRootDStatus &, Response &, HostList &)> fun
 user defined function, functor or lambda
 

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::FunctionWrapper< Response >

Lambda wrapper

Constructor & Destructor Documentation

◆ FunctionWrapper() [1/2]

template<typename Response >
XrdCl::FunctionWrapper< Response >::FunctionWrapper ( std::function< void(XRootDStatus &, Response &)>  handleFunction)
inline

Constructor.

Parameters
func: function, functor or lambda (2 arguments)

◆ FunctionWrapper() [2/2]

template<typename Response >
XrdCl::FunctionWrapper< Response >::FunctionWrapper ( std::function< void(XRootDStatus &, Response &, HostList &)>  handleFunction)
inline

Constructor.

Parameters
func: function, functor or lambda (3 arguments)

Member Function Documentation

◆ HandleResponseWithHosts()

template<typename Response >
void XrdCl::FunctionWrapper< Response >::HandleResponseWithHosts ( XRootDStatus status,
AnyObject response,
HostList hostList 
)
inlinevirtual

Callback method.

Reimplemented from XrdCl::ResponseHandler.

References XrdCl::FunctionWrapper< Response >::fun.

Member Data Documentation

◆ fun

template<typename Response >
std::function<void( XRootDStatus&, Response&, HostList& )> XrdCl::FunctionWrapper< Response >::fun
private

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