Package pyplusplus :: Package function_transformers

# Package function_transformers

source code

This sub-package provides text substitution services for creating C++ functions.

The helper classes in this package are meant to be used by the actual calldef code creators (that are not part of this sub-package). They implement the core of the "arg policy" mechanism which can be used by a user to modify the source code for a function.

The main class of this sub-package is the class `substitution_manager_t`. This class maintains two sets of special variables, one for the wrapper function and one for the virtual function, and provides text substitution services. The variables contain parts of source code that can be inserted into the function source code template which is generated by the user of the class.

Submodules

- pyplusplus.function_transformers.controllers: defines controller classes which help to define the function transformation
- pyplusplus.function_transformers.function_transformation: This module contains the class function_transformation_t.
- pyplusplus.function_transformers.templates: defines few templates, which will be used to create a function-wrapper definition.
- pyplusplus.function_transformers.transformer: This module contains the class transformer_t.
- pyplusplus.function_transformers.transformers: This module contains the standard argument policy objects.

Functions

output(*args, **keywd) | source code

input(*args, **keywd) | source code

inout(*args, **keywd) | source code

input_static_array(*args, **keywd) | source code

output_static_array(*args, **keywd) | source code

modify_type(*args, **keywd) | source code

input_c_buffer(*args, **keywd) | source code

transfer_ownership(*args, **keywd) | source code

from_address(*args, **keywd) | source code