XrdCl::FunctionWrapper< void > Class Template Reference

#include <XrdClOperationHandlers.hh>

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

List of all members.

Public Member Functions

 FunctionWrapper (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

template<>
class XrdCl::FunctionWrapper< void >

Lambda wrapper

Template specialization for responses that return no value (void)


Constructor & Destructor Documentation

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

Constructor.

Parameters:
func : function, functor or lambda

Member Function Documentation

void XrdCl::FunctionWrapper< void >::HandleResponse ( XRootDStatus status,
AnyObject response 
) [inline, virtual]

Callback method.

Reimplemented from XrdCl::ResponseHandler.

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


Member Data Documentation

std::function<void( XRootDStatus& )> XrdCl::FunctionWrapper< void >::fun [private]

user defined function, functor or lambda


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 7 Jul 2020 for xrootd by  doxygen 1.6.1