¡@

Home 

python Programming Glossary: listwrap

wrapping a list of structs with boost.python

http://stackoverflow.com/questions/6776888/wrapping-a-list-of-structs-with-boost-python

#include boost python.hpp template class T struct listwrap typedef typename T value_type value_type typedef typename T.. std list T size .def clear std list T clear .def append listwrap T add with_custodian_and_ward 1 2 to let container keep value.. 1 2 to let container keep value .def __getitem__ listwrap T get return_value_policy copy_non_const_reference .def __setitem__..