[Riskquantify-devel] Generic iterator support for containers...
Status: Beta
Brought to you by:
bah
From: Brett H. <br...@hu...> - 2005-12-29 19:13:43
|
Happy new year, everyone. I've added generic iterator support to most of the container classes (specifically rq_tree_rb, rq_linked_list, rq_double_linked_list and rq_array). I still have to do rq_vector and rq_array_partitioned. rq_array_double will probably be removed in favour of rq_vector. The old iterator interfaces are still there, but everyone should now use the new generic interface functionality, as it means that generic algorithms can be created that take rq_iterator objects as parameters and it doesn't matter what type of container you have underneath. The call to get a generic iterator is rq_xxx_get_iterator() - so, for example, to get a red-black tree iterator you would do something like: rq_iterator_t iter = rq_tree_rb_get_iterator(tree); Cheers, Brett -- Brett Hutley mailto:br...@hu... http://hutley.net/brett |