SWIG and C++ code

SWIG is easy to use with C code
C++ code is also possible, but various compilation and linking techniques become more intricate
C++ classes can be used as if they were implemented in Python
Example: class Statistics in the stochastic beam application, see
src/pycf/sbeam/C/swig-MonteCarlo
and the book for details

previousnexttable of contents