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 712 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 720 of file XrdClOperationHandlers.hh.

721 {
722 return new FunctionWrapper<void>( func );
723 }

◆ 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 731 of file XrdClOperationHandlers.hh.

732 {
733 return new FunctionWrapper<void>( func );
734 }

◆ 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 669 of file XrdClOperationHandlers.hh.

671 {
672 return new FunctionWrapper<Response>( func );
673 }

◆ 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 681 of file XrdClOperationHandlers.hh.

683 {
684 return new FunctionWrapper<Response>( func );
685 }

◆ 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 743 of file XrdClOperationHandlers.hh.

744 {
746 }

◆ 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 694 of file XrdClOperationHandlers.hh.

696 {
698 }

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