Helper class which loads arguments for C++ functions called from Python. More...
#include <cast.h>
Public Member Functions | |
template<typename Return , typename Guard , typename Func > | |
enable_if_t<!std::is_void< Return >::value, Return > | call (Func &&f) && |
template<typename Return , typename Guard , typename Func > | |
enable_if_t< std::is_void< Return >::value, void_type > | call (Func &&f) && |
bool | load_args (function_call &call) |
Static Public Attributes | |
static constexpr auto | arg_names = ::pybind11::detail::concat(type_descr(make_caster<Args>::name)...) |
static constexpr int | args_pos = constexpr_last<argument_is_args, Args...>() |
static constexpr bool | has_kwargs = kwargs_pos != -1 |
Private Types | |
template<typename Arg > | |
using | argument_is_args = std::is_same< intrinsic_t< Arg >, args > |
template<typename Arg > | |
using | argument_is_kwargs = std::is_same< intrinsic_t< Arg >, kwargs > |
using | indices = make_index_sequence< sizeof...(Args)> |
Private Member Functions | |
template<typename Return , typename Func , size_t... Is, typename Guard > | |
Return | call_impl (Func &&f, index_sequence< Is... >, Guard &&) && |
template<size_t... Is> | |
bool | load_impl_sequence (function_call &call, index_sequence< Is... >) |
Static Private Member Functions | |
static bool | load_impl_sequence (function_call &, index_sequence<>) |
Private Attributes | |
std::tuple< make_caster< Args >... > | argcasters |
Static Private Attributes | |
static constexpr auto | kwargs_pos = constexpr_last<argument_is_kwargs, Args...>() |
Helper class which loads arguments for C++ functions called from Python.
|
private |
|
private |
|
private |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inlinestaticprivate |
|
inlineprivate |
|
staticconstexpr |
|
private |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexprprivate |