<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Danke Joe fuer die Implementierung - ich find das sieht<br>
gut so aus.<br>
Koennen wir das ins release noch aufnehmen?<br>
Gruss<br>
Andreas<br>
<br>
On 03/11/2011 04:02 PM, Jö Fahlke wrote:
<blockquote cite="mid:20110311160216.GE8981@paranoia" type="cite">
<pre wrap="">[ Using the instead of flyspray since I can't log in ]
I like Andreas' proposal. I modified it a little to provide two utility
classes:
class LocalGeometryTypeIndex;
class GlobalGeometryTypeIndex;
Each class provides two methods
static std::size_t index(const GeometryType >);
static std::size_t size(std::size_t dim);
In the implementation of GlobalGeometryTypeIndex I also use a method
static std::size_t base(std::size_t dim);
which returns the first index for a given dimension. This may be useful to
export in case someone stores stuff for all geometry types up to a certain
dimension in a vector and want to iterate over the subset of a particular
dimension in that vector only.
I left out TMP versions of size() (and base()) for now, they are always easy
to provide should someone need them.
The patch with the implementation is attached, please comment.
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
</body>
</html>