PLearn 0.1
Static Public Member Functions
PLearn::ConvertToPyObject< PythonObjectWrapper > Struct Template Reference

For a general PythonObjectWrapper: we simply increment the refcount to the underlying Python object, no matter whether we own it or not. More...

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static PyObject * newPyObject (const PythonObjectWrapper &pow)

Detailed Description

template<>
struct PLearn::ConvertToPyObject< PythonObjectWrapper >

For a general PythonObjectWrapper: we simply increment the refcount to the underlying Python object, no matter whether we own it or not.

Definition at line 708 of file PythonObjectWrapper.h.


Member Function Documentation

PyObject * PLearn::ConvertToPyObject< PythonObjectWrapper >::newPyObject ( const PythonObjectWrapper pow) [static]

Definition at line 887 of file PythonObjectWrapper.cc.

References PLearn::PythonObjectWrapper::m_object.

{
    Py_XINCREF(pow.m_object);
    return pow.m_object;
}

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