Template class to define Python extensions. More...
#include <utils.h>

Public Member Functions | |
| PythonExtension () | |
| virtual | ~PythonExtension () |
Public Member Functions inherited from frepple::utils::PythonExtensionBase | |
| virtual PyObject * | call (const PythonObject &args, const PythonObject &kwds) |
| virtual int | compare (const PyObject *other) const |
| virtual PyObject * | getattro (const Attribute &attr) |
| Py_ssize_t | getReferenceCount () const |
| void | initType (const MetaClass *t) |
| void | initType (PyTypeObject *t) |
| virtual PyObject * | iternext () |
| PythonExtensionBase () | |
| void | resetReferenceCount () |
| virtual int | setattro (const Attribute &attr, const PythonObject &field) |
| virtual PyObject * | str () const |
| virtual | ~PythonExtensionBase () |
Static Public Member Functions | |
| static void | deallocator (PyObject *o) |
| static PythonType & | getType () |
Additional Inherited Members | |
Protected Member Functions inherited from frepple::utils::NonCopyable | |
| NonCopyable () | |
| ~NonCopyable () | |
Static Protected Member Functions inherited from frepple::utils::PythonExtensionBase | |
| static PythonType * | registerPythonType (int, const type_info *) |
Static Protected Attributes inherited from frepple::utils::PythonExtensionBase | |
| static vector< PythonType * > | table |
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
|
inlineexplicit |
|
inlinevirtual |
|
inlinestatic |
Free the memory.
See the note on the memory management in the class documentation for PythonExtensionBase.
|
inlinestatic |