|
static PyObject * | toPython (T const &input) |
| Convert a C++ object to a new Python object. More...
|
|
static PyTypeObject const * | getPyType () |
| Return the Python TypeObject that corresponds to the object the toPython() function returns. More...
|
|
static bool | fromPythonStage1 (PyPtr &p) |
| Check if a Python object is convertible to T and optionally begin the conversion by replacing the input with an intermediate. More...
|
|
static bool | fromPythonStage2 (PyPtr const &p, T &output) |
| Complete a Python to C++ conversion begun with fromPythonStage1(). More...
|
|
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...
|
|
template<typename T>
struct ndarray::PyConverter< T >
A class providing Python conversion functions for T.
Undocumented specializations exist for bool, int, long, float, double, std::complex, and std::string.
Definition at line 50 of file PyConverter.h.