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

How to programmatically get values out of a Pool in C++...? #1355

Open
jamiebullock opened this issue Jul 18, 2023 · 0 comments
Open

How to programmatically get values out of a Pool in C++...? #1355

jamiebullock opened this issue Jul 18, 2023 · 0 comments

Comments

@jamiebullock
Copy link

jamiebullock commented Jul 18, 2023

In Python we can get all the values from a Pool as simply as pool[name] for name in pool.descriptorNames()

Is there any equivalent for C++...?

We can get the descriptor names, but then it seems like the caller needs to know the C++ type for each value. So it either needs store some kind of mapping of descriptor keys to types, or just try / catch on Pool::value<T> for each possible type.

What's the recommended approach?

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