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

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static bool convert (PyObject *, bool print_traceback)

Detailed Description

template<>
struct PLearn::ConvertFromPyObject< bool >

Definition at line 239 of file PythonObjectWrapper.h.


Member Function Documentation

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

Definition at line 103 of file PythonObjectWrapper.cc.

References PLASSERT.

{
    PLASSERT( pyobj );
    return PyObject_IsTrue(pyobj) != 0;
}

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