Public Member Functions | |
mv2_from_python () | |
Static Public Member Functions | |
static void | construct (PyObject *obj, bp::converter::rvalue_from_python_stage1_data *data) |
static void * | convertible (PyObject *p) |
Here's the actual converter. Because we've separated the differences into the above functions, we can write a single template class that works for both matrix2 and vector2.
Definition at line 235 of file gaussian.cpp.
mv2_from_python< T, N >::mv2_from_python | ( | ) | [inline] |
Register the converter.
Definition at line 240 of file gaussian.cpp.
static void mv2_from_python< T, N >::construct | ( | PyObject * | obj, |
bp::converter::rvalue_from_python_stage1_data * | data | ||
) | [inline, static] |
Finish the conversion by initializing the C++ object into memory prepared by Boost.Python.
Definition at line 272 of file gaussian.cpp.
static void* mv2_from_python< T, N >::convertible | ( | PyObject * | p | ) | [inline, static] |
Test to see if we can convert this to the desired type; if not return zero. If we can convert, returned pointer can be used by construct().
Definition at line 252 of file gaussian.cpp.