xrootd
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
XrdCl::Resp< void > Struct Reference

#include <XrdClOperationHandlers.hh>

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

Static Public Member Functions

static ResponseHandlerCreate (std::function< void(XRootDStatus &)> func)
 
static ResponseHandlerCreate (std::function< void(XRootDStatus &, HostList &)> func)
 
template<typename Return >
static ResponseHandlerCreate (std::packaged_task< Return(XRootDStatus &)> &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

Member Function Documentation

◆ Create() [1/3]

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

◆ Create() [2/3]

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

◆ Create() [3/3]

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

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