LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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.