Bitcoin Core 29.99.0
P2P Digital Currency
Public Member Functions | Private Types | Private Attributes | List of all members
mp::ProxyCallbackImpl< Result, Args > Class Template Referencefinal

Adapter to convert ProxyCallback object call to function object call. More...

#include <type-function.h>

Inheritance diagram for mp::ProxyCallbackImpl< Result, Args >:
[legend]
Collaboration diagram for mp::ProxyCallbackImpl< Result, Args >:
[legend]

Public Member Functions

 ProxyCallbackImpl (Fn fn)
 
Result call (Args &&... args) override
 
virtual Result call (Args &&... args)=0
 

Private Types

using Fn = std::function< Result(Args...)>
 

Private Attributes

Fn m_fn
 

Detailed Description

template<typename Result, typename... Args>
class mp::ProxyCallbackImpl< Result, Args >

Adapter to convert ProxyCallback object call to function object call.

Definition at line 13 of file type-function.h.

Member Typedef Documentation

◆ Fn

template<typename Result , typename... Args>
using mp::ProxyCallbackImpl< Result, Args >::Fn = std::function<Result(Args...)>
private

Definition at line 15 of file type-function.h.

Constructor & Destructor Documentation

◆ ProxyCallbackImpl()

template<typename Result , typename... Args>
mp::ProxyCallbackImpl< Result, Args >::ProxyCallbackImpl ( Fn  fn)
inline

Definition at line 19 of file type-function.h.

Member Function Documentation

◆ call()

template<typename Result , typename... Args>
Result mp::ProxyCallbackImpl< Result, Args >::call ( Args &&...  args)
inlineoverridevirtual

Member Data Documentation

◆ m_fn

template<typename Result , typename... Args>
Fn mp::ProxyCallbackImpl< Result, Args >::m_fn
private

Definition at line 16 of file type-function.h.


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