#include <callback_proxy.h>
|
template<typename TCallback , typename TDoCall > |
static auto | DoSafeCallback (const void *callback, const TDoCall &closure, bool delete_callback=false) -> decltype(closure((*(TCallback *)(callback)))) |
|
template<class F , class... Args, class = typename std::enable_if<!std::is_member_function_pointer<F>::value>::type> |
static auto | Invoke (F &&f, Args &&... args) -> decltype(f(std::forward< Args >(args)...)) |
|
template<class R , class C , class... DArgs, class P , class... Args> |
static R | Invoke (R(C::*f)(DArgs...) const, P &&p, Args &&... args) |
|
template<class R , class C , class... DArgs, class P , class... Args> |
static R | Invoke (R(C::*f)(DArgs...), P &&p, Args &&... args) |
|
|
static std::function< void(const std::function< void()> &)> | docallback_async_ = nullptr |
|
◆ CallbackProxyClosure
template<typename TR = void>
◆ DoSafeCallback()
template<typename TCallback , typename TDoCall >
static auto nim::CallbackProxy::DoSafeCallback |
( |
const void * |
callback, |
|
|
const TDoCall & |
closure, |
|
|
bool |
delete_callback = false |
|
) |
| -> decltype(closure((*(TCallback*)(callback)))) |
|
inlinestatic |
◆ Invoke() [1/3]
template<class F , class... Args, class = typename std::enable_if<!std::is_member_function_pointer<F>::value>::type>
static auto nim::CallbackProxy::Invoke |
( |
F && |
f, |
|
|
Args &&... |
args |
|
) |
| -> decltype(f(std::forward<Args>(args)...)) |
|
inlinestatic |
◆ Invoke() [2/3]
template<class R , class C , class... DArgs, class P , class... Args>
static R nim::CallbackProxy::Invoke |
( |
R(C::*)(DArgs...) const |
f, |
|
|
P && |
p, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ Invoke() [3/3]
template<class R , class C , class... DArgs, class P , class... Args>
static R nim::CallbackProxy::Invoke |
( |
R(C::*)(DArgs...) |
f, |
|
|
P && |
p, |
|
|
Args &&... |
args |
|
) |
| |
|
inlinestatic |
◆ Run() [1/3]
◆ Run() [2/3]
◆ Run() [3/3]
◆ docallback_async_
std::function< void(const std::function< void()> &)> nim::CallbackProxy::docallback_async_ = nullptr |
|
static |
该类的文档由以下文件生成:
- D:/GitLab/builds/7_aFT3sv/0/nim-pc/california/nim-cross-platform-sdk/exports/wrapper/nim_wrapper_util/callback_proxy.h
- D:/GitLab/builds/7_aFT3sv/0/nim-pc/california/nim-cross-platform-sdk/exports/wrapper/nim_wrapper_util/callback_proxy.cpp
- D:/GitLab/builds/7_aFT3sv/0/nim-pc/california/nim-cross-platform-sdk/exports/wrapper/nim_wrapper_util/nim_sdk_util.cpp