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

Add possibility to use range based for loops on relations and vector members #61

Closed
gaede opened this issue Sep 27, 2019 · 1 comment · Fixed by #107
Closed

Add possibility to use range based for loops on relations and vector members #61

gaede opened this issue Sep 27, 2019 · 1 comment · Fixed by #107

Comments

@gaede
Copy link
Contributor

gaede commented Sep 27, 2019

Add a helper class vector_view and code generation such that on can write range based for loops, e.g.

auto mcps = store.get<MCParticleCollection>("MCParticles") ;
for( auto& p : mcps ){
    for( auto& d : p.getDaughters() ) {
        printDaughter(d) ;
    }
}

@gaede gaede changed the title Add possibility to use range based for loops on raltions and vector members Add possibility to use range based for loops on relations and vector members Sep 27, 2019
@tmadlener
Copy link
Collaborator

This can be closed, as it was addressed by #107 (Wasn't closed automatically, because at the time of merging, the issue was not yet linked to the PR).

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

Successfully merging a pull request may close this issue.

3 participants