[Dune] [#540] deprecate intersection iterators on entity

Dune dune at dune-project.org
Fri Sep 11 19:58:19 CEST 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#540 - deprecate intersection iterators on entity
User who did this - Atgeirr Flø Rasmussen (atgeirr)

----------
Removing them from entities would remove them also from entity pointers and iterators.
Wouldn't this make it harder to access intersections in generic algorithms?

A little example:

template <class EntityIter>
void foo(EntityIter beg, EntityIter end)
{
    for (EntityIter cur = beg; cur != end; ++cur) {
        auto ibeg = cur->ibegin();  // I know, auto is not widely available yet...
        auto iend = cur->iend();
        ... // Code that works on intersections.
    }
}

Above, foo() does not need the grid view.
If only the grid view has ibegin(), we must now pass it as an argument to all such functions.
Also, it is longer to write

    gridview.ibegin(entity);

than

    entity.ibegin();

without any (to me at least) obvious benefits.

Atgeirr

----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=540#comment1043

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list