Template class to define Python extensions. More...
#include <utils.h>
Public Member Functions | |
| PythonExtension () | |
| virtual | ~PythonExtension () |
Static Public Member Functions | |
| static void | deallocator (PyObject *o) |
| static PythonType & | getType () |
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 3268 of file utils.h.
| frepple::utils::PythonExtension< T >::PythonExtension | ( | ) | [inline, explicit] |
| virtual frepple::utils::PythonExtension< T >::~PythonExtension | ( | ) | [inline, virtual] |
| 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.
| static PythonType& frepple::utils::PythonExtension< T >::getType | ( | ) | [inline, static] |
1.6.1