Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generic node iterator #343

Open
molpopgen opened this issue Apr 12, 2021 · 1 comment
Open

Support generic node iterator #343

molpopgen opened this issue Apr 12, 2021 · 1 comment

Comments

@molpopgen
Copy link
Owner

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
Copy link
Owner Author

This should follow/be concomitant with #344.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant