Skip to content

Dev/support stl containers

Fairly substantive changes within this MR. Some of the results of the opaque STL bindings need some small tweaks (hence the WIP) but this MR implements support for opaque STL container types, as well as direct STL container bindings to expose these containers as native python types with buffer protocol support optionally enabled.

Additionally, this MR adds a few utility functions to support working with STL types in APB and documentation of their usage.

Most significantly however, is how this MR treats STL binder objects read in from the user provided yaml file. Rather than being returned to APB's binding generator as a dictionary, an stl_bind object is constructed for each STL container and template inst to be bound, and a list of these objects is returned to the binding generator. This more oop approach to handling binding generation and info storage is how I would like to refactor the rest of APB to break down our massive file/function sizes (with some significant tweaking, this is a first pass). I hope this can generate some discussion and lead to some significant feedback. MR'd now for reference during our meeting tomorrow.

Edited by John Parent

Merge request reports