frepple::utils::PythonExtension< T > Class Template Reference

Template class to define Python extensions. More...

#include <utils.h>

Inheritance diagram for frepple::utils::PythonExtension< T >:

List of all members.

Public Member Functions

 PythonExtension ()
virtual ~PythonExtension ()

Static Public Member Functions

static void deallocator (PyObject *o)
static PythonTypegetType ()

Detailed Description

template<class T>
class frepple::utils::PythonExtension< T >

Template class to define Python extensions.

The template argument should be your extension class, inheriting from this template class: class MyClass : PythonExtension<MyClass>

The structure of the C++ wrappers around the C Python API is heavily inspired on the design of PyCXX.
More information can be found on http://cxx.sourceforge.net

Definition at line 3092 of file utils.h.


Constructor & Destructor Documentation

template<class T>
frepple::utils::PythonExtension< T >::PythonExtension ( ) [inline, explicit]

Constructor.

Definition at line 3096 of file utils.h.

template<class T>
virtual frepple::utils::PythonExtension< T >::~PythonExtension ( ) [inline, virtual]

Destructor.

Definition at line 3102 of file utils.h.


Member Function Documentation

template<class T>
static void frepple::utils::PythonExtension< T >::deallocator ( PyObject *  o) [inline, static]

Free the memory.
See the note on the memory management in the class documentation for PythonExtensionBase.

Definition at line 3123 of file utils.h.

template<class T>
static PythonType& frepple::utils::PythonExtension< T >::getType ( ) [inline, static]

This method keeps the type information object for your extension.

Definition at line 3105 of file utils.h.


The documentation for this class was generated from the following file:

Documentation generated for frePPLe by  doxygen