Merge: Apply serialization in calculator, a_star, more_collections, Couple and Container
authorJean Privat <jean@pryen.org>
Tue, 26 May 2015 10:09:51 +0000 (06:09 -0400)
committerJean Privat <jean@pryen.org>
Tue, 26 May 2015 10:09:51 +0000 (06:09 -0400)
commitbfb1f6bdab7bd5913662b672580444a34321bc4f
tree0d9d44dd8fc2395a63219e0a6e5b7c939b7af6e7
parentf75737f87c674c902fe401c36c31b5dbe7c35bfb
parent0419754a4cf9782b72bddf5bf35aa810f7a19048
Merge: Apply serialization in calculator, a_star, more_collections, Couple and Container

Use `auto_serialize` in the calculator example, and remove the old custom JSON serialization.

The `a_star` module needed special care and could not rely only on `auto_serialize`. This was to avoid serializing graphs as a deep tree, instead we serialize the nodes first, then the links and we rebuild the graph at deserialization.

Besides that, more collections support the serialization.

Pull-Request: #1364
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>