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

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