Chaste / PyChaste

A Python Wrapper for Chaste
https://chaste.github.io/pychaste/
Other
1 stars 0 forks source link

Use templated wrappers #41

Closed kwabenantim closed 6 months ago

kwabenantim commented 1 year ago

Description

Use templating to reduce number of generated wrapper files. Many wrappers only vary in template arguments and the rest of the code is exactly the same.

Aim to refactor this

register_AbstractCellPopulation2_2_class(m);
register_AbstractCellPopulation3_3_class(m);

into this

register_AbstractCellPopulation_class<2, 2>(m);
register_AbstractCellPopulation_class<3, 3>(m);
kwabenantim commented 6 months ago

Closing as moved to https://github.com/Chaste/cppwg/issues/30