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

Provide the full list of components, variables, units, etc. #319

Open
agarny opened this issue May 9, 2019 · 1 comment
Open

Provide the full list of components, variables, units, etc. #319

agarny opened this issue May 9, 2019 · 1 comment

Comments

@agarny
Copy link
Contributor

agarny commented May 9, 2019

Right now, if we want to go through all the (top-level) components in a model, we must do something like:

for (size_t i = 0; i < model->componentCount(); ++i) {
    // Do something with model->getComponent(i)
}

while I wish we could simply do something like:

for (const auto &component : model->components()) {
}

which is more "modern"...

@hsorby
Copy link
Contributor

hsorby commented May 9, 2019

We are old-school :)

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

2 participants