|
LvArray
|
A C++ functor wrapper around a Python function. More...
#include <PyFunc.hpp>
Public Member Functions | |
| PythonFunction (PyObject *pyfunc) | |
create a PythonFunction around pyfunc. More... | |
| void | operator() (ARGS ... args) |
Call the Python function with arguments args. More... | |
Private Attributes | |
| PyObjectRef | m_function |
| A reference to the wrapped python function. | |
A C++ functor wrapper around a Python function.
| ARGS | A variadic parameter pack of types to call the function with. |
|
inline |
create a PythonFunction around pyfunc.
| pyfunc | the Python function to wrap, a new reference is created. |
|
inline |
Call the Python function with arguments args.
| args | The arguments to call the function with. |
1.8.13