[Olena] #250: Improve iteration over elements in high-level data structures

#250: Improve iteration over elements in high-level data structures -------------------------+-------------------------------------------------- Reporter: lazzara | Owner: lazzara Type: enhancement | Status: new Priority: critical | Milestone: Component: Scribo | Version: 1.0 Keywords: | -------------------------+-------------------------------------------------- Currently, accessing information about an element in a document using data structures is error prone. For instance, iterating over a component_set and accessing current component information look like this: {{{ component_set<L> compset; for_all_comps(comp, compset) compset(comp).is_valid(); }}} Here, ''comp'' is an ID, not the component itself. Moreover, it is error prone since several methods exists both in the container and in element structure: {{{ component_set<L> compset; for_all_comps(comp, compset) compset.is_valid(); }}} This code would also work and may not lead to the expected result... We want iterators to write the following code: {{{ component_set<L> compset; scribo_citer(component_set<L>) comp(compset); for_all(comp) comp.is_valid(); }}} Iterators would also make the code more 'Milena style'. -- Ticket URL: <https://trac.lrde.org/olena/ticket/250> Olena <http://olena.lrde.epita.fr> Olena, a software platform dedicated to image processing.

#250: Improve iteration over elements in high-level data structures -------------------------+-------------------------------------------------- Reporter: lazzara | Owner: lazzara Type: enhancement | Status: new Priority: critical | Milestone: Component: Scribo | Version: 2.0 Keywords: | -------------------------+-------------------------------------------------- Changes (by lazzara): * version: 1.0 => 2.0 -- Ticket URL: <https://trac.lrde.org/olena/ticket/250#comment:1> Olena <http://olena.lrde.epita.fr> Olena, a software platform dedicated to image processing.
participants (1)
-
Olena Trac