After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687158 - MultiMap could use a read_only_view like Map
MultiMap could use a read_only_view like Map
Status: RESOLVED FIXED
Product: libgee
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: libgee-maint
libgee-maint
Depends on:
Blocks: 687159
 
 
Reported: 2012-10-29 23:37 UTC by Jeremy Whiting
Modified: 2013-02-16 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Whiting 2012-10-29 23:37:49 UTC
In folks we use Map (HashMap, HashSet, etc.) for many properties and use a read only copy from Map.read_only_view to give out for the value of the property.  Some properties are using MultiMap however which lacks this api.  It would be good to have MultiMap expose a read_only_view method to give read only access to a writable MultiMap.
Comment 1 Maciej (Matthew) Piechotka 2012-11-04 13:43:50 UTC
I'll look into it. I remember that I've planned to add it to 0.8 release but it was dropped. I need to just remind myself if it was something fundamental or 'no time'.
Comment 2 Maciej (Matthew) Piechotka 2013-02-16 13:00:40 UTC
commit ff36eae259f93fc9ef00615da7f072824e5efaed
Author: Maciej Piechotka <uzytkownik2@gmail.com>
Date:   Sat Feb 16 12:59:56 2013 +0000

    Add read_only_view to Gee.MultiMap, fixes bug #687158