Conference site » Proceedings

Convert-XY: type-safe interchange of C++ and Python containers for NumPy extensions

Damian Eads
eads@soe.ucsc.edu - University of California, 1156 High Street, Santa Cruz USA
Edward Rosten
er258@cam.ac.uk - University of Cambridge, Trumpington Street, Cambridge UK

Abstract
We present Convert-XY: a new, header-only template library for converting containers between C++ and Python with a simple, succinct syntax. At compile-time, template-based recursive pattern matching is performed on the static structure of the C++ type to build dynamic type checkers and conversion functions.

Citation

D Eads, E Rosten, Convert-XY: type-safe interchange of C++ and Python containers for NumPy extensions in Proceedings of the 8th Python in Science conference (SciPy 2009), G Varoquaux, S van der Walt, J Millman (Eds.), pp. 29-35

BibTeX entry

Full text PDF

Copyright The content of the articles of the Proceedings of the Python in Science Conference is copyrighted and owned by their original authors.
Terms of use For republication or other use of the material published, please contact the copyright owners to obtain permission.