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

Support generic node iterator #343

Open molpopgen opened 3 years ago

molpopgen commented 3 years ago

The design happening over at tskit_rust shows a lot of promise. Functions returning a smart pointer to something like this would be handy:

struct node_iterator {
    virtual void advance() = 0;
    virtual ID get() const = 0;
}
molpopgen commented 3 years ago

This should follow/be concomitant with #344.