pbs-assess / tmbpop

(Experimental) R package for implementing TMB age-structured POP model
1 stars 0 forks source link

Break up the C++ code into functions #9

Open seananderson opened 6 years ago

seananderson commented 6 years ago

Quang has a nice example: https://github.com/quang-huynh/MLZ https://github.com/quang-huynh/MLZ/tree/master/inst/include https://github.com/quang-huynh/MLZ/blob/master/inst/include/functions.h https://github.com/quang-huynh/MLZ/blob/master/inst/include/ML.h

Would make it easier to read and maintain — especially as complexity is added.

cgrandin commented 5 years ago

This is a good, note though that in C++ the implementation needs to be kept separate from the interface, i.e. need a CPP file for each H file. See my upcoming commits