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

#include <PythonObjectWrapper.h>

List of all members.

Static Public Member Functions

static PyObject * newPyObject (const bool &x)

Detailed Description

template<>
struct PLearn::ConvertToPyObject< bool >

***///***

Definition at line 543 of file PythonObjectWrapper.h.


Member Function Documentation

PyObject * PLearn::ConvertToPyObject< bool >::newPyObject ( const bool x) [static]

Definition at line 785 of file PythonObjectWrapper.cc.

{
    if (x) {
        Py_XINCREF(Py_True);
        return Py_True;
    }
    else {
        Py_XINCREF(Py_False);
        return Py_False;
    }
}

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