Re: Gee New DualKeyMap proposal



On Wed, 2013-11-13 at 17:27 -0600, Daniel Espinosa wrote:
I've added a new object called SerializableDualKeyMap to GXml
implementing GXml.Serializable interface, and other one called
SerializableTreeMap.


Both implement Serializable, allowing you to create XML representation
of the objects (if they are Serializable too) contained in a
Gee.TreeMap and a new class to manage objects with two keys.


May you want to add the implementation of SerializableDualKeyMap to
Gee.


If so, may be would be a good idea to create an Interface called
DualKeyMap an abstract AbstractDualKeyMap and a class called
HashDuaKeyMap, following Gee conventions, of course implementing the
required interfaces.


Code is located at:

https://git.gnome.org/browse/gxml/commit/?h=serialization&id=e25c4831733fa8d28c0f2b540f4536fe77801311



What do you think?

Sorry for late reply.

A small comment: Gee.HashMultiMap<P,HashMap<S,V>> - Is there a reason
why it is a multimap? It is {P -> {S -> V, S' -> V'}} differ then {P ->
{S -> V}, P -> {S' -> V}}? What's {P -> {S -> V}, P -> {S -> V'}}?

Regarding rest - what's the usecase/advantage over using just Gee.Map<P,
Gee.Map<S, V>>?

Regards




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]