Helper class which collects only positional arguments for a Python function call. More...
#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/cast.h>
Public Member Functions | |
template<typename... Ts> | |
simple_collector (Ts &&...values) | |
const tuple & | args () const & |
dict | kwargs () const |
tuple | args () && |
object | call (PyObject *ptr) const |
Call a Python function and pass the collected arguments. More... | |
template<typename... Ts> | |
simple_collector (Ts &&...values) | |
const tuple & | args () const & |
dict | kwargs () const |
tuple | args () && |
object | call (PyObject *ptr) const |
Call a Python function and pass the collected arguments. More... | |
Private Attributes | |
tuple | m_args |
Helper class which collects only positional arguments for a Python function call.
A fancier version below can collect any argument, but this one is optimal for simple calls.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Definition at line 1459 of file cast.h.
References simple_collector< policy >::m_args.
|
inline |
Definition at line 1461 of file cast.h.
References simple_collector< policy >::m_args.
|
inline |
Definition at line 1456 of file cast.h.
References simple_collector< policy >::m_args.
|
inline |
Definition at line 1458 of file cast.h.
References simple_collector< policy >::m_args.
|
inline |
Call a Python function and pass the collected arguments.
Definition at line 1462 of file cast.h.
References simple_collector< policy >::m_args, and handle::ptr().
|
inline |
Call a Python function and pass the collected arguments.
Definition at line 1464 of file cast.h.
References simple_collector< policy >::m_args, and handle::ptr().
|
inline |
|
inline |
|
private |
Definition at line 1471 of file cast.h.
Referenced by simple_collector< policy >::args(), and simple_collector< policy >::call().