Bitcoin Core 29.99.0
P2P Digital Currency
Public Types | Static Public Member Functions | List of all members
mp::ProxyMethodTraits< MethodParams, Enable > Struct Template Reference

Traits class for a proxy method, providing the same Params/Result/Param/Fields described in the FunctionTraits class above, plus an additional invoke() method that calls the C++ method which is being proxied, forwarding any arguments. More...

#include <proxy.h>

Inheritance diagram for mp::ProxyMethodTraits< MethodParams, Enable >:
[legend]

Public Types

using Params = TypeList<>
 
using Result = void
 
using Fields = Params
 

Static Public Member Functions

template<typename ServerContext >
static void invoke (ServerContext &)
 

Detailed Description

template<typename MethodParams, typename Enable = void>
struct mp::ProxyMethodTraits< MethodParams, Enable >

Traits class for a proxy method, providing the same Params/Result/Param/Fields described in the FunctionTraits class above, plus an additional invoke() method that calls the C++ method which is being proxied, forwarding any arguments.

The template argument should be the InterfaceName::MethodNameParams class (generated by Cap'n Proto) associated with the method.

Note: The class definition here is just the fallback definition used when the other specialization below doesn't match. The fallback is only used for capnp methods which do not have corresponding C++ methods, which in practice is just the two special construct() and destroy() methods described in ProxyClientBase. These methods don't have any C++ parameters or return types, so the trait information below reflects that.

Definition at line 230 of file proxy.h.

Member Typedef Documentation

◆ Fields

template<typename MethodParams , typename Enable = void>
using mp::ProxyMethodTraits< MethodParams, Enable >::Fields = Params

Definition at line 234 of file proxy.h.

◆ Params

template<typename MethodParams , typename Enable = void>
using mp::ProxyMethodTraits< MethodParams, Enable >::Params = TypeList<>

Definition at line 232 of file proxy.h.

◆ Result

template<typename MethodParams , typename Enable = void>
using mp::ProxyMethodTraits< MethodParams, Enable >::Result = void

Definition at line 233 of file proxy.h.

Member Function Documentation

◆ invoke()

template<typename MethodParams , typename Enable = void>
template<typename ServerContext >
static void mp::ProxyMethodTraits< MethodParams, Enable >::invoke ( ServerContext )
inlinestatic

Definition at line 237 of file proxy.h.


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