Bitcoin Core 29.99.0
P2P Digital Currency
mp::FunctionTraits< Fn > Struct Template Reference

Function traits class used to get method parameter and result types, used in generated ProxyClient and ProxyServer classes produced by gen.cpp to get C++ method type information. More...

Detailed Description

template<class Fn>
struct mp::FunctionTraits< Fn >

Function traits class used to get method parameter and result types, used in generated ProxyClient and ProxyServer classes produced by gen.cpp to get C++ method type information.

The generated code accesses these traits via intermediate ProxyClientMethodTraits and ProxyServerMethodTraits classes, which it is possible to specialize to change the way method arguments and return values are handled.

Fields of the trait class are:

Params - TypeList of C++ ClassName::methodName parameter types Result - Return type of ClassName::method Param<N> - helper to access individual parameters by index number. Fields - helper alias that appends Result type to the Params typelist if it not void.

Definition at line 188 of file proxy.h.


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