Helper class which loads arguments for C++ functions called from Python. More...
#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/cast.h>
Public Member Functions | |
bool | load_args (function_call &call) |
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) |
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) && |
Static Public Attributes | |
static constexpr bool | has_kwargs = kwargs_pos != -1 |
static constexpr int | args_pos = constexpr_last<argument_is_args, Args...>() |
static constexpr auto | arg_names = concat(type_descr(make_caster<Args>::name)...) |
Private Types | |
using | indices = make_index_sequence< sizeof...(Args)> |
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)> |
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 > |
Private Member Functions | |
template<size_t... Is> | |
bool | load_impl_sequence (function_call &call, index_sequence< Is... >) |
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... >) |
template<typename Return , typename Func , size_t... Is, typename Guard > | |
Return | call_impl (Func &&f, index_sequence< Is... >, Guard &&) && |
Static Private Member Functions | |
static bool | load_impl_sequence (function_call &, index_sequence<>) |
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 |
|
private |
|
private |
|
private |
|
inline |
Definition at line 1408 of file cast.h.
References argument_loader< Args >::call_impl().
Referenced by argument_loader< Args >::load_args(), and argument_loader< Args >::load_impl_sequence().
|
inline |
Definition at line 1414 of file cast.h.
References argument_loader< Args >::call_impl().
|
inline |
Definition at line 1410 of file cast.h.
References argument_loader< Args >::call_impl().
|
inline |
Definition at line 1416 of file cast.h.
References argument_loader< Args >::call_impl().
|
inlineprivate |
Definition at line 1440 of file cast.h.
References argument_loader< Args >::argcasters.
Referenced by argument_loader< Args >::call().
|
inlineprivate |
Definition at line 1442 of file cast.h.
References argument_loader< Args >::argcasters.
|
inline |
Definition at line 1404 of file cast.h.
References argument_loader< Args >::call(), and argument_loader< Args >::load_impl_sequence().
|
inline |
Definition at line 1406 of file cast.h.
References argument_loader< Args >::call(), and argument_loader< Args >::load_impl_sequence().
|
inlinestaticprivate |
Definition at line 1421 of file cast.h.
Referenced by argument_loader< Args >::load_args().
|
inlinestaticprivate |
|
inlineprivate |
Definition at line 1424 of file cast.h.
References argument_loader< Args >::argcasters, and argument_loader< Args >::call().
|
inlineprivate |
Definition at line 1426 of file cast.h.
References argument_loader< Args >::argcasters, and argument_loader< Args >::call().
|
staticconstexpr |
|
private |
Definition at line 1444 of file cast.h.
Referenced by argument_loader< Args >::call_impl(), and argument_loader< Args >::load_impl_sequence().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexprprivate |