Hi,
As I read in other post, or as I saw when looking at some part of the code, Freeze is very tightly coupled with Berkeley db. I am not familiar at all with Berkeley db, but looking at the documentation it seems that "search" possibilities are limited.
I suppose that this is the reason why Freeze::map doesn't implement the lower_bound and upper_bound that are part of the STL standard for maps.
It seems however, that it is possible to store data in berkeley db using some kind of Btree. So, my question is: are you planning to implement Freeze::map.lower_bound for a future release, or is it not possible?
If not, do you have a hint on how I could implement this kind of features in a way that it smoothly interact with Freeze?
The reason is of course to implement some simple "wildcards" searches, for example if a STL map contains some key/value pairs like : {"A","001"},{"Ba","002"},{"Bb","003"},{"C","004 "}, then lower_bound("B") will return an iterator on {"Ba","002"} and lower_bound("C") will return an iterator on {"C","004"} so by looping from the first iterator to the second (but not including it) I can extract record with keys beggining with "B".
I would very happy if I could do the same with Freeze::map...
Thanks in advance.

Reply With Quote