PLearn 0.1
|
Set of conversion functions from Python to C++. More...
#include <PythonObjectWrapper.h>
Static Public Member Functions | |
static T | convert (PyObject *x, bool print_traceback) |
Set of conversion functions from Python to C++.
This cannot be function templates since we cannot partial specialize them. Note that new C++ objects are created and the original PyObject is not touched. In particular, we never manipulate the PyObject reference count.
Definition at line 226 of file PythonObjectWrapper.h.
T PLearn::ConvertFromPyObject< T >::convert | ( | PyObject * | x, |
bool | print_traceback | ||
) | [static] |
Definition at line 1003 of file PythonObjectWrapper.h.
References x.
Referenced by PLearn::ConvertFromPyObject< std::map< T, U > >::convert(), PLearn::ConvertFromPyObject< T * >::convert(), PLearn::ConvertFromPyObject< std::pair< T, U > >::convert(), PLearn::ConvertFromPyObject< PP< T > >::convert(), PLearn::ConvertFromPyObject< TVec< T > >::convert(), and PLearn::ConvertFromPyObject< Array< T > >::convert().
{ return StaticConvertEnumFromPyObject<T, boost::is_enum<T>::value> ::convert(x, print_traceback); }