|
resonance 1.0.1
|
Base of an extension module the binding registers with the interpreter. More...
#include <extensionmodulebase.h>

Public Member Functions | |
| ExtensionModuleBase (const char *pszName) | |
| Record the module name and start an empty method table. | |
| virtual | ~ExtensionModuleBase () |
| Release the method table and the name. | |
Protected Member Functions | |
| void | initialize (const char *pszModuleDoc) |
| Register the module with the interpreter. | |
Protected Attributes | |
| const HxStr | mModuleName |
| The module name. | |
| MethodTable | mMethodTable |
| The methods to register. | |
Base of an extension module the binding registers with the interpreter.
Its RTTI descriptor is at 0x0086f650. It has no base. Its accessor is at 0x005aba10.
The object is 0x20 bytes, the module name at +0x00, the method table at +0x08, and the vptr after both at +0x1c. The vtable at 0x008331f8 has two entries, the type function and the destructor. Released PyCXX also stores the qualified module name and declares the method invokers as pure virtual members, and neither is present in the image.
The game does not use the class for its hx module, because InitHxModule() at 0x005597b8 drives Py_InitModule4() directly from a Py::MethodTable rather than through a module object. No routine of the image constructs one.
|
explicit |
Record the module name and start an empty method table.
| pszName | The module name. |
|
virtual |
Release the method table and the name.
|
protected |
Register the module with the interpreter.
The module's self is a new Py::ExtensionModuleBasePtr pointing back at this object.
| pszModuleDoc | The module doc string. |
|
protected |
The module name.
|
protected |
The methods to register.