Library of Assembled Shared Sources
|
Defining Python modules from C++ with classes, functions, and enums.
This module provides helper classes and macros to define Python modules that can contain C++ classes, functions, enums, and other objects exported to Python.
A Python module can contain:
To create a Python module, you typically use macros that work with ModuleDefinition:
The ModuleDefinition class is typically not used directly. Instead, use the provided macros in pyobject_macros.h that work with ModuleDefinition instances.
Data Structures | |
class | lass::python::ModuleDefinition |
Definition of a Python module. More... | |
Module Declaration Macros | |
These macros declare and define ModuleDefinition objects that represent Python modules. They create the fundamental module object that serves as the container for all exported functions, classes, and constants. | |
#define | PY_DECLARE_MODULE_NAME_DOC(i_module, s_name, s_doc) |
Declare and define a ModuleDefinition object representing a Python module. | |
#define | PY_DECLARE_MODULE_NAME(i_module, s_name) |
Declare a module with name only (no documentation). | |
#define | PY_DECLARE_MODULE_DOC(i_module, s_doc) |
Declare a module with documentation, using the identifier as the module name. | |
#define | PY_DECLARE_MODULE(i_module) |
Declare a module with minimal setup (name derived from identifier, no documentation). | |
Module Entrypoint and Injection Macros | |
These macros handle module initialization, injection, and extension module creation. They manage the Python module lifecycle from creation to registration with the Python interpreter. If you're building a Python extension module (a .pyd or .so file), you will typically use the entrypoint macros to create the required // Declare module
// Add functions and classes
// ...
// Create module entrypoint for Python extension
PY_MODULE_ENTRYPOINT(mymodule)
The injection macros are more low-level and can be used to create modules at runtime to be registered with an embedded Python interpreter. | |
#define | PY_MODULE_ENTRYPOINT_NAME(i_module, i_name) |
Create a PyInit_* Python module initialization function with custom name. | |
#define | PY_MODULE_ENTRYPOINT(i_module) |
Create a Python module initialization function using the module identifier as the function name. | |
#define | PY_INJECT_MODULE(i_module) |
Inject a Python module so Python becomes aware of it. | |
#define | PY_INJECT_MODULE_EX(i_module, s_moduleName, s_doc) |
#define | PY_INJECT_MODULE_NAME(i_module, s_moduleName) |
#define | PY_INJECT_MODULE_DOC(i_module, s_doc) |
#define | PY_EXTENSION_MODULE_DOC(i_module, f_injection, s_doc) |
Create an extension module with documentation. | |
#define | PY_EXTENSION_MODULE(i_module, f_injection) |
Create an extension module (no documentation). | |
#define | PY_EXTENSION_MODULE_EX(i_module, f_injection, s_doc) |
Inject a python module so Python is aware of it and produce all necessary code so a module can be used as extension of Python. | |
Module Constants and Objects Macros | |
These macros add constants, variables, and arbitrary Python objects to modules. They provide different approaches for exposing C++ values and objects to Python. | |
#define | PY_MODULE_INTEGER_CONSTANT(i_module, s_name, s_value) |
Add an integer constant to a Python module. | |
#define | PY_MODULE_STRING_CONSTANT(i_module, s_name, s_value) |
Add a string constant to a Python module. | |
#define | PY_INJECT_OBJECT_IN_MODULE_EX(o_object, i_module, s_objectName) |
Inject an arbitrary object into an already created module at runtime. | |
#define | PY_INJECT_OBJECT_IN_MODULE(o_object, i_module) |
Inject an object using its C++ identifier as the Python name. | |
#define | PY_MODULE_ADD_INTEGER_CONSTANT(i_module, s_name, v_value) |
#define | PY_MODULE_ADD_STRING_CONSTANT(i_module, s_name, s_value) |
Basic Function Export Macros | |
These macros export C++ functions to Python with automatic type deduction and wrapper generation. Use these for simple function exports where overloading is not an issue and automatic type deduction is sufficient. | |
#define | PY_MODULE_PY_FUNCTION_EX(i_module, f_cppFunction, s_functionName, s_doc) |
Export a C++ function to Python without automatic wrapper generation. | |
#define | PY_MODULE_FUNCTION_EX(i_module, f_cppFunction, s_functionName, s_doc, i_dispatcher) |
Export a C++ free function to Python with full control over overloading. | |
#define | PY_MODULE_FUNCTION_NAME_DOC(i_module, f_cppFunction, s_name, s_doc) |
Export a C++ free function to Python with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_NAME(i_module, f_cppFunction, s_name) |
Export a C++ free function to Python with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_DOC(i_module, f_cppFunction, s_doc) |
Export a C++ free function to Python using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION(i_module, f_cppFunction) |
Export a C++ free function to Python using the C++ function name (no documentation). | |
Function Cast Export Macros (Deprecated) | |
These macros export C++ functions to Python with explicit type casting and support for default parameters. They create wrapper functions that handle type conversions and allow exporting functions with default parameters by omitting trailing parameters. | |
#define | PY_MODULE_FUNCTION_CAST_EX_0(i_module, f_cppFunction, t_return, s_functionName, s_doc, i_dispatcher) |
Exports a C++ free functions to Python with on the fly casting on return type and parameters, including omission of default parameters. | |
#define | PY_MODULE_FUNCTION_CAST_EX_1(i_module, f_cppFunction, t_return, t_P1, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_EX_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_functionName, s_doc, i_dispatcher) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_0(i_module, f_cppFunction, t_return, t_params, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_1(i_module, f_cppFunction, t_return, t_P1, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_DOC_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_functionName, s_doc) |
#define | PY_MODULE_FUNCTION_CAST_NAME_0(i_module, f_cppFunction, t_return, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_1(i_module, f_cppFunction, t_return, t_P1, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_functionName) |
#define | PY_MODULE_FUNCTION_CAST_NAME_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_functionName) |
Type-Qualified Function Export Macros | |
These macros export C++ functions to Python with explicit type qualification to resolve function overload ambiguities. They provide fine-grained control over function signatures and are essential when exporting overloaded functions that would otherwise be ambiguous. The macros are organized in layers:
| |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX(i_module, f_cppFunction, t_return, t_params, s_functionName, s_doc, i_dispatcher) |
Export a C++ free function to Python with explicit type qualification to resolve ambiguities. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_0(i_module, f_cppFunction, t_return, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 0-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_1(i_module, f_cppFunction, t_return, t_P1, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 1-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 2-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 3-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 4-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 5-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 6-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 7-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 8-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 9-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 10-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 11-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 12-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 13-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 14-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_EX_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_functionName, s_doc, i_dispatcher) |
Export a C++ function with type qualification for 15-parameter functions with full control. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC(i_module, f_cppFunction, t_return, t_params, s_functionName, s_doc) |
Export a C++ function with type qualification and custom name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_0(i_module, f_cppFunction, t_return, t_params, s_functionName, s_doc) |
Export a C++ function with type qualification for 0-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_1(i_module, f_cppFunction, t_return, t_P1, s_functionName, s_doc) |
Export a C++ function with type qualification for 1-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_functionName, s_doc) |
Export a C++ function with type qualification for 2-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_functionName, s_doc) |
Export a C++ function with type qualification for 3-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_functionName, s_doc) |
Export a C++ function with type qualification for 4-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_functionName, s_doc) |
Export a C++ function with type qualification for 5-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_functionName, s_doc) |
Export a C++ function with type qualification for 6-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_functionName, s_doc) |
Export a C++ function with type qualification for 7-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_functionName, s_doc) |
Export a C++ function with type qualification for 8-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_functionName, s_doc) |
Export a C++ function with type qualification for 9-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_functionName, s_doc) |
Export a C++ function with type qualification for 10-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_functionName, s_doc) |
Export a C++ function with type qualification for 11-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_functionName, s_doc) |
Export a C++ function with type qualification for 12-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_functionName, s_doc) |
Export a C++ function with type qualification for 13-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_functionName, s_doc) |
Export a C++ function with type qualification for 14-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_functionName, s_doc) |
Export a C++ function with type qualification for 15-parameter functions with custom name and documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME(i_module, f_cppFunction, t_return, t_params, s_functionName) |
Export a C++ function with type qualification and custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_0(i_module, f_cppFunction, t_return, s_functionName) |
Export a C++ function with type qualification for 0-parameter functions and custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_1(i_module, f_cppFunction, t_return, t_P1, s_functionName) |
Export a C++ function with type qualification for 1-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_functionName) |
Export a C++ function with type qualification for 2-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_functionName) |
Export a C++ function with type qualification for 3-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_functionName) |
Export a C++ function with type qualification for 4-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_functionName) |
Export a C++ function with type qualification for 5-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_functionName) |
Export a C++ function with type qualification for 6-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_functionName) |
Export a C++ function with type qualification for 7-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_functionName) |
Export a C++ function with type qualification for 8-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_functionName) |
Export a C++ function with type qualification for 9-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_functionName) |
Export a C++ function with type qualification for 10-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_functionName) |
Export a C++ function with type qualification for 11-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_functionName) |
Export a C++ function with type qualification for 12-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_functionName) |
Export a C++ function with type qualification for 13-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_functionName) |
Export a C++ function with type qualification for 14-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_NAME_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_functionName) |
Export a C++ function with type qualification for 15-parameter functions with custom name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC(i_module, f_cppFunction, t_return, t_params, s_doc) |
Export a C++ function with type qualification using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_0(i_module, f_cppFunction, t_return, s_doc) |
Export a C++ function with type qualification for 0-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_1(i_module, f_cppFunction, t_return, t_P1, s_doc) |
Export a C++ function with type qualification for 1-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_2(i_module, f_cppFunction, t_return, t_P1, t_P2, s_doc) |
Export a C++ function with type qualification for 2-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, s_doc) |
Export a C++ function with type qualification for 3-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, s_doc) |
Export a C++ function with type qualification for 4-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, s_doc) |
Export a C++ function with type qualification for 5-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, s_doc) |
Export a C++ function with type qualification for 6-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, s_doc) |
Export a C++ function with type qualification for 7-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, s_doc) |
Export a C++ function with type qualification for 8-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, s_doc) |
Export a C++ function with type qualification for 9-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, s_doc) |
Export a C++ function with type qualification for 10-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, s_doc) |
Export a C++ function with type qualification for 11-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, s_doc) |
Export a C++ function with type qualification for 12-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, s_doc) |
Export a C++ function with type qualification for 13-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, s_doc) |
Export a C++ function with type qualification for 14-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED_DOC_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15, s_doc) |
Export a C++ function with type qualification for 15-parameter functions using the C++ function name with documentation. | |
#define | PY_MODULE_FUNCTION_QUALIFIED(i_module, f_cppFunction, t_return, t_params) |
Export a C++ function with type qualification using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_0(i_module, f_cppFunction, t_return) |
Export a C++ function with type qualification for 0-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_1(i_module, f_cppFunction, t_return, t_P1) |
Export a C++ function with type qualification for 1-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_2(i_module, f_cppFunction, t_return, t_P1, t_P2) |
Export a C++ function with type qualification for 2-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_3(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3) |
Export a C++ function with type qualification for 3-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_4(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4) |
Export a C++ function with type qualification for 4-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_5(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5) |
Export a C++ function with type qualification for 5-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_6(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6) |
Export a C++ function with type qualification for 6-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_7(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7) |
Export a C++ function with type qualification for 7-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_8(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8) |
Export a C++ function with type qualification for 8-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_9(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9) |
Export a C++ function with type qualification for 9-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_10(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10) |
Export a C++ function with type qualification for 10-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_11(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11) |
Export a C++ function with type qualification for 11-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_12(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12) |
Export a C++ function with type qualification for 12-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_13(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13) |
Export a C++ function with type qualification for 13-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_14(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14) |
Export a C++ function with type qualification for 14-parameter functions using the C++ function name (no documentation). | |
#define | PY_MODULE_FUNCTION_QUALIFIED_15(i_module, f_cppFunction, t_return, t_P1, t_P2, t_P3, t_P4, t_P5, t_P6, t_P7, t_P8, t_P9, t_P10, t_P11, t_P12, t_P13, t_P14, t_P15) |
Export a C++ function with type qualification for 15-parameter functions using the C++ function name (no documentation). | |
Class Integration | |
Macros to add Python classes to modules. These macros integrate class definitions with module definitions, making the classes available as types within the module namespace. Classes must first be declared using PY_DECLARE_CLASS_* macros before they can be added to modules. | |
#define | PY_INJECT_CLASS_IN_MODULE(t_cppClass, i_module, s_doc) |
Inject a class into a module at runtime (deprecated). | |
#define | PY_MODULE_CLASS(i_module, t_cppClass) |
Add a Python class to a module. | |
#define PY_DECLARE_MODULE_NAME_DOC | ( | i_module, | |
s_name, | |||
s_doc ) |
Declare and define a ModuleDefinition object representing a Python module.
Creates a ModuleDefinition instance that can be used to build a Python module with the specified name and documentation.
i_module | Identifier of the module to be used in C++ (must be unscoped identifier for token concatenation) |
s_name | Python module name (const char* string, will be copied and stored internally) |
s_doc | Optional module documentation string (const char* string, will be copied and stored internally, or nullptr) |
Definition at line 88 of file pyobject_macros.h.
#define PY_DECLARE_MODULE_NAME | ( | i_module, | |
s_name ) |
Declare a module with name only (no documentation).
Convenience macro that wraps PY_DECLARE_MODULE_NAME_DOC() with s_doc = nullptr.
i_module | Identifier of the module to be used as C++ variable name (must be valid C++ identifier) |
s_name | Python module name (const char* string, will be copied and stored internally) |
Definition at line 98 of file pyobject_macros.h.
#define PY_DECLARE_MODULE_DOC | ( | i_module, | |
s_doc ) |
Declare a module with documentation, using the identifier as the module name.
Convenience macro that wraps PY_DECLARE_MODULE_NAME_DOC() with s_name derived from i_module.
i_module | Identifier of the module (also used as Python module name) |
s_doc | Module documentation string (const char* string, will be copied and stored internally) |
Definition at line 108 of file pyobject_macros.h.
#define PY_DECLARE_MODULE | ( | i_module | ) |
Declare a module with minimal setup (name derived from identifier, no documentation).
Convenience macro that wraps PY_DECLARE_MODULE_NAME_DOC() with defaults.
i_module | Identifier of the module (also used as Python module name) |
Definition at line 117 of file pyobject_macros.h.
#define PY_MODULE_ENTRYPOINT_NAME | ( | i_module, | |
i_name ) |
Create a PyInit_*
Python module initialization function with custom name.
Generates the PyInit_*
function required for Python extension modules. This function will be called by Python when the module is imported.
i_module | Module identifier declared with PY_DECLARE_MODULE_* |
i_name | Name for the initialization function (PyInit_<i_name> will be generated) |
Definition at line 162 of file pyobject_macros.h.
#define PY_MODULE_ENTRYPOINT | ( | i_module | ) |
Create a Python module initialization function using the module identifier as the function name.
Convenience macro that wraps PY_MODULE_ENTRYPOINT_NAME() with i_name = i_module.
i_module | Module identifier (used for both module reference and function name) |
Definition at line 171 of file pyobject_macros.h.
#define PY_INJECT_MODULE | ( | i_module | ) |
Inject a Python module so Python becomes aware of it.
Creates the actual Python module object with all accumulated definitions (functions, classes, enums, constants). This should be done at runtime, typically in your main() function or during Python initialization.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
Definition at line 182 of file pyobject_macros.h.
#define PY_INJECT_MODULE_EX | ( | i_module, | |
s_moduleName, | |||
s_doc ) |
Definition at line 189 of file pyobject_macros.h.
#define PY_INJECT_MODULE_NAME | ( | i_module, | |
s_moduleName ) |
Definition at line 198 of file pyobject_macros.h.
#define PY_INJECT_MODULE_DOC | ( | i_module, | |
s_doc ) |
Definition at line 206 of file pyobject_macros.h.
#define PY_EXTENSION_MODULE_DOC | ( | i_module, | |
f_injection, | |||
s_doc ) |
Create an extension module with documentation.
Convenience macro that wraps PY_EXTENSION_MODULE_EX() with s_doc parameter.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_injection | Injection function to call during module creation |
s_doc | Module documentation string (const char* string with static storage duration) |
Definition at line 239 of file pyobject_macros.h.
#define PY_EXTENSION_MODULE | ( | i_module, | |
f_injection ) |
Create an extension module (no documentation).
Convenience macro that wraps PY_EXTENSION_MODULE_EX() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_injection | Injection function to call during module creation |
Definition at line 249 of file pyobject_macros.h.
#define PY_MODULE_INTEGER_CONSTANT | ( | i_module, | |
s_name, | |||
s_value ) |
Add an integer constant to a Python module.
The constant will be added to the module during module creation (at injection time). This is executed before main(), so the constant is available when the module is created.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
s_name | Name of constant as shown in the module (const char* string with static storage duration) |
s_value | Integer value of the constant (long) |
Definition at line 275 of file pyobject_macros.h.
#define PY_MODULE_STRING_CONSTANT | ( | i_module, | |
s_name, | |||
s_value ) |
Add a string constant to a Python module.
The constant will be added to the module during module creation (at injection time). This is executed before main(), so the constant is available when the module is created.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
s_name | Name of constant as shown in the module (const char* string with static storage duration) |
s_value | String value of the constant (const char* string with static storage duration) |
Definition at line 292 of file pyobject_macros.h.
#define PY_INJECT_OBJECT_IN_MODULE_EX | ( | o_object, | |
i_module, | |||
s_objectName ) |
Inject an arbitrary object into an already created module at runtime.
This performs immediate injection into the module namespace, unlike the PY_MODULE_*_CONSTANT macros which defer injection until module creation. Must be called after the module has been injected with PY_INJECT_MODULE.
o_object | Object/variable to be injected (will be converted to Python object) |
i_module | Module identifier of an already injected module |
s_objectName | Name of object as shown in the module (const char* string with static storage duration) |
Definition at line 310 of file pyobject_macros.h.
#define PY_INJECT_OBJECT_IN_MODULE | ( | o_object, | |
i_module ) |
Inject an object using its C++ identifier as the Python name.
Convenience macro that wraps PY_INJECT_OBJECT_IN_MODULE_EX() with s_objectName derived from o_object.
o_object | Object/variable to be injected (name will be used as Python name) |
i_module | Module identifier of an already injected module |
Definition at line 322 of file pyobject_macros.h.
#define PY_MODULE_ADD_INTEGER_CONSTANT | ( | i_module, | |
s_name, | |||
v_value ) |
This performs immediate injection, unlike PY_MODULE_INTEGER_CONSTANT which registers the constant for inclusion during module creation.
i_module | Module identifier of an already injected module |
s_name | Name of constant as shown in the module (const char* string with static storage duration) |
v_value | Integer value of the constant (long) |
Definition at line 338 of file pyobject_macros.h.
#define PY_MODULE_ADD_STRING_CONSTANT | ( | i_module, | |
s_name, | |||
s_value ) |
This performs immediate injection, unlike PY_MODULE_STRING_CONSTANT which registers the constant for inclusion during module creation.
i_module | Module identifier of an already injected module |
s_name | Name of constant as shown in the module (const char* string with static storage duration) |
s_value | String value of the constant (const char* string with static storage duration) |
Definition at line 356 of file pyobject_macros.h.
#define PY_MODULE_PY_FUNCTION_EX | ( | i_module, | |
f_cppFunction, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function to Python without automatic wrapper generation.
Use this macro for backward compatibility when wrapper functions don't need to be automatically generated or you want specific Python behavior.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (must already be a PyCFunction) |
s_functionName | Python function name |
s_doc | Function documentation string |
Definition at line 388 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_EX | ( | i_module, | |
f_cppFunction, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ free function to Python with full control over overloading.
This is the most flexible function export macro, allowing manual dispatcher naming for creating overloaded Python functions. Multiple C++ functions can be exported with the same Python name to create overloaded functions.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration, or nullptr) |
i_dispatcher | Unique name for the generated dispatcher function (must be unscoped identifier for token concatenation) |
Use this macro to export functions to Python. You can create overloaded Python functions by exporting multiple C++ functions with the same s_functionName.
Definition at line 431 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_NAME_DOC | ( | i_module, | |
f_cppFunction, | |||
s_name, | |||
s_doc ) |
Export a C++ free function to Python with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_EX() with auto-generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export |
s_name | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration, or nullptr) |
Definition at line 464 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_NAME | ( | i_module, | |
f_cppFunction, | |||
s_name ) |
Export a C++ free function to Python with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_NAME_DOC() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export |
s_name | Python function name (const char* string with static storage duration) |
Definition at line 476 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_DOC | ( | i_module, | |
f_cppFunction, | |||
s_doc ) |
Export a C++ free function to Python using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_NAME_DOC() with s_name derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (name will be used as Python name) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 487 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION | ( | i_module, | |
f_cppFunction ) |
Export a C++ free function to Python using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_NAME_DOC() with defaults.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (name will be used as Python name) |
Definition at line 497 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Exports a C++ free functions to Python with on the fly casting on return type and parameters, including omission of default parameters.
i_module | the module object |
f_cppFunction | the name of the function in C++ |
t_return | the return type of f_cppFunction |
t_params | a lass::meta::TypeTuple of the parameter types of f_cppFunction |
s_functionName | the name the method will have in Python |
s_doc | documentation of function as shown in Python (zero terminated C string) |
i_dispatcher | A unique name of the static C++ dispatcher function to be generated. This name will be used for the names of automatic generated variables and functions and should be unique |
You can use this macro instead of PY_MODULE_FUNCTION_EX if you want to use for instance the default parameters of the C++ definition of f_cppFunction. This macro can also help you to resolve ambiguities althought the PY_MODULE_QUALIFIED_EX is the preferred macro for doing that.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (0 parameters) |
t_return | Return type of the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 562 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 584 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 606 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 628 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 650 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 672 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 694 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 716 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 738 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 760 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 782 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 804 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 826 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 848 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 870 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_EX_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 892 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (0 parameters) |
t_return | Return type of the function (for explicit casting) |
t_params | Parameter types as lass::meta::TypeTuple (for explicit casting - should be empty TypeTuple<>) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 914 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 931 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 948 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 965 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 982 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 999 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1016 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1033 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1050 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1067 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1084 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1101 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1118 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1135 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1152 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_DOC_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_functionName, | |||
s_doc ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1169 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (0 parameters) |
t_return | Return type of the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1186 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1201 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1216 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1231 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1246 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1261 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1276 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1291 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1306 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1321 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1336 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1351 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1366 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1381 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1396 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_CAST_NAME_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_functionName ) |
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters) |
t_return | Return type of the function (for explicit casting) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for explicit casting) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 1411 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ free function to Python with explicit type qualification to resolve ambiguities.
Use this macro instead of PY_MODULE_FUNCTION_EX when there are overloaded C++ functions that would create ambiguity. By explicitly specifying return type and parameter types, you can disambiguate which overload to export.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_params | Parameter types as lass::meta::TypeTuple (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration, or nullptr) |
i_dispatcher | Unique name for the generated dispatcher function (must be unscoped identifier for token concatenation) |
This macro helps resolve function overload ambiguities by explicitly specifying the function signature to export.
Definition at line 1471 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 0-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with 0 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (0 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1512 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 1-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 1 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1528 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 2-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 2 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1548 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 3-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 3 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1568 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 4-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 4 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1588 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 5-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 5 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1608 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 6-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 6 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1628 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 7-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 7 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1648 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 8-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 8 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1668 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 9-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 9 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1688 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 10-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 10 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1708 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 11-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 11 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1728 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 12-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 12 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1748 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 13-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 13 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1768 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 14-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 14 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1788 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_EX_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_functionName, | |||
s_doc, | |||
i_dispatcher ) |
Export a C++ function with type qualification for 15-parameter functions with full control.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() for functions with exactly 15 parameters.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
i_dispatcher | Unique identifier for the function dispatcher |
Definition at line 1808 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification and custom name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_params | Parameter types as lass::meta::TypeTuple (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1828 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 0-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_0() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (0 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_params | Parameter types as lass::meta::TypeTuple (for disambiguation - should be empty TypeTuple<>) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1845 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 1-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_1() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1861 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 2-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_2() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1877 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 3-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_3() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1893 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 4-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_4() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1909 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 5-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_5() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1925 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 6-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_6() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1941 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 7-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_7() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1957 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 8-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_8() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1973 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 9-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_9() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 1989 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 10-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_10() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2005 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 11-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_11() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2021 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 12-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_12() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2037 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 13-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_13() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2053 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 14-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_14() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2069 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_functionName, | |||
s_doc ) |
Export a C++ function with type qualification for 15-parameter functions with custom name and documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_EX_15() with automatically generated dispatcher name.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2085 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params, | |||
s_functionName ) |
Export a C++ function with type qualification and custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_params | Parameter types as lass::meta::TypeTuple (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2101 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
s_functionName ) |
Export a C++ function with type qualification for 0-parameter functions and custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_0() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (0 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2114 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_functionName ) |
Export a C++ function with type qualification for 1-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_1() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2128 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_functionName ) |
Export a C++ function with type qualification for 2-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_2() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2142 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_functionName ) |
Export a C++ function with type qualification for 3-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_3() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2156 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_functionName ) |
Export a C++ function with type qualification for 4-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_4() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2170 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_functionName ) |
Export a C++ function with type qualification for 5-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_5() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2184 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_functionName ) |
Export a C++ function with type qualification for 6-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_6() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2198 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_functionName ) |
Export a C++ function with type qualification for 7-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_7() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2212 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_functionName ) |
Export a C++ function with type qualification for 8-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_8() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2226 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_functionName ) |
Export a C++ function with type qualification for 9-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_9() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2240 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_functionName ) |
Export a C++ function with type qualification for 10-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_10() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2254 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_functionName ) |
Export a C++ function with type qualification for 11-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_11() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2268 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_functionName ) |
Export a C++ function with type qualification for 12-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_12() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2282 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_functionName ) |
Export a C++ function with type qualification for 13-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_13() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2296 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_functionName ) |
Export a C++ function with type qualification for 14-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_14() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2310 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_NAME_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_functionName ) |
Export a C++ function with type qualification for 15-parameter functions with custom name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_15() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters, can be overloaded) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for disambiguation) |
s_functionName | Python function name (const char* string with static storage duration) |
Definition at line 2324 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params, | |||
s_doc ) |
Export a C++ function with type qualification using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (can be overloaded, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_params | Parameter types as lass::meta::TypeTuple (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2339 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_0 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
s_doc ) |
Export a C++ function with type qualification for 0-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_0() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (0 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2352 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
s_doc ) |
Export a C++ function with type qualification for 1-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_1() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (1 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2366 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
s_doc ) |
Export a C++ function with type qualification for 2-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_2() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (2 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2380 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
s_doc ) |
Export a C++ function with type qualification for 3-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_3() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (3 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2394 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
s_doc ) |
Export a C++ function with type qualification for 4-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_4() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (4 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2408 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
s_doc ) |
Export a C++ function with type qualification for 5-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_5() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (5 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2422 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
s_doc ) |
Export a C++ function with type qualification for 6-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_6() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (6 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2436 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
s_doc ) |
Export a C++ function with type qualification for 7-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_7() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (7 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2450 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
s_doc ) |
Export a C++ function with type qualification for 8-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_8() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (8 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2464 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
s_doc ) |
Export a C++ function with type qualification for 9-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_9() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (9 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2478 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
s_doc ) |
Export a C++ function with type qualification for 10-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_10() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (10 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2492 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
s_doc ) |
Export a C++ function with type qualification for 11-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_11() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (11 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2506 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
s_doc ) |
Export a C++ function with type qualification for 12-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_12() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (12 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2520 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
s_doc ) |
Export a C++ function with type qualification for 13-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_13() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (13 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2534 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
s_doc ) |
Export a C++ function with type qualification for 14-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_14() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (14 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2548 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_DOC_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15, | |||
s_doc ) |
Export a C++ function with type qualification for 15-parameter functions using the C++ function name with documentation.
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC_15() with s_functionName derived from f_cppFunction.
i_module | Module identifier declared by PY_DECLARE_MODULE_*() |
f_cppFunction | C++ function to export (15 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_P1,t_P2,t_P3,t_P4,t_P5,t_P6,t_P7,t_P8,t_P9,t_P10,t_P11,t_P12,t_P13,t_P14,t_P15 | Parameter types for the function (for disambiguation) |
s_doc | Function documentation string (const char* string with static storage duration) |
Definition at line 2562 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_params ) |
Export a C++ function with type qualification using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_NAME_DOC() with defaults.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (can be overloaded, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
t_params | Parameter types as lass::meta::TypeTuple (for disambiguation) |
Definition at line 2576 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_0 | ( | i_module, | |
f_cppFunction, | |||
t_return ) |
Export a C++ function with type qualification for 0-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_0() with s_doc = nullptr.
i_module | Module identifier declared by PY_DECLARE_MODULE_* |
f_cppFunction | C++ function to export (0 parameters, name will be used as Python name) |
t_return | Return type of the function (for disambiguation) |
Definition at line 2587 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_1 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1 ) |
Export a C++ function with type qualification for 1-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_1() with s_doc = nullptr.
Definition at line 2594 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_2 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2 ) |
Export a C++ function with type qualification for 2-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_2() with s_doc = nullptr.
Definition at line 2601 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_3 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3 ) |
Export a C++ function with type qualification for 3-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_3() with s_doc = nullptr.
Definition at line 2608 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_4 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4 ) |
Export a C++ function with type qualification for 4-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_4() with s_doc = nullptr.
Definition at line 2615 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_5 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5 ) |
Export a C++ function with type qualification for 5-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_5() with s_doc = nullptr.
Definition at line 2622 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_6 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6 ) |
Export a C++ function with type qualification for 6-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_6() with s_doc = nullptr.
Definition at line 2629 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_7 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7 ) |
Export a C++ function with type qualification for 7-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_7() with s_doc = nullptr.
Definition at line 2636 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_8 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8 ) |
Export a C++ function with type qualification for 8-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_8() with s_doc = nullptr.
Definition at line 2643 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_9 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9 ) |
Export a C++ function with type qualification for 9-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_9() with s_doc = nullptr.
Definition at line 2650 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_10 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10 ) |
Export a C++ function with type qualification for 10-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_10() with s_doc = nullptr.
Definition at line 2657 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_11 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11 ) |
Export a C++ function with type qualification for 11-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_11() with s_doc = nullptr.
Definition at line 2664 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_12 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12 ) |
Export a C++ function with type qualification for 12-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_12() with s_doc = nullptr.
Definition at line 2671 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_13 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13 ) |
Export a C++ function with type qualification for 13-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_13() with s_doc = nullptr.
Definition at line 2678 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_14 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14 ) |
Export a C++ function with type qualification for 14-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_14() with s_doc = nullptr.
Definition at line 2685 of file pyobject_macros.h.
#define PY_MODULE_FUNCTION_QUALIFIED_15 | ( | i_module, | |
f_cppFunction, | |||
t_return, | |||
t_P1, | |||
t_P2, | |||
t_P3, | |||
t_P4, | |||
t_P5, | |||
t_P6, | |||
t_P7, | |||
t_P8, | |||
t_P9, | |||
t_P10, | |||
t_P11, | |||
t_P12, | |||
t_P13, | |||
t_P14, | |||
t_P15 ) |
Export a C++ function with type qualification for 15-parameter functions using the C++ function name (no documentation).
Convenience macro that wraps PY_MODULE_FUNCTION_QUALIFIED_DOC_15() with s_doc = nullptr.
Definition at line 2692 of file pyobject_macros.h.
#define PY_INJECT_CLASS_IN_MODULE | ( | t_cppClass, | |
i_module, | |||
s_doc ) |
Inject a class into a module at runtime (deprecated).
This is the legacy runtime approach for adding classes to modules. Use PY_MODULE_CLASS instead for compile-time registration.
t_cppClass | Python binding class type that has been declared with PY_DECLARE_CLASS_* |
i_module | Module object identifier to inject the class into |
s_doc | Optional class documentation string (or nullptr) |
Definition at line 2896 of file pyobject_macros.h.
#define PY_MODULE_CLASS | ( | i_module, | |
t_cppClass ) |
Add a Python class to a module.
Registers a class definition to be included in the module when it is created. The class must have been declared with PY_DECLARE_CLASS_* macros. This is executed before main(), so the class is available when the module is created.
i_module | Module identifier declared by PY_DECLARE_MODULE_* (must be unscoped identifier for token concatenation) |
t_cppClass | Python binding class type that has been declared with PY_DECLARE_CLASS_* |
Example:
Definition at line 2917 of file pyobject_macros.h.
#define PY_EXTENSION_MODULE_EX | ( | i_module, | |
f_injection, | |||
s_doc ) |
Inject a python module so Python is aware of it and produce all necessary code so a module can be used as extension of Python.
A limitation in comparison with embedded modules is that the name of the module cannot be changed anymore upon injection.
i_module | the identifier of a module declared by PY_DECLARE_MODULE |
f_injection | the function that will inject all the classes for this module |
s_doc | documentation of module as shown in Python (zero terminated C string) |
Definition at line 224 of file pyobject_macros.h.