PLearn 0.1
Static Public Member Functions
PLearn::ConvertFromPyObject< T > Class Template Reference

Set of conversion functions from Python to C++. More...

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static T convert (PyObject *x, bool print_traceback)

Detailed Description

template<class T>
class PLearn::ConvertFromPyObject< T >

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.

Note:
For performance reasons, these functions DON'T acquire the Python Global Interpreter Lock (since it is assumed that there is no memory management involved in simply reading a Python object). This may be changed in the future.

Definition at line 226 of file PythonObjectWrapper.h.


Member Function Documentation

template<class T >
T PLearn::ConvertFromPyObject< T >::convert ( PyObject *  x,
bool  print_traceback 
) [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines