xrootd
Public Member Functions | Private Attributes | List of all members
XrdCl::SimpleFunctionWrapper Class Reference

Lambda wrapper. More...

#include <XrdClOperationHandlers.hh>

Inheritance diagram for XrdCl::SimpleFunctionWrapper:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::SimpleFunctionWrapper:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

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

Detailed Description

Lambda wrapper.

Constructor & Destructor Documentation

◆ SimpleFunctionWrapper()

XrdCl::SimpleFunctionWrapper::SimpleFunctionWrapper ( std::function< void(XRootDStatus &)>  handleFunction)
inline

Constructor.

Parameters
func: function, functor or lambda

Member Function Documentation

◆ HandleResponse()

void XrdCl::SimpleFunctionWrapper::HandleResponse ( XRootDStatus status,
AnyObject response 
)
inlinevirtual

Callback method.

Reimplemented from XrdCl::ResponseHandler.

References fun.

Member Data Documentation

◆ fun

std::function<void( XRootDStatus& )> XrdCl::SimpleFunctionWrapper::fun
private

user defined function, functor or lambda

Referenced by HandleResponse().


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