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]

List of all members.

Public Member Functions

 SimpleFunctionWrapper (std::function< void(XRootDStatus &)> handleFunction)
 Constructor.
void HandleResponse (XRootDStatus *status, AnyObject *response)
 Callback method.

Private Attributes

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

Detailed Description

Lambda wrapper.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
func : function, functor or lambda

Member Function Documentation

void XrdCl::SimpleFunctionWrapper::HandleResponse ( XRootDStatus status,
AnyObject response 
) [inline, virtual]

Callback method.

Reimplemented from XrdCl::ResponseHandler.

References fun.


Member Data Documentation

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 11 Jun 2020 for xrootd by  doxygen 1.6.1