MIRA
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ConcreteRPCInvoker< Backend, R, ARGS > Struct Template Reference

#include <rpc/RPCInvoker.h>

Inheritance diagram for ConcreteRPCInvoker< Backend, R, ARGS >:
Inheritance graph
[legend]

Public Types

typedef std::function< R(ARGS...)> Fn
 

Public Member Functions

 ConcreteRPCInvoker (const Fn &f)
 
 ConcreteRPCInvoker (Fn &&f)
 
void invoke (typename Backend::ServerRequest &request, typename Backend::ServerResponse &response) final
 object is pointer to service object whose method is called More...
 
template<typename Head , typename... Tail, typename... Args>
void parseArguments (typename Backend::ServerRequest &request, typename Backend::ServerResponse &response, Args &&... args)
 
template<typename... Ignore>
void parseArguments (typename Backend::ServerRequest &request, typename Backend::ServerResponse &response, Private::StrippedType< ARGS > &&... args)
 

Static Public Member Functions

template<class P >
static Private::StrippedType< P > getParameter (typename Backend::ServerRequest &request)
 

Public Attributes

Fn fn
 

Member Typedef Documentation

◆ Fn

typedef std::function<R(ARGS...)> Fn

Constructor & Destructor Documentation

◆ ConcreteRPCInvoker() [1/2]

ConcreteRPCInvoker ( const Fn f)
inline

◆ ConcreteRPCInvoker() [2/2]

ConcreteRPCInvoker ( Fn &&  f)
inline

Member Function Documentation

◆ getParameter()

static Private::StrippedType<P> getParameter ( typename Backend::ServerRequest &  request)
inlinestatic

◆ invoke()

void invoke ( typename Backend::ServerRequest &  request,
typename Backend::ServerResponse &  response 
)
inlinefinalvirtual

object is pointer to service object whose method is called

Implements TRPCInvoker< Backend >.

◆ parseArguments() [1/2]

void parseArguments ( typename Backend::ServerRequest &  request,
typename Backend::ServerResponse &  response,
Args &&...  args 
)
inline

◆ parseArguments() [2/2]

void parseArguments ( typename Backend::ServerRequest &  request,
typename Backend::ServerResponse &  response,
Private::StrippedType< ARGS > &&...  args 
)
inline

Member Data Documentation

◆ fn

Fn fn

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