GEOSX
|
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... | |
A C++ functor wrapper around a Python function.
ARGS | A variadic parameter pack of types to call the function with. |
Definition at line 62 of file PyFunc.hpp.
|
inline |
create a PythonFunction around pyfunc
.
pyfunc | the Python function to wrap, a new reference is created. |
Definition at line 70 of file PyFunc.hpp.
|
inline |
Call the Python function with arguments args
.
args | The arguments to call the function with. |
Definition at line 80 of file PyFunc.hpp.