NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nstd::bind_t< TR, TC, TF, TCaptured > 模板结构体 参考

#include <ne_stl_bind.h>

Public 成员函数

 bind_t (TF f, TC *obj, const TCaptured &params, const nstd::weak_ptr< nstd::weak_flag > &weak_flag)
 
template<typename... TParams>
TR operator() (TParams... params)
 
template<typename... TParams>
TR operator() (TParams... params) const
 

静态 Public 成员函数

template<typename R , typename C , typename... TArgs, typename TUP , int32_t... Index_1, typename TUP2 , int32_t... Index_2>
static R bind_t_call_ (R(C::*f)(TArgs...), C *obj, const TUP &tup, nstd::int_sequence< Index_1... >, const TUP2 &tup2, nstd::int_sequence< Index_2... >)
 
template<typename R , typename C , typename... TArgs, typename... Ts_1, typename... Ts_2>
static R bind_t_call (R(C::*f)(TArgs...), C *obj, const nstd::tuple< Ts_1... > &tup, const nstd::tuple< Ts_2... > &tup2)
 
template<typename R , typename C , typename... TArgs, typename TUP , int32_t... Index_1, typename TUP2 , int32_t... Index_2>
static R bind_t_call_ (R(C::*f)(TArgs...) const, C *obj, const TUP &tup, nstd::int_sequence< Index_1... >, const TUP2 &tup2, nstd::int_sequence< Index_2... >)
 
template<typename R , typename C , typename... TArgs, typename... Ts_1, typename... Ts_2>
static R bind_t_call (R(C::*f)(TArgs...) const, C *obj, const nstd::tuple< Ts_1... > &tup, const nstd::tuple< Ts_2... > &tup2)
 

Public 属性

TC * obj_
 
TF functor_
 
nstd::weak_ptr< nstd::weak_flagweak_flag_
 
TCaptured captured_params_
 

构造及析构函数说明

◆ bind_t()

template<typename TR , typename TC , typename TF , typename TCaptured >
nstd::bind_t< TR, TC, TF, TCaptured >::bind_t ( TF  f,
TC *  obj,
const TCaptured &  params,
const nstd::weak_ptr< nstd::weak_flag > &  weak_flag 
)
inline

成员函数说明

◆ bind_t_call() [1/2]

template<typename TR , typename TC , typename TF , typename TCaptured >
template<typename R , typename C , typename... TArgs, typename... Ts_1, typename... Ts_2>
static R nstd::bind_t< TR, TC, TF, TCaptured >::bind_t_call ( R(C::*)(TArgs...) const  f,
C *  obj,
const nstd::tuple< Ts_1... > &  tup,
const nstd::tuple< Ts_2... > &  tup2 
)
inlinestatic

◆ bind_t_call() [2/2]

template<typename TR , typename TC , typename TF , typename TCaptured >
template<typename R , typename C , typename... TArgs, typename... Ts_1, typename... Ts_2>
static R nstd::bind_t< TR, TC, TF, TCaptured >::bind_t_call ( R(C::*)(TArgs...)  f,
C *  obj,
const nstd::tuple< Ts_1... > &  tup,
const nstd::tuple< Ts_2... > &  tup2 
)
inlinestatic

◆ bind_t_call_() [1/2]

template<typename TR , typename TC , typename TF , typename TCaptured >
template<typename R , typename C , typename... TArgs, typename TUP , int32_t... Index_1, typename TUP2 , int32_t... Index_2>
static R nstd::bind_t< TR, TC, TF, TCaptured >::bind_t_call_ ( R(C::*)(TArgs...) const  f,
C *  obj,
const TUP &  tup,
nstd::int_sequence< Index_1... >  ,
const TUP2 &  tup2,
nstd::int_sequence< Index_2... >   
)
inlinestatic

◆ bind_t_call_() [2/2]

template<typename TR , typename TC , typename TF , typename TCaptured >
template<typename R , typename C , typename... TArgs, typename TUP , int32_t... Index_1, typename TUP2 , int32_t... Index_2>
static R nstd::bind_t< TR, TC, TF, TCaptured >::bind_t_call_ ( R(C::*)(TArgs...)  f,
C *  obj,
const TUP &  tup,
nstd::int_sequence< Index_1... >  ,
const TUP2 &  tup2,
nstd::int_sequence< Index_2... >   
)
inlinestatic

◆ operator()() [1/2]

template<typename TR , typename TC , typename TF , typename TCaptured >
template<typename... TParams>
TR nstd::bind_t< TR, TC, TF, TCaptured >::operator() ( TParams...  params)
inline

◆ operator()() [2/2]

template<typename TR , typename TC , typename TF , typename TCaptured >
template<typename... TParams>
TR nstd::bind_t< TR, TC, TF, TCaptured >::operator() ( TParams...  params) const
inline

类成员变量说明

◆ captured_params_

template<typename TR , typename TC , typename TF , typename TCaptured >
TCaptured nstd::bind_t< TR, TC, TF, TCaptured >::captured_params_

◆ functor_

template<typename TR , typename TC , typename TF , typename TCaptured >
TF nstd::bind_t< TR, TC, TF, TCaptured >::functor_

◆ obj_

template<typename TR , typename TC , typename TF , typename TCaptured >
TC* nstd::bind_t< TR, TC, TF, TCaptured >::obj_

◆ weak_flag_

template<typename TR , typename TC , typename TF , typename TCaptured >
nstd::weak_ptr<nstd::weak_flag> nstd::bind_t< TR, TC, TF, TCaptured >::weak_flag_

该结构体的文档由以下文件生成: