Merge: poset: add lookup services in Map to search using keys in hierarchies.
authorJean Privat <jean@pryen.org>
Tue, 11 Jul 2017 12:59:58 +0000 (08:59 -0400)
committerJean Privat <jean@pryen.org>
Tue, 11 Jul 2017 12:59:58 +0000 (08:59 -0400)
commit1c9f9e5422bcf5c118451d5a71cea9c67b4fffa0
treeff989bab75a3af5762d6bc7c4838d207c7b716d1
parent8a9ab5b3ef644b7524e636b8ad80dc19619d761a
parente430c56ed1b7cd369a7a0fefe1f99608f993dd36
Merge: poset: add lookup services in Map to search using keys in hierarchies.

3 main methods:

* `Map::lookup_all_values` collect all values of the greaters of an element
* `Map::lookup_values` collect only the values of the most specific greaters of an element
* `MultiHashMap::lookup_joined_values` collect and join the values of the most specific greaters of an element

Since many models entities in nitc are in some poset, these services could be used
to add and retrieve metadata while automatically taking in account inheritance or importation.

Signed-off-by: Jean Privat <jean@pryen.org>

Pull-Request: #2500