freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add missing global iterators for DomainLayout


From: Richard Guenther
Subject: [PATCH] Add missing global iterators for DomainLayout
Date: Mon, 16 Dec 2002 22:59:57 +0100 (CET)

The following patch allows one to iterate over all global patches
(for serial IO) even if only using a DomainLayout.

Tested on serial powerpc-unknown-linux-gnu with (obviously) no
regressions.

2002Dec16  Richard Guenther <address@hidden>

        * Layout/DomainLayout.h: added beginGlobal(), endGlobal()
        iterators, sizeGlobal() as in LayoutBase

--- r2/src/Layout/DomainLayout.h        2001-08-30 03:15:27.000000000 +0200
+++ pooma-bugfixes/r2/src/Layout/DomainLayout.h 2002-12-16 20:57:53.000000000 
+0100
@@ -339,6 +339,29 @@
       return size();
     }

+  // Return begin and end iterators for the list of all global subdomains
+
+  inline iterator beginGlobal()
+    {
+      return begin();
+    }
+  inline iterator endGlobal()
+    {
+      return end();
+    }
+  inline const_iterator beginGlobal() const
+    {
+      return begin();
+    }
+  inline const_iterator endGlobal() const
+    {
+      return end();
+    }
+  inline long sizeGlobal() const
+    {
+      return size();
+    }
+
   // Return begin and end iterators for the list of all remote subdomains

   inline iterator beginRemote()

reply via email to

[Prev in Thread] Current Thread [Next in Thread]