PLearn 0.1
Static Public Member Functions
PLearn::StaticConvertEnumFromPyObject< U, is_enum > Struct Template Reference

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static U convert (PyObject *x, bool print_traceback)

Detailed Description

template<class U, bool is_enum>
struct PLearn::StaticConvertEnumFromPyObject< U, is_enum >

Definition at line 982 of file PythonObjectWrapper.h.


Member Function Documentation

template<class U, bool is_enum>
static U PLearn::StaticConvertEnumFromPyObject< U, is_enum >::convert ( PyObject *  x,
bool  print_traceback 
) [inline, static]

Definition at line 984 of file PythonObjectWrapper.h.

References PLERROR.

Referenced by PLearn::StaticConvertEnumFromPyObject< U, true >::convert().

    {
        PLERROR("Cannot convert this object by value from python (type=%s).",
                TypeTraits<U>::name().c_str());
        return U();//to silence 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