GNOME Bugzilla – Bug 589902
Map interface enhancement
Last modified: 2009-07-31 16:20:26 UTC
New methods for map: - set_all - sets all items (and overwrites existing) from input map into current map - remove_all - removes all items from the map that exist in input map - contains_all - checks if current map has all elements of the input map - empty - property which is true if map is empty, false otherwise
Created attachment 139295 [details] [review] 0004-Added-empty-set_all-remove_all-contains_all-to-map-i.patch
Tomaz, Same comments as for bug 589894: ReadOnlyMap should just call the methods of the wrapped map (_list.empty) Also, I would prefer that you split that in two commits: - One introducing AbstractMap - Another enhancing the Map interface and introducing the implementations If you are OK with that and don't have time to do it, I can do it.
commit 539ea0cf401afd44861807f8ad3fc39de31de3a7 Author: Toma<C5><BE> Vajngerl <quikee@gmail.com> Date: Sun Jul 26 12:49:27 2009 +0200 Add Map.is_empty|set_all|remove_all|contains_all and AbstractMap implementations Fixes bug 589902.