You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For several times I tumpled over the Genode::Registry having no method to check whether it is empty or not. The typical workaround is to use do something like:
This is not nice to read, nor efficient. Of course, I can derive from Registry and implement empty, but here again I can only iterate over all items to check for it, because the internally used List is completely hidden for derivates too.
Therefore, I would like to add something like the following to base/include/base/registry.h to the Genode::Registry class:
For several times I tumpled over the Genode::Registry having no method to check whether it is empty or not. The typical workaround is to use do something like:
This is not nice to read, nor efficient. Of course, I can derive from Registry and implement empty, but here again I can only iterate over all items to check for it, because the internally used List is completely hidden for derivates too.
Therefore, I would like to add something like the following to
base/include/base/registry.hto theGenode::Registryclass:@nfeske do you agree?