PLearn 0.1
Static Public Member Functions
PLearn::ConvertFromPyObject< PPointable * > Struct Template Reference

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static PPointableconvert (PyObject *, bool print_traceback)

Detailed Description

template<>
struct PLearn::ConvertFromPyObject< PPointable * >

Definition at line 328 of file PythonObjectWrapper.h.


Member Function Documentation

PPointable * PLearn::ConvertFromPyObject< PPointable * >::convert ( PyObject *  pyobj,
bool  print_traceback 
) [static]

Definition at line 186 of file PythonObjectWrapper.cc.

References PLASSERT, and PLearn::PLPythonConversionError().

{
    PLASSERT(pyobj);
    if (! PyCObject_Check(pyobj))
        PLPythonConversionError("ConvertFromPyObject<PPointable*>", pyobj,
                                print_traceback);
    return static_cast<PPointable*>(PyCObject_AsVoidPtr(pyobj));
}

Here is the call graph for this function:


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