-
Notifications
You must be signed in to change notification settings - Fork 32
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
Observable collections #8
Comments
So, is it not yet implemented? Everything looked so cool for a single variable, but without arrays, the library is of no use :( |
Actually, I managed to compose quick & dirty solution on my own: https://bitbucket.org/kornerr/c-observable-variables/src/tip Though, it handles std::vector type by redefining its push_back method, which is not all cool, but works as a drop-in replacement. |
Hi @kornerr, Yeah, having observable collections would be pretty cool, but I haven't found the time to implement them yet. You're welcome to try adding support for this. -Daniel |
Add wrapper around std::unordered_set to implement insertion and removal of items from a collection. The collection inherits from a value, and can be subscribed to as usual to yield notifications on assignment. The collection also provides subscribe_changes which notifies observers on successful insertion into and deletion from the collection
Add wrapper around std::unordered_set to implement insertion and removal of items from a collection. The collection inherits from a value, and can be subscribed to as usual to yield notifications on assignment. The collection also provides subscribe_changes which notifies observers on successful insertion into and deletion from the collection
Users should be able to create observable adapters over the standard library collections.
The wrappers should be inspired by std::queue and the rest of the container adapters in the standard library.
Adapters for new or custom containers should be easy to create.
The text was updated successfully, but these errors were encountered: