[Dune] [#597] Add basic interfaces with and without virtual methods for functions/mappings
Dune
dune at dune-project.org
Sun Sep 13 21:43:30 CEST 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 - Add basic interfaces with and without virtual methods for functions/mappings
Task Type - Feature Request
Category - Common
Status - New
Assigned To -
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - While there are several places (BoundarySegment, interpolate() in dune-localfunctions, various discretization modules) where mappings are used there is now common interface/base class for this purpose. Currently there are almost all combinations of eval()/evaluate()/operator(), virtual/non-virtual and return value/call by reference used.
I suggest to introduce a simple base classes with and without virtual functions to provide a common interface. The place for this should be dune-common and it could look like
template <class X, class Y>
class FunctionBase
{
public:
Y evaluate(const X& x);
};
teplate <class X,class Y>
class VirtualFunctionBase :public FunctionBase<X,Y>
{
public:
virtual Y evaluate(const X& x);
};
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=597
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