frepple::utils::PythonExtension< T > Class Template Reference
Template class to define Python extensions. More...
#include <utils.h>
Inheritance diagram for frepple::utils::PythonExtension< T >:

Public Member Functions | |
PythonExtension () | |
virtual | ~PythonExtension () |
Static Public Member Functions | |
static void | deallocator (PyObject *o) |
static PythonType & | getType () |
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 3255 of file utils.h.
Constructor & Destructor Documentation
template<class T>
frepple::utils::PythonExtension< T >::PythonExtension | ( | ) | [inline, explicit] |
template<class T>
virtual frepple::utils::PythonExtension< T >::~PythonExtension | ( | ) | [inline, virtual] |
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.
template<class T>
static PythonType& frepple::utils::PythonExtension< T >::getType | ( | ) | [inline, static] |
The documentation for this class was generated from the following file:
Documentation generated for frePPLe by
