molpopgen / fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
http://fwdpp.readthedocs.io
GNU General Public License v3.0
27 stars 11 forks source link

table_collection should manage the required indexes #155

Closed molpopgen closed 5 years ago

molpopgen commented 5 years ago

table_collection should contain the required index variables for first/last parent, next available node, etc..

molpopgen commented 5 years ago

Need to think about this a bit. This change makes things very convenient for discrete-time sims. Doesn't necessarily help continuous birth/death sims...

molpopgen commented 5 years ago

This idea violates the one responsibility principle, requiring that table_collection be both a book-keeper for tracking available node ids as well as encapsulating the tables. Closing.