[Dune] [#521] Nonstatic layout member in mcmgmappers (Attachment added)
Dune
dune at dune-project.org
Wed Mar 18 15:34:25 CET 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Carsten Gräser (Carsten)
Attached to Project - Dune
Summary - Nonstatic layout member in mcmgmappers
Task Type - Feature Request
Category - Grid
Status - New
Assigned To -
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - Currently the MCMGMapper gets the Layout class template as template parameter
and uses a static instance of this class to determine if a GeometryType should be
counted by the mapper. This is done using a nonstatic method of this instance
The attached patch changes the behaviour such that a nonstatic layout member is used. It also adds constructors to the mappers allowing to provide a custom layout object.
While this does not brake existing code (except for the ugly case it relies on the
use of single static member) it provides the possibility to use mappers for
different codims having the same type. Thus one could use an array containing
a mapper for each codim.
To be compatible with the current interface description the member is mutable. In the long term the contains method of layout classes should be const allowing the member to be const to.
One or more files have been attached.
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=521
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