PLearn 0.1
Static Public Member Functions
PLearn::StaticConvertEnumToPyObject< T, is_enum > Struct Template Reference

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static PyObject * newPyObject (const T &x)

Detailed Description

template<typename T, bool is_enum>
struct PLearn::StaticConvertEnumToPyObject< T, is_enum >

Definition at line 1266 of file PythonObjectWrapper.h.


Member Function Documentation

template<typename T , bool is_enum>
static PyObject* PLearn::StaticConvertEnumToPyObject< T, is_enum >::newPyObject ( const T &  x) [inline, static]

Definition at line 1268 of file PythonObjectWrapper.h.

References PLERROR.

Referenced by PLearn::StaticConvertEnumToPyObject< T, true >::newPyObject().

    {
        PLERROR("Cannot convert type %s by value to python.",
                TypeTraits<T>::name().c_str());
        return 0;//shut up compiler
    }

Here is the caller graph for this function:


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