XRootD
Loading...
Searching...
No Matches
XrdCl::Resp< void > Struct Reference

#include <XrdClOperationHandlers.hh>

+ Inheritance diagram for XrdCl::Resp< void >:
+ Collaboration diagram for XrdCl::Resp< void >:

Static Public Member Functions

static ResponseHandlerCreate (std::function< void(XRootDStatus &)> func)
 
static ResponseHandlerCreate (std::function< void(XRootDStatus &, HostList &)> func)
 
static ResponseHandlerCreate (std::function< void(XRootDStatus &, void &)> func)
 
static ResponseHandlerCreate (std::function< void(XRootDStatus &, void &, HostList &)> func)
 
template<typename Return>
static ResponseHandlerCreate (std::packaged_task< Return(XRootDStatus &)> &task)
 
static ResponseHandlerCreate (std::packaged_task< Return(XRootDStatus &, void &)> &task)
 
- Static Public Member Functions inherited from XrdCl::RespBase< void >
static ResponseHandlerCreate (ResponseHandler &hdlr)
 
static ResponseHandlerCreate (ResponseHandler *hdlr)
 
static ResponseHandlerCreate (std::future< void > &ftr)
 

Detailed Description

Factory class, overloads Resp for void type

  • Response : response type

Definition at line 720 of file XrdClOperationHandlers.hh.

Member Function Documentation

◆ Create() [1/6]

static ResponseHandler * XrdCl::Resp< void >::Create ( std::function< void(XRootDStatus &)> func)
inlinestatic

A factory method

Parameters
func: the function/functor/lambda that should be wrapped
Returns
: SimpleFunctionWrapper instance

Definition at line 728 of file XrdClOperationHandlers.hh.

729 {
730 return new FunctionWrapper<void>( func );
731 }

◆ Create() [2/6]

static ResponseHandler * XrdCl::Resp< void >::Create ( std::function< void(XRootDStatus &, HostList &)> func)
inlinestatic

A factory method

Parameters
func: the function/functor/lambda that should be wrapped
Returns
: SimpleFunctionWrapper instance

Definition at line 739 of file XrdClOperationHandlers.hh.

740 {
741 return new FunctionWrapper<void>( func );
742 }

◆ Create() [3/6]

static ResponseHandler * XrdCl::Resp< void >::Create ( std::function< void(XRootDStatus &, void &)> func)
inlinestatic

A factory method

Parameters
func: the function/functor/lambda that should be wrapped
Returns
: FunctionWrapper instance

Definition at line 677 of file XrdClOperationHandlers.hh.

679 {
680 return new FunctionWrapper<Response>( func );
681 }

◆ Create() [4/6]

static ResponseHandler * XrdCl::Resp< void >::Create ( std::function< void(XRootDStatus &, void &, HostList &)> func)
inlinestatic

A factory method

Parameters
func: the function/functor/lambda that should be wrapped
Returns
: FunctionWrapper instance

Definition at line 689 of file XrdClOperationHandlers.hh.

691 {
692 return new FunctionWrapper<Response>( func );
693 }

◆ Create() [5/6]

template<typename Return>
static ResponseHandler * XrdCl::Resp< void >::Create ( std::packaged_task< Return(XRootDStatus &)> & task)
inlinestatic

A factory method

Parameters
task: the task that should be wrapped
Returns
: TaskWrapper instance

Definition at line 751 of file XrdClOperationHandlers.hh.

752 {
754 }

◆ Create() [6/6]

static ResponseHandler * XrdCl::Resp< void >::Create ( std::packaged_task< Return(XRootDStatus &, void &)> & task)
inlinestatic

A factory method

Parameters
task: the task that should be wrapped
Returns
: TaskWrapper instance

Definition at line 702 of file XrdClOperationHandlers.hh.

704 {
706 }

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