LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
#include <PyConverter.h>
Static Public Member Functions | |
static bool | matches (PyObject *arg) |
Check if a Python object might be convertible to T. More... | |
static int | fromPython (PyObject *arg, T *output) |
Convert a Python object to a C++ object. More... | |
Definition at line 59 of file PyConverter.h.
|
inlinestatic |
Convert a Python object to a C++ object.
fromPython() is appropriate for use with the PyArg_ParseX Python C-API functions as a "O&" converter function.
Definition at line 98 of file PyConverter.h.
|
inlinestatic |
Check if a Python object might be convertible to T.
This is mostly useful for wrapper generators like SWIG or Boost.Python, which could use matches() to check if an Python arguments match a particular signature for an overloaded C++ function.
Definition at line 75 of file PyConverter.h.