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

Observable collections #8

Open
ddinu opened this issue Jan 11, 2017 · 3 comments
Open

Observable collections #8

ddinu opened this issue Jan 11, 2017 · 3 comments

Comments

@ddinu
Copy link
Owner

ddinu commented Jan 11, 2017

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.

@kornerr
Copy link

kornerr commented Sep 16, 2017

So, is it not yet implemented? Everything looked so cool for a single variable, but without arrays, the library is of no use :(

@kornerr
Copy link

kornerr commented Sep 16, 2017

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.

@ddinu
Copy link
Owner Author

ddinu commented Sep 16, 2017

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

@ddinu ddinu removed the help wanted label Jan 17, 2020
johnmwilson82 added a commit to johnmwilson82/observable that referenced this issue Jun 7, 2022
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
johnmwilson82 added a commit to johnmwilson82/observable that referenced this issue Jun 9, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants