resonance 1.0.1
Loading...
Searching...
No Matches
Py::MethodDefExt< T > Class Template Reference

Method record of an extension type, keyed by name in PythonExtension::methods(). More...

#include <methoddefext.h>

Inheritance diagram for Py::MethodDefExt< T >:
Collaboration diagram for Py::MethodDefExt< T >:

Public Attributes

PyMethodDef mExtMethodDef
 The record handed to the interpreter.

Detailed Description

template<typename T>
class Py::MethodDefExt< T >

Method record of an extension type, keyed by name in PythonExtension::methods().

The class does not emit an RTTI descriptor. The name is therefore released PyCXX's rather than the image's. PythonExtension::getattr_methods() at 0x005ad5e0 hands PyCFunction_New() the record 0x10 bytes in, past the inherited PyMethodDef. The offset places the member below. Released PyCXX follows the member with the C++ member pointers the call handlers dispatch through. The image does not register a method on any extension type, and the member pointers are not reconstructed.

Template Parameters
TThe extension type.

Member Data Documentation

◆ mExtMethodDef

template<typename T>
PyMethodDef Py::MethodDefExt< T >::mExtMethodDef

The record handed to the interpreter.


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