NIM PC Cross Platform SDK
|
Public 类型 | |
using | result_type = typename result_traits< _R >::type |
using | invoke_fn_t = _R(*)(char *, _Args...) |
using | construct_fn_t = void(*)(char *, char *) |
using | destroy_fn_t = void(*)(char *) |
using | functor_container = nstd::vector< char > |
Public 成员函数 | |
_function () | |
_function (std::nullptr_t) | |
template<typename Functor > | |
_function (const Functor &f) | |
_function (const _function &rhs) | |
_function & | operator= (const _function &rhs) |
template<typename Functor > | |
_function & | operator= (const Functor &f) |
_function & | operator= (std::nullptr_t) |
~_function () | |
bool | operator== (std::nullptr_t) const |
bool | operator!= (std::nullptr_t) const |
bool | operator== (const _function &other) const |
bool | operator!= (const _function &other) const |
operator bool () const | |
_R | operator() (_Args... args) |
_R | operator() (_Args... args) const |
静态 Public 成员函数 | |
template<typename Functor > | |
static result_type | invoke_fn (Functor *fn, _Args... args) |
template<typename Functor > | |
static void | construct_fn (Functor *construct_dst, Functor *construct_src) |
template<typename Functor > | |
static void | destroy_fn (Functor *&f) |
Public 属性 | |
invoke_fn_t | invoke_f |
construct_fn_t | construct_f |
nstd::shared_ptr< functor_container > | data_ptr |
std::size_t | data_size |
using nstd::function< R(Args...)>::_function< _R(_Args...)>::construct_fn_t = void (*)(char*, char*) |
using nstd::function< R(Args...)>::_function< _R(_Args...)>::destroy_fn_t = void (*)(char*) |
using nstd::function< R(Args...)>::_function< _R(_Args...)>::functor_container = nstd::vector<char> |
using nstd::function< R(Args...)>::_function< _R(_Args...)>::invoke_fn_t = _R (*)(char*, _Args...) |
using nstd::function< R(Args...)>::_function< _R(_Args...)>::result_type = typename result_traits<_R>::type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
construct_fn_t nstd::function< R(Args...)>::_function< _R(_Args...)>::construct_f |
nstd::shared_ptr<functor_container> nstd::function< R(Args...)>::_function< _R(_Args...)>::data_ptr |
std::size_t nstd::function< R(Args...)>::_function< _R(_Args...)>::data_size |
invoke_fn_t nstd::function< R(Args...)>::_function< _R(_Args...)>::invoke_f |