{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.BahB0AKs/b1/dune-common_2.10.0-4_i386.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.BahB0AKs/b2/dune-common_2.10.0-4_i386.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n 8c5ae732e9eb0dadd3d08a320a388bd3 502160 debug optional libdune-common-dev-dbgsym_2.10.0-4_i386.deb\n b94d991af5def3a44a90b3d3497340a1 413660 libdevel optional libdune-common-dev_2.10.0-4_i386.deb\n- 9a90ebe997474dc83591a9c4c17dafa9 3177608 doc optional libdune-common-doc_2.10.0-4_all.deb\n+ 581570cc4cc42db83ee83aa983083c96 3178968 doc optional libdune-common-doc_2.10.0-4_all.deb\n"}, {"source1": "libdune-common-doc_2.10.0-4_all.deb", "source2": "libdune-common-doc_2.10.0-4_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-11-22 14:28:16.000000 debian-binary\n--rw-r--r-- 0 0 0 28120 2024-11-22 14:28:16.000000 control.tar.xz\n--rw-r--r-- 0 0 0 3149296 2024-11-22 14:28:16.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 28148 2024-11-22 14:28:16.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 3150628 2024-11-22 14:28:16.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}, {"source1": "line order", "source2": "line order", "unified_diff": "@@ -32,17 +32,16 @@\n usr/share/doc/libdune-common-doc/doxygen/a00020_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00023.html\n usr/share/doc/libdune-common-doc/doxygen/a00023_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00026.html\n usr/share/doc/libdune-common-doc/doxygen/a00026_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00029.html\n usr/share/doc/libdune-common-doc/doxygen/a00029_source.html\n-usr/share/doc/libdune-common-doc/doxygen/a00032.html\n-usr/share/doc/libdune-common-doc/doxygen/a00032_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00035.html\n+usr/share/doc/libdune-common-doc/doxygen/a00035_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00038.html\n usr/share/doc/libdune-common-doc/doxygen/a00038_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00041.html\n usr/share/doc/libdune-common-doc/doxygen/a00041_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00044.html\n usr/share/doc/libdune-common-doc/doxygen/a00044_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00047.html\n@@ -64,67 +63,64 @@\n usr/share/doc/libdune-common-doc/doxygen/a00071.html\n usr/share/doc/libdune-common-doc/doxygen/a00071_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00074.html\n usr/share/doc/libdune-common-doc/doxygen/a00074_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00077.html\n usr/share/doc/libdune-common-doc/doxygen/a00077_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00080.html\n-usr/share/doc/libdune-common-doc/doxygen/a00080_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00083.html\n usr/share/doc/libdune-common-doc/doxygen/a00083_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00086.html\n usr/share/doc/libdune-common-doc/doxygen/a00086_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00089.html\n usr/share/doc/libdune-common-doc/doxygen/a00089_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00092.html\n usr/share/doc/libdune-common-doc/doxygen/a00092_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00095.html\n usr/share/doc/libdune-common-doc/doxygen/a00095_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00098.html\n usr/share/doc/libdune-common-doc/doxygen/a00098_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00101.html\n-usr/share/doc/libdune-common-doc/doxygen/a00101_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00104.html\n usr/share/doc/libdune-common-doc/doxygen/a00104_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00107.html\n usr/share/doc/libdune-common-doc/doxygen/a00107_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00110.html\n usr/share/doc/libdune-common-doc/doxygen/a00110_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00113.html\n usr/share/doc/libdune-common-doc/doxygen/a00113_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00116.html\n-usr/share/doc/libdune-common-doc/doxygen/a00116_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00119.html\n usr/share/doc/libdune-common-doc/doxygen/a00119_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00122.html\n usr/share/doc/libdune-common-doc/doxygen/a00122_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00125.html\n usr/share/doc/libdune-common-doc/doxygen/a00125_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00128.html\n-usr/share/doc/libdune-common-doc/doxygen/a00128_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00131.html\n usr/share/doc/libdune-common-doc/doxygen/a00131_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00134.html\n usr/share/doc/libdune-common-doc/doxygen/a00134_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00137.html\n usr/share/doc/libdune-common-doc/doxygen/a00137_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00140.html\n usr/share/doc/libdune-common-doc/doxygen/a00140_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00143.html\n usr/share/doc/libdune-common-doc/doxygen/a00143_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00146.html\n usr/share/doc/libdune-common-doc/doxygen/a00146_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00149.html\n-usr/share/doc/libdune-common-doc/doxygen/a00149_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00152.html\n usr/share/doc/libdune-common-doc/doxygen/a00152_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00155.html\n+usr/share/doc/libdune-common-doc/doxygen/a00155_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00158.html\n usr/share/doc/libdune-common-doc/doxygen/a00158_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00161.html\n+usr/share/doc/libdune-common-doc/doxygen/a00161_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00164.html\n usr/share/doc/libdune-common-doc/doxygen/a00164_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00167.html\n usr/share/doc/libdune-common-doc/doxygen/a00167_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00170.html\n usr/share/doc/libdune-common-doc/doxygen/a00170_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00173.html\n@@ -146,15 +142,14 @@\n usr/share/doc/libdune-common-doc/doxygen/a00197.html\n usr/share/doc/libdune-common-doc/doxygen/a00197_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00200.html\n usr/share/doc/libdune-common-doc/doxygen/a00200_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00203.html\n usr/share/doc/libdune-common-doc/doxygen/a00203_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00206.html\n-usr/share/doc/libdune-common-doc/doxygen/a00206_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00209.html\n usr/share/doc/libdune-common-doc/doxygen/a00209_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00212.html\n usr/share/doc/libdune-common-doc/doxygen/a00212_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00215.html\n usr/share/doc/libdune-common-doc/doxygen/a00215_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00218.html\n@@ -162,15 +157,14 @@\n usr/share/doc/libdune-common-doc/doxygen/a00221.html\n usr/share/doc/libdune-common-doc/doxygen/a00221_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00224.html\n usr/share/doc/libdune-common-doc/doxygen/a00224_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00227.html\n usr/share/doc/libdune-common-doc/doxygen/a00227_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00230.html\n-usr/share/doc/libdune-common-doc/doxygen/a00230_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00233.html\n usr/share/doc/libdune-common-doc/doxygen/a00233_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00236.html\n usr/share/doc/libdune-common-doc/doxygen/a00236_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00239.html\n usr/share/doc/libdune-common-doc/doxygen/a00239_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00242.html\n@@ -178,15 +172,14 @@\n usr/share/doc/libdune-common-doc/doxygen/a00245.html\n usr/share/doc/libdune-common-doc/doxygen/a00245_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00248.html\n usr/share/doc/libdune-common-doc/doxygen/a00248_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00251.html\n usr/share/doc/libdune-common-doc/doxygen/a00251_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00254.html\n-usr/share/doc/libdune-common-doc/doxygen/a00254_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00257.html\n usr/share/doc/libdune-common-doc/doxygen/a00257_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00260.html\n usr/share/doc/libdune-common-doc/doxygen/a00260_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00263.html\n usr/share/doc/libdune-common-doc/doxygen/a00263_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00266.html\n@@ -196,18 +189,21 @@\n usr/share/doc/libdune-common-doc/doxygen/a00272.html\n usr/share/doc/libdune-common-doc/doxygen/a00272_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00275.html\n usr/share/doc/libdune-common-doc/doxygen/a00275_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00278.html\n usr/share/doc/libdune-common-doc/doxygen/a00278_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00281.html\n+usr/share/doc/libdune-common-doc/doxygen/a00281_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00284.html\n usr/share/doc/libdune-common-doc/doxygen/a00284_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00287.html\n usr/share/doc/libdune-common-doc/doxygen/a00287_source.html\n+usr/share/doc/libdune-common-doc/doxygen/a00290.html\n+usr/share/doc/libdune-common-doc/doxygen/a00290_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00293.html\n usr/share/doc/libdune-common-doc/doxygen/a00293_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00296.html\n usr/share/doc/libdune-common-doc/doxygen/a00296_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00299.html\n usr/share/doc/libdune-common-doc/doxygen/a00299_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00302.html\n@@ -215,24 +211,28 @@\n usr/share/doc/libdune-common-doc/doxygen/a00305.html\n usr/share/doc/libdune-common-doc/doxygen/a00305_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00308.html\n usr/share/doc/libdune-common-doc/doxygen/a00308_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00311.html\n usr/share/doc/libdune-common-doc/doxygen/a00311_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00314.html\n+usr/share/doc/libdune-common-doc/doxygen/a00314_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00317.html\n+usr/share/doc/libdune-common-doc/doxygen/a00317_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00320.html\n+usr/share/doc/libdune-common-doc/doxygen/a00320_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00323.html\n usr/share/doc/libdune-common-doc/doxygen/a00323_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00326.html\n+usr/share/doc/libdune-common-doc/doxygen/a00326_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00329.html\n-usr/share/doc/libdune-common-doc/doxygen/a00329_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00332.html\n usr/share/doc/libdune-common-doc/doxygen/a00332_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00335.html\n+usr/share/doc/libdune-common-doc/doxygen/a00335_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00338.html\n usr/share/doc/libdune-common-doc/doxygen/a00338_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00341.html\n usr/share/doc/libdune-common-doc/doxygen/a00341_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00344.html\n usr/share/doc/libdune-common-doc/doxygen/a00344_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00347.html\n@@ -242,15 +242,14 @@\n usr/share/doc/libdune-common-doc/doxygen/a00353.html\n usr/share/doc/libdune-common-doc/doxygen/a00353_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00356.html\n usr/share/doc/libdune-common-doc/doxygen/a00356_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00359.html\n usr/share/doc/libdune-common-doc/doxygen/a00359_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00362.html\n-usr/share/doc/libdune-common-doc/doxygen/a00362_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00365.html\n usr/share/doc/libdune-common-doc/doxygen/a00365_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00368.html\n usr/share/doc/libdune-common-doc/doxygen/a00368_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00371.html\n usr/share/doc/libdune-common-doc/doxygen/a00371_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00374.html\n@@ -280,14 +279,15 @@\n usr/share/doc/libdune-common-doc/doxygen/a00410.html\n usr/share/doc/libdune-common-doc/doxygen/a00410_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00413.html\n usr/share/doc/libdune-common-doc/doxygen/a00413_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00416.html\n usr/share/doc/libdune-common-doc/doxygen/a00416_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00419.html\n+usr/share/doc/libdune-common-doc/doxygen/a00419_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00422.html\n usr/share/doc/libdune-common-doc/doxygen/a00422_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00425.html\n usr/share/doc/libdune-common-doc/doxygen/a00425_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00428.html\n usr/share/doc/libdune-common-doc/doxygen/a00428_source.html\n usr/share/doc/libdune-common-doc/doxygen/a00431.html\n"}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -26,282 +26,282 @@\n -rw-r--r-- 0 root (0) root (0) 2825 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/buildsystem/html/search.html\n -rw-r--r-- 0 root (0) root (0) 12803 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/buildsystem/html/searchindex.js\n -rw-r--r-- 0 root (0) root (0) 2433 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/changelog.Debian.gz\n -rw-r--r-- 0 root (0) root (0) 10768 2024-10-04 18:52:15.000000 ./usr/share/doc/libdune-common-doc/changelog.gz\n -rw-r--r-- 0 root (0) root (0) 9815 2023-01-12 15:06:30.000000 ./usr/share/doc/libdune-common-doc/copyright\n drwxr-xr-x 0 root (0) root (0) 0 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/\n -rw-r--r-- 0 root (0) root (0) 3044 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00002.html\n--rw-r--r-- 0 root (0) root (0) 3817 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00008.html\n--rw-r--r-- 0 root (0) root (0) 6524 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00008_source.html\n--rw-r--r-- 0 root (0) root (0) 3371 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00011.html\n--rw-r--r-- 0 root (0) root (0) 88030 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00011_source.html\n--rw-r--r-- 0 root (0) root (0) 4992 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00014.html\n--rw-r--r-- 0 root (0) root (0) 31443 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00014_source.html\n--rw-r--r-- 0 root (0) root (0) 5274 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00017.html\n--rw-r--r-- 0 root (0) root (0) 11329 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00017_source.html\n--rw-r--r-- 0 root (0) root (0) 4767 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00020.html\n--rw-r--r-- 0 root (0) root (0) 14347 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00020_source.html\n--rw-r--r-- 0 root (0) root (0) 5621 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00023.html\n--rw-r--r-- 0 root (0) root (0) 7109 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00023_source.html\n--rw-r--r-- 0 root (0) root (0) 6383 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00026.html\n--rw-r--r-- 0 root (0) root (0) 16095 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00026_source.html\n--rw-r--r-- 0 root (0) root (0) 8835 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00029.html\n--rw-r--r-- 0 root (0) root (0) 10531 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00029_source.html\n--rw-r--r-- 0 root (0) root (0) 4958 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00032.html\n--rw-r--r-- 0 root (0) root (0) 6603 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00032_source.html\n--rw-r--r-- 0 root (0) root (0) 4127 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00035.html\n--rw-r--r-- 0 root (0) root (0) 17515 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00038.html\n--rw-r--r-- 0 root (0) root (0) 45457 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00038_source.html\n--rw-r--r-- 0 root (0) root (0) 8193 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00041.html\n--rw-r--r-- 0 root (0) root (0) 41652 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00041_source.html\n--rw-r--r-- 0 root (0) root (0) 10468 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00044.html\n--rw-r--r-- 0 root (0) root (0) 33173 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00044_source.html\n--rw-r--r-- 0 root (0) root (0) 5979 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00047.html\n--rw-r--r-- 0 root (0) root (0) 21113 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00047_source.html\n--rw-r--r-- 0 root (0) root (0) 14827 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00050.html\n--rw-r--r-- 0 root (0) root (0) 23435 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00050_source.html\n--rw-r--r-- 0 root (0) root (0) 9720 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00053.html\n--rw-r--r-- 0 root (0) root (0) 240953 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00053_source.html\n--rw-r--r-- 0 root (0) root (0) 5124 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00056.html\n--rw-r--r-- 0 root (0) root (0) 29705 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00056_source.html\n--rw-r--r-- 0 root (0) root (0) 24717 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00059.html\n--rw-r--r-- 0 root (0) root (0) 122775 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00059_source.html\n--rw-r--r-- 0 root (0) root (0) 6855 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00062.html\n--rw-r--r-- 0 root (0) root (0) 112076 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00062_source.html\n--rw-r--r-- 0 root (0) root (0) 20534 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00065.html\n--rw-r--r-- 0 root (0) root (0) 80039 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00065_source.html\n--rw-r--r-- 0 root (0) root (0) 5346 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00068.html\n--rw-r--r-- 0 root (0) root (0) 33491 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00068_source.html\n--rw-r--r-- 0 root (0) root (0) 8833 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00071.html\n--rw-r--r-- 0 root (0) root (0) 15784 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00071_source.html\n--rw-r--r-- 0 root (0) root (0) 11653 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00074.html\n--rw-r--r-- 0 root (0) root (0) 55283 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00074_source.html\n--rw-r--r-- 0 root (0) root (0) 6157 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00077.html\n--rw-r--r-- 0 root (0) root (0) 19958 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00077_source.html\n--rw-r--r-- 0 root (0) root (0) 4654 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00080.html\n--rw-r--r-- 0 root (0) root (0) 7264 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00080_source.html\n--rw-r--r-- 0 root (0) root (0) 22052 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00083.html\n--rw-r--r-- 0 root (0) root (0) 46229 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00083_source.html\n--rw-r--r-- 0 root (0) root (0) 6186 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00086.html\n--rw-r--r-- 0 root (0) root (0) 17740 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00086_source.html\n--rw-r--r-- 0 root (0) root (0) 5604 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00089.html\n--rw-r--r-- 0 root (0) root (0) 9237 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00089_source.html\n--rw-r--r-- 0 root (0) root (0) 3371 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00092.html\n--rw-r--r-- 0 root (0) root (0) 7706 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00092_source.html\n--rw-r--r-- 0 root (0) root (0) 6780 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00095.html\n--rw-r--r-- 0 root (0) root (0) 8262 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00095_source.html\n--rw-r--r-- 0 root (0) root (0) 7344 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00098.html\n--rw-r--r-- 0 root (0) root (0) 18649 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00098_source.html\n--rw-r--r-- 0 root (0) root (0) 7782 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00101.html\n--rw-r--r-- 0 root (0) root (0) 12395 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00101_source.html\n--rw-r--r-- 0 root (0) root (0) 5114 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00104.html\n--rw-r--r-- 0 root (0) root (0) 9510 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00104_source.html\n--rw-r--r-- 0 root (0) root (0) 7720 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00107.html\n--rw-r--r-- 0 root (0) root (0) 10467 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00107_source.html\n--rw-r--r-- 0 root (0) root (0) 12424 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00110.html\n--rw-r--r-- 0 root (0) root (0) 91584 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00110_source.html\n--rw-r--r-- 0 root (0) root (0) 5397 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00113.html\n--rw-r--r-- 0 root (0) root (0) 14949 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00113_source.html\n--rw-r--r-- 0 root (0) root (0) 6997 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00116.html\n--rw-r--r-- 0 root (0) root (0) 54427 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00116_source.html\n--rw-r--r-- 0 root (0) root (0) 5660 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00119.html\n--rw-r--r-- 0 root (0) root (0) 39763 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00119_source.html\n--rw-r--r-- 0 root (0) root (0) 13174 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00122.html\n--rw-r--r-- 0 root (0) root (0) 35626 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00122_source.html\n--rw-r--r-- 0 root (0) root (0) 5664 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00125.html\n--rw-r--r-- 0 root (0) root (0) 39917 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00125_source.html\n--rw-r--r-- 0 root (0) root (0) 5662 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00128.html\n--rw-r--r-- 0 root (0) root (0) 50072 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00128_source.html\n--rw-r--r-- 0 root (0) root (0) 6381 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00131.html\n--rw-r--r-- 0 root (0) root (0) 10393 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00131_source.html\n--rw-r--r-- 0 root (0) root (0) 4899 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00134.html\n--rw-r--r-- 0 root (0) root (0) 13459 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00134_source.html\n--rw-r--r-- 0 root (0) root (0) 13246 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00137.html\n--rw-r--r-- 0 root (0) root (0) 83988 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00137_source.html\n--rw-r--r-- 0 root (0) root (0) 6400 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00140.html\n--rw-r--r-- 0 root (0) root (0) 151816 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00140_source.html\n--rw-r--r-- 0 root (0) root (0) 5441 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00143.html\n--rw-r--r-- 0 root (0) root (0) 9255 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00143_source.html\n--rw-r--r-- 0 root (0) root (0) 5881 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00146.html\n--rw-r--r-- 0 root (0) root (0) 13121 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00146_source.html\n--rw-r--r-- 0 root (0) root (0) 5204 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00149.html\n--rw-r--r-- 0 root (0) root (0) 29990 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00149_source.html\n--rw-r--r-- 0 root (0) root (0) 7194 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00152.html\n--rw-r--r-- 0 root (0) root (0) 151467 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00152_source.html\n--rw-r--r-- 0 root (0) root (0) 3898 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00155.html\n--rw-r--r-- 0 root (0) root (0) 17881 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00158.html\n--rw-r--r-- 0 root (0) root (0) 79928 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00158_source.html\n--rw-r--r-- 0 root (0) root (0) 4978 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00161.html\n--rw-r--r-- 0 root (0) root (0) 5081 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00164.html\n--rw-r--r-- 0 root (0) root (0) 7897 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00164_source.html\n--rw-r--r-- 0 root (0) root (0) 3383 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00167.html\n--rw-r--r-- 0 root (0) root (0) 51919 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00167_source.html\n--rw-r--r-- 0 root (0) root (0) 10990 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00170.html\n--rw-r--r-- 0 root (0) root (0) 22882 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00170_source.html\n--rw-r--r-- 0 root (0) root (0) 14004 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00173.html\n--rw-r--r-- 0 root (0) root (0) 86151 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00173_source.html\n--rw-r--r-- 0 root (0) root (0) 8689 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00176.html\n--rw-r--r-- 0 root (0) root (0) 15574 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00176_source.html\n--rw-r--r-- 0 root (0) root (0) 5325 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00179.html\n--rw-r--r-- 0 root (0) root (0) 22981 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00179_source.html\n--rw-r--r-- 0 root (0) root (0) 6806 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00182.html\n--rw-r--r-- 0 root (0) root (0) 12869 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00182_source.html\n--rw-r--r-- 0 root (0) root (0) 5059 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00185.html\n--rw-r--r-- 0 root (0) root (0) 23627 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00185_source.html\n--rw-r--r-- 0 root (0) root (0) 4393 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00188.html\n--rw-r--r-- 0 root (0) root (0) 7511 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00188_source.html\n--rw-r--r-- 0 root (0) root (0) 17901 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00191.html\n--rw-r--r-- 0 root (0) root (0) 167128 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00191_source.html\n--rw-r--r-- 0 root (0) root (0) 5766 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00194.html\n--rw-r--r-- 0 root (0) root (0) 16720 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00194_source.html\n--rw-r--r-- 0 root (0) root (0) 7493 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00197.html\n--rw-r--r-- 0 root (0) root (0) 31465 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00197_source.html\n--rw-r--r-- 0 root (0) root (0) 5042 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00200.html\n--rw-r--r-- 0 root (0) root (0) 6949 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00200_source.html\n--rw-r--r-- 0 root (0) root (0) 8322 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00203.html\n--rw-r--r-- 0 root (0) root (0) 40739 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00203_source.html\n--rw-r--r-- 0 root (0) root (0) 30299 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00206.html\n--rw-r--r-- 0 root (0) root (0) 192703 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00206_source.html\n--rw-r--r-- 0 root (0) root (0) 13584 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00209.html\n--rw-r--r-- 0 root (0) root (0) 94213 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00209_source.html\n--rw-r--r-- 0 root (0) root (0) 7123 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00212.html\n--rw-r--r-- 0 root (0) root (0) 23204 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00212_source.html\n--rw-r--r-- 0 root (0) root (0) 6585 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00215.html\n--rw-r--r-- 0 root (0) root (0) 44036 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00215_source.html\n--rw-r--r-- 0 root (0) root (0) 9498 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00218.html\n--rw-r--r-- 0 root (0) root (0) 250587 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00218_source.html\n--rw-r--r-- 0 root (0) root (0) 13604 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00221.html\n--rw-r--r-- 0 root (0) root (0) 28674 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00221_source.html\n--rw-r--r-- 0 root (0) root (0) 7355 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00224.html\n--rw-r--r-- 0 root (0) root (0) 9907 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00224_source.html\n--rw-r--r-- 0 root (0) root (0) 8195 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00227.html\n--rw-r--r-- 0 root (0) root (0) 144459 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00227_source.html\n--rw-r--r-- 0 root (0) root (0) 12793 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00230.html\n--rw-r--r-- 0 root (0) root (0) 124302 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00230_source.html\n--rw-r--r-- 0 root (0) root (0) 6555 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00233.html\n--rw-r--r-- 0 root (0) root (0) 18101 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00233_source.html\n--rw-r--r-- 0 root (0) root (0) 7773 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00236.html\n--rw-r--r-- 0 root (0) root (0) 22676 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00236_source.html\n--rw-r--r-- 0 root (0) root (0) 5324 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00239.html\n--rw-r--r-- 0 root (0) root (0) 10218 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00239_source.html\n--rw-r--r-- 0 root (0) root (0) 10744 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00242.html\n--rw-r--r-- 0 root (0) root (0) 109175 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00242_source.html\n--rw-r--r-- 0 root (0) root (0) 39912 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00245.html\n--rw-r--r-- 0 root (0) root (0) 14840 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00245_source.html\n--rw-r--r-- 0 root (0) root (0) 4309 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00248.html\n--rw-r--r-- 0 root (0) root (0) 17896 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00248_source.html\n--rw-r--r-- 0 root (0) root (0) 5246 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00251.html\n--rw-r--r-- 0 root (0) root (0) 9924 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00251_source.html\n--rw-r--r-- 0 root (0) root (0) 5653 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00254.html\n--rw-r--r-- 0 root (0) root (0) 7232 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00254_source.html\n--rw-r--r-- 0 root (0) root (0) 21360 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00257.html\n--rw-r--r-- 0 root (0) root (0) 122172 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00257_source.html\n--rw-r--r-- 0 root (0) root (0) 6661 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00260.html\n--rw-r--r-- 0 root (0) root (0) 52850 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00260_source.html\n--rw-r--r-- 0 root (0) root (0) 24240 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00263.html\n--rw-r--r-- 0 root (0) root (0) 39035 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00263_source.html\n--rw-r--r-- 0 root (0) root (0) 6818 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00266.html\n--rw-r--r-- 0 root (0) root (0) 100135 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00266_source.html\n--rw-r--r-- 0 root (0) root (0) 5213 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00269.html\n--rw-r--r-- 0 root (0) root (0) 15231 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00269_source.html\n--rw-r--r-- 0 root (0) root (0) 5602 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00272.html\n--rw-r--r-- 0 root (0) root (0) 9345 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00272_source.html\n--rw-r--r-- 0 root (0) root (0) 6286 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00275.html\n--rw-r--r-- 0 root (0) root (0) 21544 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00275_source.html\n--rw-r--r-- 0 root (0) root (0) 60433 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00278.html\n--rw-r--r-- 0 root (0) root (0) 122588 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00278_source.html\n--rw-r--r-- 0 root (0) root (0) 9164 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00281.html\n--rw-r--r-- 0 root (0) root (0) 81299 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00284.html\n--rw-r--r-- 0 root (0) root (0) 145525 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00284_source.html\n--rw-r--r-- 0 root (0) root (0) 24038 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00287.html\n--rw-r--r-- 0 root (0) root (0) 42062 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00287_source.html\n--rw-r--r-- 0 root (0) root (0) 6712 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00293.html\n--rw-r--r-- 0 root (0) root (0) 11002 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00293_source.html\n--rw-r--r-- 0 root (0) root (0) 13870 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00296.html\n--rw-r--r-- 0 root (0) root (0) 20197 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00296_source.html\n--rw-r--r-- 0 root (0) root (0) 9860 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00299.html\n--rw-r--r-- 0 root (0) root (0) 20795 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00299_source.html\n--rw-r--r-- 0 root (0) root (0) 33482 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00302.html\n--rw-r--r-- 0 root (0) root (0) 357624 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00302_source.html\n--rw-r--r-- 0 root (0) root (0) 7918 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00305.html\n--rw-r--r-- 0 root (0) root (0) 127860 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00305_source.html\n--rw-r--r-- 0 root (0) root (0) 14994 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00308.html\n--rw-r--r-- 0 root (0) root (0) 142940 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00308_source.html\n--rw-r--r-- 0 root (0) root (0) 26302 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00311.html\n--rw-r--r-- 0 root (0) root (0) 62033 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00311_source.html\n--rw-r--r-- 0 root (0) root (0) 6924 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00314.html\n--rw-r--r-- 0 root (0) root (0) 8438 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00317.html\n--rw-r--r-- 0 root (0) root (0) 4910 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00320.html\n--rw-r--r-- 0 root (0) root (0) 5355 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00323.html\n--rw-r--r-- 0 root (0) root (0) 41537 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00323_source.html\n--rw-r--r-- 0 root (0) root (0) 4124 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00326.html\n--rw-r--r-- 0 root (0) root (0) 8169 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00329.html\n--rw-r--r-- 0 root (0) root (0) 63827 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00329_source.html\n--rw-r--r-- 0 root (0) root (0) 5637 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00332.html\n--rw-r--r-- 0 root (0) root (0) 33707 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00332_source.html\n--rw-r--r-- 0 root (0) root (0) 23464 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00335.html\n--rw-r--r-- 0 root (0) root (0) 19994 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00338.html\n--rw-r--r-- 0 root (0) root (0) 180715 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00338_source.html\n--rw-r--r-- 0 root (0) root (0) 9140 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00341.html\n--rw-r--r-- 0 root (0) root (0) 173678 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00341_source.html\n--rw-r--r-- 0 root (0) root (0) 11466 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00344.html\n--rw-r--r-- 0 root (0) root (0) 291478 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00344_source.html\n--rw-r--r-- 0 root (0) root (0) 3648 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00347.html\n--rw-r--r-- 0 root (0) root (0) 4981 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00347_source.html\n--rw-r--r-- 0 root (0) root (0) 13224 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00350.html\n--rw-r--r-- 0 root (0) root (0) 179116 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00350_source.html\n--rw-r--r-- 0 root (0) root (0) 3657 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00353.html\n--rw-r--r-- 0 root (0) root (0) 4978 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00353_source.html\n--rw-r--r-- 0 root (0) root (0) 9111 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00356.html\n--rw-r--r-- 0 root (0) root (0) 53122 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00356_source.html\n--rw-r--r-- 0 root (0) root (0) 6676 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00359.html\n--rw-r--r-- 0 root (0) root (0) 58446 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00359_source.html\n--rw-r--r-- 0 root (0) root (0) 8765 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00362.html\n--rw-r--r-- 0 root (0) root (0) 72000 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00362_source.html\n--rw-r--r-- 0 root (0) root (0) 8504 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00365.html\n--rw-r--r-- 0 root (0) root (0) 45745 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00365_source.html\n--rw-r--r-- 0 root (0) root (0) 6914 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00368.html\n--rw-r--r-- 0 root (0) root (0) 47730 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00368_source.html\n--rw-r--r-- 0 root (0) root (0) 6822 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00371.html\n--rw-r--r-- 0 root (0) root (0) 40313 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00371_source.html\n--rw-r--r-- 0 root (0) root (0) 7456 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00374.html\n--rw-r--r-- 0 root (0) root (0) 33695 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00374_source.html\n--rw-r--r-- 0 root (0) root (0) 6611 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00377.html\n--rw-r--r-- 0 root (0) root (0) 19944 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00377_source.html\n--rw-r--r-- 0 root (0) root (0) 7591 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00380.html\n--rw-r--r-- 0 root (0) root (0) 138694 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00380_source.html\n--rw-r--r-- 0 root (0) root (0) 11615 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00383.html\n--rw-r--r-- 0 root (0) root (0) 103142 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00383_source.html\n--rw-r--r-- 0 root (0) root (0) 6490 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00386.html\n--rw-r--r-- 0 root (0) root (0) 34021 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00386_source.html\n--rw-r--r-- 0 root (0) root (0) 6031 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00389.html\n--rw-r--r-- 0 root (0) root (0) 51849 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00389_source.html\n--rw-r--r-- 0 root (0) root (0) 3471 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00392.html\n--rw-r--r-- 0 root (0) root (0) 10170 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00392_source.html\n--rw-r--r-- 0 root (0) root (0) 5048 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00395.html\n--rw-r--r-- 0 root (0) root (0) 23174 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00395_source.html\n--rw-r--r-- 0 root (0) root (0) 16770 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00398.html\n--rw-r--r-- 0 root (0) root (0) 48541 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00398_source.html\n--rw-r--r-- 0 root (0) root (0) 8730 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00401.html\n--rw-r--r-- 0 root (0) root (0) 61448 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00401_source.html\n--rw-r--r-- 0 root (0) root (0) 4365 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00404.html\n--rw-r--r-- 0 root (0) root (0) 5135 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00404_source.html\n--rw-r--r-- 0 root (0) root (0) 7264 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00407.html\n--rw-r--r-- 0 root (0) root (0) 14137 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00407_source.html\n--rw-r--r-- 0 root (0) root (0) 21234 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00410.html\n--rw-r--r-- 0 root (0) root (0) 71204 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00410_source.html\n--rw-r--r-- 0 root (0) root (0) 3471 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00413.html\n--rw-r--r-- 0 root (0) root (0) 9186 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00413_source.html\n--rw-r--r-- 0 root (0) root (0) 3473 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00416.html\n--rw-r--r-- 0 root (0) root (0) 14821 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00416_source.html\n--rw-r--r-- 0 root (0) root (0) 3948 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00419.html\n--rw-r--r-- 0 root (0) root (0) 14429 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00422.html\n--rw-r--r-- 0 root (0) root (0) 51306 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00422_source.html\n--rw-r--r-- 0 root (0) root (0) 3365 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00425.html\n--rw-r--r-- 0 root (0) root (0) 10369 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00425_source.html\n+-rw-r--r-- 0 root (0) root (0) 8193 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00008.html\n+-rw-r--r-- 0 root (0) root (0) 41652 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00008_source.html\n+-rw-r--r-- 0 root (0) root (0) 30299 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00011.html\n+-rw-r--r-- 0 root (0) root (0) 192703 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00011_source.html\n+-rw-r--r-- 0 root (0) root (0) 21234 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00014.html\n+-rw-r--r-- 0 root (0) root (0) 71204 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00014_source.html\n+-rw-r--r-- 0 root (0) root (0) 5766 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00017.html\n+-rw-r--r-- 0 root (0) root (0) 16720 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00017_source.html\n+-rw-r--r-- 0 root (0) root (0) 8195 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00020.html\n+-rw-r--r-- 0 root (0) root (0) 144459 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00020_source.html\n+-rw-r--r-- 0 root (0) root (0) 20534 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00023.html\n+-rw-r--r-- 0 root (0) root (0) 80039 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00023_source.html\n+-rw-r--r-- 0 root (0) root (0) 8689 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00026.html\n+-rw-r--r-- 0 root (0) root (0) 15574 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00026_source.html\n+-rw-r--r-- 0 root (0) root (0) 9140 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00029.html\n+-rw-r--r-- 0 root (0) root (0) 173678 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00029_source.html\n+-rw-r--r-- 0 root (0) root (0) 9111 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00035.html\n+-rw-r--r-- 0 root (0) root (0) 53122 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00035_source.html\n+-rw-r--r-- 0 root (0) root (0) 11466 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00038.html\n+-rw-r--r-- 0 root (0) root (0) 291478 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00038_source.html\n+-rw-r--r-- 0 root (0) root (0) 8504 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00041.html\n+-rw-r--r-- 0 root (0) root (0) 45745 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00041_source.html\n+-rw-r--r-- 0 root (0) root (0) 3657 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00044.html\n+-rw-r--r-- 0 root (0) root (0) 4978 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00044_source.html\n+-rw-r--r-- 0 root (0) root (0) 6031 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00047.html\n+-rw-r--r-- 0 root (0) root (0) 51849 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00047_source.html\n+-rw-r--r-- 0 root (0) root (0) 6822 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00050.html\n+-rw-r--r-- 0 root (0) root (0) 40313 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00050_source.html\n+-rw-r--r-- 0 root (0) root (0) 3648 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00053.html\n+-rw-r--r-- 0 root (0) root (0) 4981 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00053_source.html\n+-rw-r--r-- 0 root (0) root (0) 7591 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00056.html\n+-rw-r--r-- 0 root (0) root (0) 138694 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00056_source.html\n+-rw-r--r-- 0 root (0) root (0) 6490 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00059.html\n+-rw-r--r-- 0 root (0) root (0) 34021 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00059_source.html\n+-rw-r--r-- 0 root (0) root (0) 3471 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00062.html\n+-rw-r--r-- 0 root (0) root (0) 10170 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00062_source.html\n+-rw-r--r-- 0 root (0) root (0) 6676 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00065.html\n+-rw-r--r-- 0 root (0) root (0) 58446 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00065_source.html\n+-rw-r--r-- 0 root (0) root (0) 19994 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00068.html\n+-rw-r--r-- 0 root (0) root (0) 180715 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00068_source.html\n+-rw-r--r-- 0 root (0) root (0) 6914 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00071.html\n+-rw-r--r-- 0 root (0) root (0) 47730 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00071_source.html\n+-rw-r--r-- 0 root (0) root (0) 8765 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00074.html\n+-rw-r--r-- 0 root (0) root (0) 72000 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00074_source.html\n+-rw-r--r-- 0 root (0) root (0) 5637 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00077.html\n+-rw-r--r-- 0 root (0) root (0) 33707 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00077_source.html\n+-rw-r--r-- 0 root (0) root (0) 23464 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00080.html\n+-rw-r--r-- 0 root (0) root (0) 7456 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00083.html\n+-rw-r--r-- 0 root (0) root (0) 33695 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00083_source.html\n+-rw-r--r-- 0 root (0) root (0) 11615 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00086.html\n+-rw-r--r-- 0 root (0) root (0) 103142 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00086_source.html\n+-rw-r--r-- 0 root (0) root (0) 6611 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00089.html\n+-rw-r--r-- 0 root (0) root (0) 19944 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00089_source.html\n+-rw-r--r-- 0 root (0) root (0) 13224 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00092.html\n+-rw-r--r-- 0 root (0) root (0) 179116 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00092_source.html\n+-rw-r--r-- 0 root (0) root (0) 5325 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00095.html\n+-rw-r--r-- 0 root (0) root (0) 22981 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00095_source.html\n+-rw-r--r-- 0 root (0) root (0) 8730 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00098.html\n+-rw-r--r-- 0 root (0) root (0) 61448 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00098_source.html\n+-rw-r--r-- 0 root (0) root (0) 4124 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00101.html\n+-rw-r--r-- 0 root (0) root (0) 14429 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00104.html\n+-rw-r--r-- 0 root (0) root (0) 51306 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00104_source.html\n+-rw-r--r-- 0 root (0) root (0) 6585 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00107.html\n+-rw-r--r-- 0 root (0) root (0) 44036 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00107_source.html\n+-rw-r--r-- 0 root (0) root (0) 7194 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00110.html\n+-rw-r--r-- 0 root (0) root (0) 151467 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00110_source.html\n+-rw-r--r-- 0 root (0) root (0) 6661 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00113.html\n+-rw-r--r-- 0 root (0) root (0) 52850 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00113_source.html\n+-rw-r--r-- 0 root (0) root (0) 4127 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00116.html\n+-rw-r--r-- 0 root (0) root (0) 6855 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00119.html\n+-rw-r--r-- 0 root (0) root (0) 112076 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00119_source.html\n+-rw-r--r-- 0 root (0) root (0) 6555 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00122.html\n+-rw-r--r-- 0 root (0) root (0) 18101 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00122_source.html\n+-rw-r--r-- 0 root (0) root (0) 7782 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00125.html\n+-rw-r--r-- 0 root (0) root (0) 12395 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00125_source.html\n+-rw-r--r-- 0 root (0) root (0) 3948 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00128.html\n+-rw-r--r-- 0 root (0) root (0) 7344 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00131.html\n+-rw-r--r-- 0 root (0) root (0) 18649 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00131_source.html\n+-rw-r--r-- 0 root (0) root (0) 10468 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00134.html\n+-rw-r--r-- 0 root (0) root (0) 33173 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00134_source.html\n+-rw-r--r-- 0 root (0) root (0) 7264 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00137.html\n+-rw-r--r-- 0 root (0) root (0) 14137 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00137_source.html\n+-rw-r--r-- 0 root (0) root (0) 5114 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00140.html\n+-rw-r--r-- 0 root (0) root (0) 9510 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00140_source.html\n+-rw-r--r-- 0 root (0) root (0) 3371 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00143.html\n+-rw-r--r-- 0 root (0) root (0) 7706 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00143_source.html\n+-rw-r--r-- 0 root (0) root (0) 6157 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00146.html\n+-rw-r--r-- 0 root (0) root (0) 19958 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00146_source.html\n+-rw-r--r-- 0 root (0) root (0) 8438 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00149.html\n+-rw-r--r-- 0 root (0) root (0) 21360 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00152.html\n+-rw-r--r-- 0 root (0) root (0) 122172 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00152_source.html\n+-rw-r--r-- 0 root (0) root (0) 3817 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00155.html\n+-rw-r--r-- 0 root (0) root (0) 6524 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00155_source.html\n+-rw-r--r-- 0 root (0) root (0) 5979 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00158.html\n+-rw-r--r-- 0 root (0) root (0) 21113 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00158_source.html\n+-rw-r--r-- 0 root (0) root (0) 5124 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00161.html\n+-rw-r--r-- 0 root (0) root (0) 29705 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00161_source.html\n+-rw-r--r-- 0 root (0) root (0) 8835 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00164.html\n+-rw-r--r-- 0 root (0) root (0) 10531 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00164_source.html\n+-rw-r--r-- 0 root (0) root (0) 5653 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00167.html\n+-rw-r--r-- 0 root (0) root (0) 7232 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00167_source.html\n+-rw-r--r-- 0 root (0) root (0) 4393 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00170.html\n+-rw-r--r-- 0 root (0) root (0) 7511 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00170_source.html\n+-rw-r--r-- 0 root (0) root (0) 8169 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00173.html\n+-rw-r--r-- 0 root (0) root (0) 63827 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00173_source.html\n+-rw-r--r-- 0 root (0) root (0) 4654 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00176.html\n+-rw-r--r-- 0 root (0) root (0) 7264 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00176_source.html\n+-rw-r--r-- 0 root (0) root (0) 3365 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00179.html\n+-rw-r--r-- 0 root (0) root (0) 10369 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00179_source.html\n+-rw-r--r-- 0 root (0) root (0) 5246 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00182.html\n+-rw-r--r-- 0 root (0) root (0) 9924 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00182_source.html\n+-rw-r--r-- 0 root (0) root (0) 13584 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00185.html\n+-rw-r--r-- 0 root (0) root (0) 94213 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00185_source.html\n+-rw-r--r-- 0 root (0) root (0) 26302 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00188.html\n+-rw-r--r-- 0 root (0) root (0) 62033 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00188_source.html\n+-rw-r--r-- 0 root (0) root (0) 3473 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00191.html\n+-rw-r--r-- 0 root (0) root (0) 14821 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00191_source.html\n+-rw-r--r-- 0 root (0) root (0) 3471 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00194.html\n+-rw-r--r-- 0 root (0) root (0) 9186 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00194_source.html\n+-rw-r--r-- 0 root (0) root (0) 17515 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00197.html\n+-rw-r--r-- 0 root (0) root (0) 45457 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00197_source.html\n+-rw-r--r-- 0 root (0) root (0) 7493 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00200.html\n+-rw-r--r-- 0 root (0) root (0) 31465 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00200_source.html\n+-rw-r--r-- 0 root (0) root (0) 7773 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00203.html\n+-rw-r--r-- 0 root (0) root (0) 22676 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00203_source.html\n+-rw-r--r-- 0 root (0) root (0) 3898 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00206.html\n+-rw-r--r-- 0 root (0) root (0) 17881 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00209.html\n+-rw-r--r-- 0 root (0) root (0) 79928 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00209_source.html\n+-rw-r--r-- 0 root (0) root (0) 5274 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00212.html\n+-rw-r--r-- 0 root (0) root (0) 11329 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00212_source.html\n+-rw-r--r-- 0 root (0) root (0) 14994 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00215.html\n+-rw-r--r-- 0 root (0) root (0) 142940 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00215_source.html\n+-rw-r--r-- 0 root (0) root (0) 5602 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00218.html\n+-rw-r--r-- 0 root (0) root (0) 9345 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00218_source.html\n+-rw-r--r-- 0 root (0) root (0) 5604 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00221.html\n+-rw-r--r-- 0 root (0) root (0) 9237 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00221_source.html\n+-rw-r--r-- 0 root (0) root (0) 10744 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00224.html\n+-rw-r--r-- 0 root (0) root (0) 109175 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00224_source.html\n+-rw-r--r-- 0 root (0) root (0) 5204 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00227.html\n+-rw-r--r-- 0 root (0) root (0) 29990 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00227_source.html\n+-rw-r--r-- 0 root (0) root (0) 9164 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00230.html\n+-rw-r--r-- 0 root (0) root (0) 16770 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00233.html\n+-rw-r--r-- 0 root (0) root (0) 48541 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00233_source.html\n+-rw-r--r-- 0 root (0) root (0) 5355 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00236.html\n+-rw-r--r-- 0 root (0) root (0) 41537 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00236_source.html\n+-rw-r--r-- 0 root (0) root (0) 7720 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00239.html\n+-rw-r--r-- 0 root (0) root (0) 10467 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00239_source.html\n+-rw-r--r-- 0 root (0) root (0) 8833 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00242.html\n+-rw-r--r-- 0 root (0) root (0) 15784 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00242_source.html\n+-rw-r--r-- 0 root (0) root (0) 4309 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00245.html\n+-rw-r--r-- 0 root (0) root (0) 17896 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00245_source.html\n+-rw-r--r-- 0 root (0) root (0) 7355 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00248.html\n+-rw-r--r-- 0 root (0) root (0) 9907 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00248_source.html\n+-rw-r--r-- 0 root (0) root (0) 13604 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00251.html\n+-rw-r--r-- 0 root (0) root (0) 28674 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00251_source.html\n+-rw-r--r-- 0 root (0) root (0) 4910 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00254.html\n+-rw-r--r-- 0 root (0) root (0) 4992 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00257.html\n+-rw-r--r-- 0 root (0) root (0) 31443 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00257_source.html\n+-rw-r--r-- 0 root (0) root (0) 24240 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00260.html\n+-rw-r--r-- 0 root (0) root (0) 39035 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00260_source.html\n+-rw-r--r-- 0 root (0) root (0) 5213 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00263.html\n+-rw-r--r-- 0 root (0) root (0) 15231 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00263_source.html\n+-rw-r--r-- 0 root (0) root (0) 6806 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00266.html\n+-rw-r--r-- 0 root (0) root (0) 12869 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00266_source.html\n+-rw-r--r-- 0 root (0) root (0) 24717 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00269.html\n+-rw-r--r-- 0 root (0) root (0) 122775 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00269_source.html\n+-rw-r--r-- 0 root (0) root (0) 8322 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00272.html\n+-rw-r--r-- 0 root (0) root (0) 40739 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00272_source.html\n+-rw-r--r-- 0 root (0) root (0) 3383 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00275.html\n+-rw-r--r-- 0 root (0) root (0) 51919 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00275_source.html\n+-rw-r--r-- 0 root (0) root (0) 7123 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00278.html\n+-rw-r--r-- 0 root (0) root (0) 23204 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00278_source.html\n+-rw-r--r-- 0 root (0) root (0) 5081 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00281.html\n+-rw-r--r-- 0 root (0) root (0) 7897 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00281_source.html\n+-rw-r--r-- 0 root (0) root (0) 5664 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00284.html\n+-rw-r--r-- 0 root (0) root (0) 39917 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00284_source.html\n+-rw-r--r-- 0 root (0) root (0) 6400 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00287.html\n+-rw-r--r-- 0 root (0) root (0) 151816 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00287_source.html\n+-rw-r--r-- 0 root (0) root (0) 13246 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00290.html\n+-rw-r--r-- 0 root (0) root (0) 83988 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00290_source.html\n+-rw-r--r-- 0 root (0) root (0) 5441 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00293.html\n+-rw-r--r-- 0 root (0) root (0) 9255 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00293_source.html\n+-rw-r--r-- 0 root (0) root (0) 6381 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00296.html\n+-rw-r--r-- 0 root (0) root (0) 10393 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00296_source.html\n+-rw-r--r-- 0 root (0) root (0) 4899 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00299.html\n+-rw-r--r-- 0 root (0) root (0) 13459 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00299_source.html\n+-rw-r--r-- 0 root (0) root (0) 5397 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00302.html\n+-rw-r--r-- 0 root (0) root (0) 14949 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00302_source.html\n+-rw-r--r-- 0 root (0) root (0) 12424 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00305.html\n+-rw-r--r-- 0 root (0) root (0) 91584 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00305_source.html\n+-rw-r--r-- 0 root (0) root (0) 13174 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00308.html\n+-rw-r--r-- 0 root (0) root (0) 35626 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00308_source.html\n+-rw-r--r-- 0 root (0) root (0) 5881 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00311.html\n+-rw-r--r-- 0 root (0) root (0) 13121 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00311_source.html\n+-rw-r--r-- 0 root (0) root (0) 5660 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00314.html\n+-rw-r--r-- 0 root (0) root (0) 39763 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00314_source.html\n+-rw-r--r-- 0 root (0) root (0) 6997 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00317.html\n+-rw-r--r-- 0 root (0) root (0) 54427 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00317_source.html\n+-rw-r--r-- 0 root (0) root (0) 5662 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00320.html\n+-rw-r--r-- 0 root (0) root (0) 50072 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00320_source.html\n+-rw-r--r-- 0 root (0) root (0) 9498 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00323.html\n+-rw-r--r-- 0 root (0) root (0) 250587 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00323_source.html\n+-rw-r--r-- 0 root (0) root (0) 14004 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00326.html\n+-rw-r--r-- 0 root (0) root (0) 86151 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00326_source.html\n+-rw-r--r-- 0 root (0) root (0) 6924 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00329.html\n+-rw-r--r-- 0 root (0) root (0) 12793 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00332.html\n+-rw-r--r-- 0 root (0) root (0) 124302 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00332_source.html\n+-rw-r--r-- 0 root (0) root (0) 22052 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00335.html\n+-rw-r--r-- 0 root (0) root (0) 46229 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00335_source.html\n+-rw-r--r-- 0 root (0) root (0) 5042 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00338.html\n+-rw-r--r-- 0 root (0) root (0) 6949 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00338_source.html\n+-rw-r--r-- 0 root (0) root (0) 11653 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00341.html\n+-rw-r--r-- 0 root (0) root (0) 55283 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00341_source.html\n+-rw-r--r-- 0 root (0) root (0) 17901 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00344.html\n+-rw-r--r-- 0 root (0) root (0) 167128 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00344_source.html\n+-rw-r--r-- 0 root (0) root (0) 6818 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00347.html\n+-rw-r--r-- 0 root (0) root (0) 100135 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00347_source.html\n+-rw-r--r-- 0 root (0) root (0) 60433 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00350.html\n+-rw-r--r-- 0 root (0) root (0) 122588 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00350_source.html\n+-rw-r--r-- 0 root (0) root (0) 5621 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00353.html\n+-rw-r--r-- 0 root (0) root (0) 7109 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00353_source.html\n+-rw-r--r-- 0 root (0) root (0) 6383 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00356.html\n+-rw-r--r-- 0 root (0) root (0) 16095 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00356_source.html\n+-rw-r--r-- 0 root (0) root (0) 7918 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00359.html\n+-rw-r--r-- 0 root (0) root (0) 127860 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00359_source.html\n+-rw-r--r-- 0 root (0) root (0) 4978 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00362.html\n+-rw-r--r-- 0 root (0) root (0) 14827 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00365.html\n+-rw-r--r-- 0 root (0) root (0) 23435 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00365_source.html\n+-rw-r--r-- 0 root (0) root (0) 4365 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00368.html\n+-rw-r--r-- 0 root (0) root (0) 5135 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00368_source.html\n+-rw-r--r-- 0 root (0) root (0) 5048 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00371.html\n+-rw-r--r-- 0 root (0) root (0) 23174 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00371_source.html\n+-rw-r--r-- 0 root (0) root (0) 10990 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00374.html\n+-rw-r--r-- 0 root (0) root (0) 22882 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00374_source.html\n+-rw-r--r-- 0 root (0) root (0) 5324 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00377.html\n+-rw-r--r-- 0 root (0) root (0) 10218 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00377_source.html\n+-rw-r--r-- 0 root (0) root (0) 5346 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00380.html\n+-rw-r--r-- 0 root (0) root (0) 33491 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00380_source.html\n+-rw-r--r-- 0 root (0) root (0) 9720 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00383.html\n+-rw-r--r-- 0 root (0) root (0) 240953 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00383_source.html\n+-rw-r--r-- 0 root (0) root (0) 13870 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00386.html\n+-rw-r--r-- 0 root (0) root (0) 20197 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00386_source.html\n+-rw-r--r-- 0 root (0) root (0) 81299 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00389.html\n+-rw-r--r-- 0 root (0) root (0) 145525 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00389_source.html\n+-rw-r--r-- 0 root (0) root (0) 24038 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00392.html\n+-rw-r--r-- 0 root (0) root (0) 42062 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00392_source.html\n+-rw-r--r-- 0 root (0) root (0) 6712 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00395.html\n+-rw-r--r-- 0 root (0) root (0) 11002 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00395_source.html\n+-rw-r--r-- 0 root (0) root (0) 9860 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00398.html\n+-rw-r--r-- 0 root (0) root (0) 20795 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00398_source.html\n+-rw-r--r-- 0 root (0) root (0) 33482 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00401.html\n+-rw-r--r-- 0 root (0) root (0) 357624 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00401_source.html\n+-rw-r--r-- 0 root (0) root (0) 6286 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00404.html\n+-rw-r--r-- 0 root (0) root (0) 21544 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00404_source.html\n+-rw-r--r-- 0 root (0) root (0) 6780 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00407.html\n+-rw-r--r-- 0 root (0) root (0) 8262 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00407_source.html\n+-rw-r--r-- 0 root (0) root (0) 39912 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00410.html\n+-rw-r--r-- 0 root (0) root (0) 14840 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00410_source.html\n+-rw-r--r-- 0 root (0) root (0) 4767 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00413.html\n+-rw-r--r-- 0 root (0) root (0) 14347 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00413_source.html\n+-rw-r--r-- 0 root (0) root (0) 3371 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00416.html\n+-rw-r--r-- 0 root (0) root (0) 88030 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00416_source.html\n+-rw-r--r-- 0 root (0) root (0) 4958 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00419.html\n+-rw-r--r-- 0 root (0) root (0) 6603 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00419_source.html\n+-rw-r--r-- 0 root (0) root (0) 6186 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00422.html\n+-rw-r--r-- 0 root (0) root (0) 17740 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00422_source.html\n+-rw-r--r-- 0 root (0) root (0) 5059 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00425.html\n+-rw-r--r-- 0 root (0) root (0) 23627 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00425_source.html\n -rw-r--r-- 0 root (0) root (0) 5173 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00428.html\n -rw-r--r-- 0 root (0) root (0) 49335 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00428_source.html\n -rw-r--r-- 0 root (0) root (0) 7896 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00431.html\n -rw-r--r-- 0 root (0) root (0) 5292 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00432.html\n -rw-r--r-- 0 root (0) root (0) 262467 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00433.html\n -rw-r--r-- 0 root (0) root (0) 27946 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00433.png\n -rw-r--r-- 0 root (0) root (0) 39664 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a00434.html\n@@ -1145,20 +1145,20 @@\n -rw-r--r-- 0 root (0) root (0) 3701 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a03341.html\n -rw-r--r-- 0 root (0) root (0) 5804 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a03344.html\n -rw-r--r-- 0 root (0) root (0) 9948 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a03345.html\n -rw-r--r-- 0 root (0) root (0) 49073 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a03348.html\n -rw-r--r-- 0 root (0) root (0) 3215 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04592.html\n -rw-r--r-- 0 root (0) root (0) 3042 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04594.html\n -rw-r--r-- 0 root (0) root (0) 3042 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04597.html\n--rw-r--r-- 0 root (0) root (0) 4102 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04600.html\n--rw-r--r-- 0 root (0) root (0) 5555 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04600_source.html\n--rw-r--r-- 0 root (0) root (0) 8165 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04603.html\n--rw-r--r-- 0 root (0) root (0) 81796 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04603_source.html\n--rw-r--r-- 0 root (0) root (0) 23574 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04606.html\n--rw-r--r-- 0 root (0) root (0) 44261 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04606_source.html\n+-rw-r--r-- 0 root (0) root (0) 8165 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04600.html\n+-rw-r--r-- 0 root (0) root (0) 81796 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04600_source.html\n+-rw-r--r-- 0 root (0) root (0) 23574 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04603.html\n+-rw-r--r-- 0 root (0) root (0) 44261 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04603_source.html\n+-rw-r--r-- 0 root (0) root (0) 4102 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04606.html\n+-rw-r--r-- 0 root (0) root (0) 5555 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04606_source.html\n -rw-r--r-- 0 root (0) root (0) 48344 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04609.html\n -rw-r--r-- 0 root (0) root (0) 136622 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/a04609_source.html\n -rw-r--r-- 0 root (0) root (0) 133563 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/annotated.html\n -rw-r--r-- 0 root (0) root (0) 676 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/bc_s.png\n -rw-r--r-- 0 root (0) root (0) 635 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/bc_sd.png\n -rw-r--r-- 0 root (0) root (0) 49857 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/classes.html\n -rw-r--r-- 0 root (0) root (0) 132 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/closed.png\n@@ -1185,15 +1185,15 @@\n -rw-r--r-- 0 root (0) root (0) 2382 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dir_be46aaae597ce098e36afa8d6ef4f49b_dep.png\n -rw-r--r-- 0 root (0) root (0) 4890 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dir_cf308425303dd5c426fac7b7f2967d96.html\n -rw-r--r-- 0 root (0) root (0) 1599 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dir_cf308425303dd5c426fac7b7f2967d96_dep.png\n -rw-r--r-- 0 root (0) root (0) 49658 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dir_e151556194dc695299293609645e9437.html\n -rw-r--r-- 0 root (0) root (0) 11161 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dir_e151556194dc695299293609645e9437_dep.png\n -rw-r--r-- 0 root (0) root (0) 3668 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dir_e68e8157741866f444e17edd764ebbae.html\n -rw-r--r-- 0 root (0) root (0) 45631 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/doxygen.css\n--rw-r--r-- 0 root (0) root (0) 165889 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dune-common.tag.gz\n+-rw-r--r-- 0 root (0) root (0) 165953 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dune-common.tag.gz\n -rw-r--r-- 0 root (0) root (0) 7704 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/dynsections.js\n -rw-r--r-- 0 root (0) root (0) 56072 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/files.html\n -rw-r--r-- 0 root (0) root (0) 1145 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/form_0.png\n -rw-r--r-- 0 root (0) root (0) 1167 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/form_0_dark.png\n -rw-r--r-- 0 root (0) root (0) 1153 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/form_1.png\n -rw-r--r-- 0 root (0) root (0) 403 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/form_10.png\n -rw-r--r-- 0 root (0) root (0) 422 2024-11-22 14:28:16.000000 ./usr/share/doc/libdune-common-doc/doxygen/form_10_dark.png\n"}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00008.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00008.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: vc.hh File Reference\n+dune-common: genericiterator.hh File Reference\n \n \n \n \n \n \n \n@@ -69,25 +69,61 @@\n \n
\n \n
\n \n
\n-
vc.hh File Reference
\n+
\n+Classes |\n+Namespaces
\n+
genericiterator.hh File Reference
\n
\n
\n \n-

Compatibility header for including <Vc/Vc> \n+

Implements a generic iterator class for writing stl conformant iterators. \n More...

\n-\n+
#include <dune/common/iteratorfacades.hh>
\n+#include <cassert>
\n+
\n

Go to the source code of this file.

\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

\n+Classes

struct  Dune::const_reference< R >
 Get the 'const' version of a reference to a mutable object. More...
 
struct  Dune::const_reference< const R >
 
struct  Dune::const_reference< R & >
 
struct  Dune::const_reference< const R & >
 
struct  Dune::mutable_reference< R >
 get the 'mutable' version of a reference to a const object More...
 
struct  Dune::mutable_reference< const R >
 
struct  Dune::mutable_reference< R & >
 
struct  Dune::mutable_reference< const R & >
 
class  Dune::GenericIterator< C, T, R, D, IteratorFacade >
 Generic class for stl-conforming iterators for container classes with operator[]. More...
 
\n+\n+\n+\n+\n+

\n+Namespaces

namespace  Dune
 Dune namespace.
 
\n

Detailed Description

\n-

Compatibility header for including <Vc/Vc>

\n-

Certain versions (1.3.2) of Vc (https://github.com/VcDevel/Vc) have a problem with certain compiler versions (g++ 7.2.0) in c++17 mode, see #88.

\n+

Implements a generic iterator class for writing stl conformant iterators.

\n+

Using this generic iterator writing iterators for containers that implement operator[] is only a matter of seconds.

\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,15 +1,46 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-vc.hh File Reference\n-Compatibility header for including _\bM_\bo_\br_\be_\b._\b._\b.\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+genericiterator.hh File Reference\n+Implements a generic iterator class for writing stl conformant iterators.\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh>\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b>\n+\u00a0 Get the 'const' version of a reference to a mutable object. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b&_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b>\n+\u00a0 get the 'mutable' version of a reference to a const object _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b&_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bC_\b,_\b _\bT_\b,_\b _\bR_\b,_\b _\bD_\b,_\b _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b _\b>\n+\u00a0 Generic class for stl-conforming iterators for container classes with\n+ operator[]. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n+\u00a0 _\bD_\bu_\bn_\be namespace.\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Compatibility header for including \n-Certain versions (1.3.2) of Vc (_\bh_\bt_\bt_\bp_\bs_\b:_\b/_\b/_\bg_\bi_\bt_\bh_\bu_\bb_\b._\bc_\bo_\bm_\b/_\bV_\bc_\bD_\be_\bv_\be_\bl_\b/_\bV_\bc) have a problem\n-with certain compiler versions (g++ 7.2.0) in c++17 mode, see #88.\n+Implements a generic iterator class for writing stl conformant iterators.\n+Using this generic iterator writing iterators for containers that implement\n+operator[] is only a matter of seconds.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00008_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00008_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: vc.hh Source File\n+dune-common: genericiterator.hh Source File\n \n \n \n \n \n \n \n@@ -74,38 +74,240 @@\n \n
\n \n
\n
\n
\n-
vc.hh
\n+
genericiterator.hh
\n
\n
\n-Go to the documentation of this file.
1// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
\n-
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n-
3#ifndef DUNE_COMMON_VC_HH
\n-
4#define DUNE_COMMON_VC_HH
\n-
5
\n-
15#if HAVE_VC
\n-
16
\n-
17// include Vc's macro definitions
\n-
18#include <Vc/global.h>
\n-
19
\n-
20// undefine the macro that signals C++17 support, if set
\n-
21#ifdef Vc_CXX17
\n-
22#undef Vc_CXX17
\n-
23#endif
\n-
24
\n-
25// include the rest of Vc
\n-
26#include <Vc/Vc>
\n-
27
\n-
28#endif // HAVE_VC
\n-
29
\n-
30#endif // DUNE_COMMON_VC_HH
\n+Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
\n+
2// vi: set et ts=4 sw=2 sts=2:
\n+
3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
\n+
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n+
5#ifndef DUNE_GENERICITERATOR_HH
\n+
6#define DUNE_GENERICITERATOR_HH
\n+
7
\n+\n+
9#include <cassert>
\n+
10
\n+
11namespace Dune {
\n+
12
\n+
85 template<class R>
\n+
\n+\n+
87 {
\n+
88 typedef const R type;
\n+
89 };
\n+
\n+
90
\n+
91 template<class R>
\n+
\n+
92 struct const_reference<const R>
\n+
93 {
\n+
94 typedef const R type;
\n+
95 };
\n+
\n+
96
\n+
97 template<class R>
\n+
\n+
98 struct const_reference<R&>
\n+
99 {
\n+
100 typedef const R& type;
\n+
101 };
\n+
\n+
102
\n+
103 template<class R>
\n+
\n+
104 struct const_reference<const R&>
\n+
105 {
\n+
106 typedef const R& type;
\n+
107 };
\n+
\n+
108
\n+
114 template<class R>
\n+
\n+\n+
116 {
\n+
117 typedef R type;
\n+
118 };
\n+
\n+
119
\n+
120 template<class R>
\n+
\n+
121 struct mutable_reference<const R>
\n+
122 {
\n+
123 typedef R type;
\n+
124 };
\n+
\n+
125
\n+
126 template<class R>
\n+
\n+\n+
128 {
\n+
129 typedef R& type;
\n+
130 };
\n+
\n+
131
\n+
132 template<class R>
\n+
\n+
133 struct mutable_reference<const R&>
\n+
134 {
\n+
135 typedef R& type;
\n+
136 };
\n+
\n+
137
\n+
149 template<class C, class T, class R=T&, class D = std::ptrdiff_t,
\n+
150 template<class,class,class,class> class IteratorFacade=RandomAccessIteratorFacade>
\n+
\n+\n+
152 public IteratorFacade<GenericIterator<C,T,R,D,IteratorFacade>,T,R,D>
\n+
153 {
\n+
154 friend class GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade>;
\n+
155 friend class GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade>;
\n+
156
\n+
157 typedef GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade> MutableIterator;
\n+
158 typedef GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade> ConstIterator;
\n+
159
\n+
160 public:
\n+
161
\n+
170 typedef C Container;
\n+
171
\n+
177 typedef T Value;
\n+
178
\n+
182 typedef D DifferenceType;
\n+
183
\n+
187 typedef R Reference;
\n+
188
\n+
189 // Constructors needed by the base iterators
\n+
\n+
190 GenericIterator() : container_(0), position_(0)
\n+
191 {}
\n+
\n+
192
\n+
\n+\n+
201 : container_(&cont), position_(pos)
\n+
202 {}
\n+
\n+
203
\n+
\n+
211 GenericIterator(const MutableIterator& other) : container_(other.container_), position_(other.position_)
\n+
212 {}
\n+
\n+
213
\n+
\n+
223 GenericIterator(const ConstIterator& other) : container_(other.container_), position_(other.position_)
\n+
224 {}
\n+
\n+
225
\n+
226 // Methods needed by the forward iterator
\n+
\n+
227 bool equals(const MutableIterator & other) const
\n+
228 {
\n+
229 return position_ == other.position_ && container_ == other.container_;
\n+
230 }
\n+
\n+
231
\n+
\n+
232 bool equals(const ConstIterator & other) const
\n+
233 {
\n+
234 return position_ == other.position_ && container_ == other.container_;
\n+
235 }
\n+
\n+
236
\n+
\n+\n+
238 return container_->operator[](position_);
\n+
239 }
\n+
\n+
240
\n+
\n+
241 void increment(){
\n+
242 ++position_;
\n+
243 }
\n+
\n+
244
\n+
245 // Additional function needed by BidirectionalIterator
\n+
\n+
246 void decrement(){
\n+
247 --position_;
\n+
248 }
\n+
\n+
249
\n+
250 // Additional function needed by RandomAccessIterator
\n+
\n+\n+
252 return container_->operator[](position_+i);
\n+
253 }
\n+
\n+
254
\n+
\n+\n+
256 position_=position_+n;
\n+
257 }
\n+
\n+
258
\n+
\n+\n+
260 {
\n+
261 assert(other.container_==container_);
\n+
262 return other.position_ - position_;
\n+
263 }
\n+
\n+
264
\n+
\n+\n+
266 {
\n+
267 assert(other.container_==container_);
\n+
268 return other.position_ - position_;
\n+
269 }
\n+
\n+
270
\n+
271 private:
\n+
272 Container *container_;
\n+
273 DifferenceType position_;
\n+
274 };
\n+
\n+
275
\n+
278} // end namespace Dune
\n+
279
\n+
280#endif
\n+
This file implements iterator facade classes for writing stl conformant iterators.
\n+
STL namespace.
\n+
Dune namespace.
Definition alignedallocator.hh:13
\n+
Get the 'const' version of a reference to a mutable object.
Definition genericiterator.hh:87
\n+
const R type
Definition genericiterator.hh:88
\n+
const R type
Definition genericiterator.hh:94
\n+
const R & type
Definition genericiterator.hh:100
\n+
const R & type
Definition genericiterator.hh:106
\n+
get the 'mutable' version of a reference to a const object
Definition genericiterator.hh:116
\n+
R type
Definition genericiterator.hh:117
\n+
R type
Definition genericiterator.hh:123
\n+
R & type
Definition genericiterator.hh:129
\n+
Generic class for stl-conforming iterators for container classes with operator[].
Definition genericiterator.hh:153
\n+
GenericIterator(const MutableIterator &other)
Copy constructor.
Definition genericiterator.hh:211
\n+
bool equals(const MutableIterator &other) const
Definition genericiterator.hh:227
\n+
Reference elementAt(DifferenceType i) const
Definition genericiterator.hh:251
\n+
void increment()
Definition genericiterator.hh:241
\n+
GenericIterator(const ConstIterator &other)
Copy constructor.
Definition genericiterator.hh:223
\n+
void advance(DifferenceType n)
Definition genericiterator.hh:255
\n+
GenericIterator(Container &cont, DifferenceType pos)
Constructor.
Definition genericiterator.hh:200
\n+
D DifferenceType
The type of the difference between two positions.
Definition genericiterator.hh:182
\n+
R Reference
The type of the reference to the values accessed.
Definition genericiterator.hh:187
\n+
DifferenceType distanceTo(const MutableIterator &other) const
Definition genericiterator.hh:259
\n+
C Container
The type of container we are an iterator for.
Definition genericiterator.hh:170
\n+
T Value
The value type of the iterator.
Definition genericiterator.hh:177
\n+
DifferenceType distanceTo(const ConstIterator &other) const
Definition genericiterator.hh:265
\n+
void decrement()
Definition genericiterator.hh:246
\n+
Reference dereference() const
Definition genericiterator.hh:237
\n+
bool equals(const ConstIterator &other) const
Definition genericiterator.hh:232
\n+
Base class for stl conformant forward iterators.
Definition iteratorfacades.hh:435
\n+
CRTP-Mixing class for stl conformant iterators of given iterator category.
Definition iteratorfacades.hh:1053
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,32 +1,270 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-vc.hh\n+genericiterator.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-1// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n+1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+2// vi: set et ts=4 sw=2 sts=2:\n+3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n-2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#ifndef DUNE_COMMON_VC_HH\n-4#define DUNE_COMMON_VC_HH\n-5\n-15#if HAVE_VC\n-16\n-17// include Vc's macro definitions\n-18#include \n-19\n-20// undefine the macro that signals C++17 support, if set\n-21#ifdef Vc_CXX17\n-22#undef Vc_CXX17\n-23#endif\n-24\n-25// include the rest of Vc\n-26#include \n-27\n-28#endif // HAVE_VC\n-29\n-30#endif // DUNE_COMMON_VC_HH\n+4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n+5#ifndef DUNE_GENERICITERATOR_HH\n+6#define DUNE_GENERICITERATOR_HH\n+7\n+8#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh>\n+9#include \n+10\n+11namespace _\bD_\bu_\bn_\be {\n+12\n+85 template\n+_\b8_\b6 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+87 {\n+_\b8_\b8 typedef const R _\bt_\by_\bp_\be;\n+89 };\n+90\n+91 template\n+_\b9_\b2 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+93 {\n+_\b9_\b4 typedef const R _\bt_\by_\bp_\be;\n+95 };\n+96\n+97 template\n+_\b9_\b8 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+99 {\n+_\b1_\b0_\b0 typedef const R& _\bt_\by_\bp_\be;\n+101 };\n+102\n+103 template\n+_\b1_\b0_\b4 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+105 {\n+_\b1_\b0_\b6 typedef const R& _\bt_\by_\bp_\be;\n+107 };\n+108\n+114 template\n+_\b1_\b1_\b5 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+116 {\n+_\b1_\b1_\b7 typedef R _\bt_\by_\bp_\be;\n+118 };\n+119\n+120 template\n+_\b1_\b2_\b1 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+122 {\n+_\b1_\b2_\b3 typedef R _\bt_\by_\bp_\be;\n+124 };\n+125\n+126 template\n+_\b1_\b2_\b7 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+128 {\n+_\b1_\b2_\b9 typedef R& _\bt_\by_\bp_\be;\n+130 };\n+131\n+132 template\n+_\b1_\b3_\b3 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+134 {\n+_\b1_\b3_\b5 typedef R& type;\n+136 };\n+137\n+149 template class\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be=_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be>\n+_\b1_\b5_\b1 class _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br :\n+152 public _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be,T,R,D>\n+153 {\n+154 friend class _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type, typename\n+std::remove_const::type, typename _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be::type, D,\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be>;\n+155 friend class _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n+const typename std::remove_const::type, typename const_reference::type,\n+D, IteratorFacade>;\n+156\n+157 typedef _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type, typename std::\n+remove_const::type, typename mutable_reference::type, D, IteratorFacade>\n+_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+158 typedef _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type, const\n+typename std::remove_const::type, typename const_reference::type, D,\n+IteratorFacade> _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+159\n+160 public:\n+161\n+_\b1_\b7_\b0 typedef C _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+171\n+_\b1_\b7_\b7 typedef T _\bV_\ba_\bl_\bu_\be;\n+178\n+_\b1_\b8_\b2 typedef D _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be;\n+183\n+_\b1_\b8_\b7 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+188\n+189 // Constructors needed by the base iterators\n+_\b1_\b9_\b0 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br() : container_(0), position_(0)\n+191 {}\n+192\n+_\b2_\b0_\b0 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be pos)\n+201 : container_(&cont), position_(pos)\n+202 {}\n+203\n+_\b2_\b1_\b1 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) : container_\n+(other.container_), position_(other.position_)\n+212 {}\n+213\n+_\b2_\b2_\b3 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) : container_(other.container_),\n+position_(other.position_)\n+224 {}\n+225\n+226 // Methods needed by the forward iterator\n+_\b2_\b2_\b7 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br & other) const\n+228 {\n+229 return position_ == other.position_ && container_ == other.container_;\n+230 }\n+231\n+_\b2_\b3_\b2 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br & other) const\n+233 {\n+234 return position_ == other.position_ && container_ == other.container_;\n+235 }\n+236\n+_\b2_\b3_\b7 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const {\n+238 return container_->operator[](position_);\n+239 }\n+240\n+_\b2_\b4_\b1 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt(){\n+242 ++position_;\n+243 }\n+244\n+245 // Additional function needed by BidirectionalIterator\n+_\b2_\b4_\b6 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt(){\n+247 --position_;\n+248 }\n+249\n+250 // Additional function needed by RandomAccessIterator\n+_\b2_\b5_\b1 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be i) const {\n+252 return container_->operator[](position_+i);\n+253 }\n+254\n+_\b2_\b5_\b5 void _\ba_\bd_\bv_\ba_\bn_\bc_\be(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n){\n+256 position_=position_+n;\n+257 }\n+258\n+_\b2_\b5_\b9 _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const\n+260 {\n+261 assert(other.container_==container_);\n+262 return other.position_ - position_;\n+263 }\n+264\n+_\b2_\b6_\b5 _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const\n+266 {\n+267 assert(other.container_==container_);\n+268 return other.position_ - position_;\n+269 }\n+270\n+271 private:\n+272 _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br *container_;\n+273 _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be position_;\n+274 };\n+275\n+278} // end namespace Dune\n+279\n+280#endif\n+_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh\n+This file implements iterator facade classes for writing stl conformant\n+iterators.\n+_\bs_\bt_\bd\n+STL namespace.\n+_\bD_\bu_\bn_\be\n+Dune namespace.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+Get the 'const' version of a reference to a mutable object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bt_\by_\bp_\be\n+const R type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+const R type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+const R & type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b&_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+const R & type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:106\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+get the 'mutable' version of a reference to a const object\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bt_\by_\bp_\be\n+R type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:117\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+R type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:123\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+R & type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Generic class for stl-conforming iterators for container classes with operator\n+[].\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+GenericIterator(const MutableIterator &other)\n+Copy constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const MutableIterator &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n+Reference elementAt(DifferenceType i) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:251\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n+void increment()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+GenericIterator(const ConstIterator &other)\n+Copy constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:223\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n+void advance(DifferenceType n)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:255\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+GenericIterator(Container &cont, DifferenceType pos)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:200\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be\n+D DifferenceType\n+The type of the difference between two positions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R Reference\n+The type of the reference to the values accessed.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n+DifferenceType distanceTo(const MutableIterator &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:259\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+C Container\n+The type of container we are an iterator for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:170\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\bl_\bu_\be\n+T Value\n+The value type of the iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:177\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n+DifferenceType distanceTo(const ConstIterator &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:265\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n+void decrement()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:246\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+Reference dereference() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:237\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const ConstIterator &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:232\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+Base class for stl conformant forward iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:435\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+CRTP-Mixing class for stl conformant iterators of given iterator category.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1053\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00011.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00011.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: quadmath.hh File Reference\n+dune-common: iteratorfacades.hh File Reference\n \n \n \n \n \n \n \n@@ -69,19 +69,140 @@\n \n
\n \n
\n
\n
\n-
quadmath.hh File Reference
\n+
\n+Classes |\n+Namespaces |\n+Functions
\n+
iteratorfacades.hh File Reference
\n
\n
\n \n+

This file implements iterator facade classes for writing stl conformant iterators. \n+More...

\n+
#include <iterator>
\n+#include <type_traits>
\n+#include <dune/common/typetraits.hh>
\n+#include <dune/common/concept.hh>
\n+
\n

Go to the source code of this file.

\n-
\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

\n+Classes

class  Dune::ForwardIteratorFacade< T, V, R, D >
 Base class for stl conformant forward iterators. More...
 
class  Dune::BidirectionalIteratorFacade< T, V, R, D >
 Facade class for stl conformant bidirectional iterators. More...
 
class  Dune::RandomAccessIteratorFacade< T, V, R, D >
 Base class for stl conformant forward iterators. More...
 
class  Dune::ProxyArrowResult< ProxyType >
 Helper to mimic a pointer for proxy objects. More...
 
struct  Dune::IteratorFacadeAccess
 This class encapsulates access of IteratorFacade. More...
 
class  Dune::IteratorFacade< It, C, V, R, P, D >
 CRTP-Mixing class for stl conformant iterators of given iterator category. More...
 
\n+\n+\n+\n+\n+

\n+Namespaces

namespace  Dune
 Dune namespace.
 
\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

\n+Functions

template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator== (const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for equality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator!= (const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for inequality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
std::enable_if< std::is_convertible< T2, T1 >::value, bool >::type Dune::operator== (const BidirectionalIteratorFacade< T1, V1, R1, D > &lhs, const BidirectionalIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for equality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
std::enable_if< std::is_convertible< T1, T2 >::value &&!std::is_convertible< T2, T1 >::value, bool >::type Dune::operator== (const BidirectionalIteratorFacade< T1, V1, R1, D > &lhs, const BidirectionalIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for equality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator!= (const BidirectionalIteratorFacade< T1, V1, R1, D > &lhs, const BidirectionalIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for inequality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator== (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for equality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator!= (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Checks for inequality.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator< (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Comparison operator.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator<= (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Comparison operator.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator> (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Comparison operator.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, bool >::type Dune::operator>= (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Comparison operator.
 
template<class T1 , class V1 , class R1 , class D , class T2 , class V2 , class R2 >
EnableIfInterOperable< T1, T2, D >::type Dune::operator- (const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
 Calculates the difference between two pointers.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D1 , class D2 >
constexpr auto Dune::operator== (const IteratorFacade< T1, C, V1, R1, P1, D1 > &it1, const IteratorFacade< T2, C, V2, R2, P2, D2 > &it2)
 Equality comparison for IteratorFacade.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D1 , class D2 , std::enable_if_t< Dune::models< Impl::Concepts::IterEqualsOp, T1, T2 >(), int > = 0>
constexpr bool Dune::operator!= (const IteratorFacade< T1, C, V1, R1, P1, D1 > &it1, const IteratorFacade< T2, C, V2, R2, P2, D2 > &it2)
 Inequality comparison for IteratorFacade.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D >
constexpr auto Dune::operator- (const IteratorFacade< T1, C, V1, R1, P1, D > &it1, const IteratorFacade< T2, C, V2, R2, P2, D > &it2)
 Difference for two IteratorFacade objects.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D1 , class D2 , std::enable_if_t< Dune::models< Impl::Concepts::IterDistanceOp< D1 >, T1, T2 >(), int > = 0>
constexpr bool Dune::operator< (const IteratorFacade< T1, C, V1, R1, P1, D1 > &it1, const IteratorFacade< T2, C, V2, R2, P2, D2 > &it2)
 Comparison for IteratorFacade.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D1 , class D2 , std::enable_if_t< Dune::models< Impl::Concepts::IterDistanceOp< D1 >, T1, T2 >(), int > = 0>
constexpr bool Dune::operator<= (const IteratorFacade< T1, C, V1, R1, P1, D1 > &it1, const IteratorFacade< T2, C, V2, R2, P2, D2 > &it2)
 Comparison for IteratorFacade.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D1 , class D2 , std::enable_if_t< Dune::models< Impl::Concepts::IterDistanceOp< D1 >, T1, T2 >(), int > = 0>
constexpr bool Dune::operator> (const IteratorFacade< T1, C, V1, R1, P1, D1 > &it1, const IteratorFacade< T2, C, V2, R2, P2, D2 > &it2)
 Comparison for IteratorFacade.
 
template<class T1 , class T2 , class C , class V1 , class V2 , class R1 , class R2 , class P1 , class P2 , class D1 , class D2 , std::enable_if_t< Dune::models< Impl::Concepts::IterDistanceOp< D1 >, T1, T2 >(), int > = 0>
constexpr bool Dune::operator>= (const IteratorFacade< T1, C, V1, R1, P1, D1 > &it1, const IteratorFacade< T2, C, V2, R2, P2, D2 > &it2)
 Comparison for IteratorFacade.
 
\n+

Detailed Description

\n+

This file implements iterator facade classes for writing stl conformant iterators.

\n+

With using these facades writing iterators for arbitrary containers becomes much less cumbersome as only few functions have to be implemented. All other functions needed by the stl are provided by the facades using the Barton-Nackman trick (also known as curiously recurring template pattern.

\n+
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,10 +1,219 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-quadmath.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+iteratorfacades.hh File Reference\n+This file implements iterator facade classes for writing stl conformant\n+iterators. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bc_\bo_\bn_\bc_\be_\bp_\bt_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\b _\bT_\b,_\b _\bV_\b,_\b _\bR_\b,_\b _\bD_\b _\b>\n+\u00a0 Base class for stl conformant forward iterators. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\b _\bT_\b,_\b _\bV_\b,_\b _\bR_\b,_\b _\bD_\b _\b>\n+\u00a0 Facade class for stl conformant bidirectional iterators. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\b _\bT_\b,_\b _\bV_\b,_\b _\bR_\b,_\b _\bD_\b _\b>\n+\u00a0 Base class for stl conformant forward iterators. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bP_\br_\bo_\bx_\by_\bT_\by_\bp_\be_\b _\b>\n+\u00a0 Helper to mimic a pointer for proxy objects. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\bA_\bc_\bc_\be_\bs_\bs\n+\u00a0 This class encapsulates access of _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\b _\bI_\bt_\b,_\b _\bC_\b,_\b _\bV_\b,_\b _\bR_\b,_\b _\bP_\b,_\b _\bD_\b _\b>\n+\u00a0 CRTP-Mixing class for stl conformant iterators of given iterator\n+ category. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n+\u00a0 _\bD_\bu_\bn_\be namespace.\n+\u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const\n+ type\u00a0 _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1, D >\n+ &lhs, const _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2,\n+ V2, R2, D > &rhs)\n+\u00a0 Checks for equality.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const\n+ type\u00a0 _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1, D >\n+ &lhs, const _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2,\n+ V2, R2, D > &rhs)\n+\u00a0 Checks for inequality.\n+\u00a0\n+template\n+ std::enable_if< std::is_convertible< _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const\n+ T2, T1 >::value, bool >::type\u00a0 _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1,\n+ R1, D > &lhs, const\n+ _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2,\n+ R2, D > &rhs)\n+\u00a0 Checks for equality.\n+\u00a0\n+template\n+ std::enable_if< std::is_convertible< _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const\n+T1, T2 >::value &&!std::is_convertible< _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1,\n+ T2, T1 >::value, bool >::type\u00a0 R1, D > &lhs, const\n+ _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2,\n+ R2, D > &rhs)\n+\u00a0 Checks for equality.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const\n+ type\u00a0 _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1,\n+ R1, D > &lhs, const\n+ _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2,\n+ R2, D > &rhs)\n+\u00a0 Checks for inequality.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Checks for equality.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Checks for inequality.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b< (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Comparison operator.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b= (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Comparison operator.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b> (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Comparison operator.\n+\u00a0\n+template\n+_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, bool >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b= (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Comparison operator.\n+\u00a0\n+template\n+ _\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be< T1, T2, D >:: _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b- (const\n+ type\u00a0 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T1, V1, R1,\n+ D > &lhs, const\n+ _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, V2, R2,\n+ D > &rhs)\n+\u00a0 Calculates the difference between two\n+ pointers.\n+\u00a0\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D1 > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D2 >\n+ &it2)\n+\u00a0 Equality comparison for _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be.\n+\u00a0\n+template(), int > = 0>\n+ constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D1 > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D2 >\n+ &it2)\n+\u00a0 Inequality comparison for\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be.\n+\u00a0\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b- (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D >\n+ &it2)\n+\u00a0 Difference for two _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+ objects.\n+\u00a0\n+template, T1, T2 >(), int > = 0>\n+ constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b< (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D1 > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D2 >\n+ &it2)\n+\u00a0 Comparison for _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be.\n+\u00a0\n+template, T1, T2 >(), int > = 0>\n+ constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b= (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D1 > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D2 >\n+ &it2)\n+\u00a0 Comparison for _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be.\n+\u00a0\n+template, T1, T2 >(), int > = 0>\n+ constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b> (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D1 > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D2 >\n+ &it2)\n+\u00a0 Comparison for _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be.\n+\u00a0\n+template, T1, T2 >(), int > = 0>\n+ constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b= (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be<\n+ T1, C, V1, R1, P1, D1 > &it1, const\n+ _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be< T2, C, V2, R2, P2, D2 >\n+ &it2)\n+\u00a0 Comparison for _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be.\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+This file implements iterator facade classes for writing stl conformant\n+iterators.\n+With using these facades writing iterators for arbitrary containers becomes\n+much less cumbersome as only few functions have to be implemented. All other\n+functions needed by the stl are provided by the facades using the Barton-\n+Nackman trick (also known as curiously recurring template pattern.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00011_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00011_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: quadmath.hh Source File\n+dune-common: iteratorfacades.hh Source File\n \n \n \n \n \n \n \n@@ -74,490 +74,983 @@\n \n
\n \n
\n \n
\n-
quadmath.hh
\n+
iteratorfacades.hh
\n
\n
\n Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
\n
2// vi: set et ts=4 sw=2 sts=2:
\n
3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
\n
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n-
5#ifndef DUNE_QUADMATH_HH
\n-
6#define DUNE_QUADMATH_HH
\n+
5#ifndef DUNE_ITERATORFACADES_HH
\n+
6#define DUNE_ITERATORFACADES_HH
\n
7
\n-
8#if HAVE_QUADMATH
\n-
9#include <quadmath.h>
\n+
8#include <iterator>
\n+
9#include <type_traits>
\n
10
\n-
11#include <cmath>
\n-
12#include <cstddef>
\n-
13#include <cstdint>
\n-
14#include <cstdlib> // abs
\n-
15#include <istream>
\n-
16#include <ostream>
\n-
17#include <type_traits>
\n-
18#include <utility>
\n-
19
\n-\n-\n-
22
\n-
23namespace Dune
\n-
24{
\n-
25 namespace Impl
\n-
26 {
\n-
27 // forward declaration
\n-
28 class Float128;
\n-
29
\n-
30 } // end namespace Impl
\n-
31
\n-
32 using Impl::Float128;
\n-
33
\n-
34 // The purpose of this namespace is to move the `<cmath>` function overloads
\n-
35 // out of namespace `Dune`, see AlignedNumber in debugalign.hh.
\n-
36 namespace Impl
\n-
37 {
\n-
38 using float128_t = __float128;
\n-
39
\n-
41 class Float128
\n-
42 {
\n-
43 float128_t value_ = 0.0q;
\n-
44
\n-
45 public:
\n-
46 constexpr Float128() = default;
\n-
47 constexpr Float128(const float128_t& value) noexcept
\n-
48 : value_(value)
\n-
49 {}
\n-
50
\n-
51 // constructor from any floating-point or integer type
\n-
52 template <class T,
\n-
53 std::enable_if_t<std::is_arithmetic<T>::value, int> = 0>
\n-
54 constexpr Float128(const T& value) noexcept
\n-
55 : value_(value)
\n-
56 {}
\n-
57
\n-
58 // constructor from pointer to null-terminated byte string
\n-
59 explicit Float128(const char* str) noexcept
\n-
60 : value_(strtoflt128(str, NULL))
\n-
61 {}
\n-
62
\n-
63 // accessors
\n-
64 constexpr operator float128_t() const noexcept { return value_; }
\n-
65
\n-
66 constexpr float128_t const& value() const noexcept { return value_; }
\n-
67 constexpr float128_t& value() noexcept { return value_; }
\n-
68
\n-
69 // I/O
\n-
70 template<class CharT, class Traits>
\n-
71 friend std::basic_istream<CharT, Traits>&
\n-
72 operator>>(std::basic_istream<CharT, Traits>& in, Float128& x)
\n-
73 {
\n-
74 std::string buf;
\n-
75 buf.reserve(128);
\n-
76 in >> buf;
\n-
77 x.value() = strtoflt128(buf.c_str(), NULL);
\n-
78 return in;
\n-
79 }
\n-
80
\n-
81 template<class CharT, class Traits>
\n-
82 friend std::basic_ostream<CharT, Traits>&
\n-
83 operator<<(std::basic_ostream<CharT, Traits>& out, const Float128& x)
\n-
84 {
\n-
85 const std::size_t bufSize = 128;
\n-
86 CharT buf[128];
\n-
87
\n-
88 std::string format = "%." + std::to_string(out.precision()) + "Q" +
\n-
89 ((out.flags() | std::ios_base::scientific) ? "e" : "f");
\n-
90 const int numChars = quadmath_snprintf(buf, bufSize, format.c_str(), x.value());
\n-
91 if (std::size_t(numChars) >= bufSize) {
\n-
92 DUNE_THROW(Dune::RangeError, "Failed to print Float128 value: buffer overflow");
\n-
93 }
\n-
94 out << buf;
\n-
95 return out;
\n-
96 }
\n-
97
\n-
98 // Increment, decrement
\n-
99 constexpr Float128& operator++() noexcept { ++value_; return *this; }
\n-
100 constexpr Float128& operator--() noexcept { --value_; return *this; }
\n-
101
\n-
102 constexpr Float128 operator++(int) noexcept { Float128 tmp{*this}; ++value_; return tmp; }
\n-
103 constexpr Float128 operator--(int) noexcept { Float128 tmp{*this}; --value_; return tmp; }
\n-
104
\n-
105 // unary operators
\n-
106 constexpr Float128 operator+() const noexcept { return Float128{+value_}; }
\n-
107 constexpr Float128 operator-() const noexcept { return Float128{-value_}; }
\n-
108
\n-
109 // assignment operators
\n-
110#define DUNE_ASSIGN_OP(OP) \\
\n-
111 constexpr Float128& operator OP(const Float128& u) noexcept \\
\n-
112 { \\
\n-
113 value_ OP float128_t(u); \\
\n-
114 return *this; \\
\n-
115 } \\
\n-
116 static_assert(true, "Require semicolon to unconfuse editors")
\n-
117
\n-
118 DUNE_ASSIGN_OP(+=);
\n-
119 DUNE_ASSIGN_OP(-=);
\n-
120
\n-
121 DUNE_ASSIGN_OP(*=);
\n-
122 DUNE_ASSIGN_OP(/=);
\n-
123
\n-
124#undef DUNE_ASSIGN_OP
\n-
125
\n-
126 }; // end class Float128
\n-
127
\n-
128 // binary operators:
\n-
129 // For symmetry provide overloads with arithmetic types
\n-
130 // in the first or second argument.
\n-
131#define DUNE_BINARY_OP(OP) \\
\n-
132 constexpr Float128 operator OP(const Float128& t, \\
\n-
133 const Float128& u) noexcept \\
\n-
134 { \\
\n-
135 return Float128{float128_t(t) OP float128_t(u)}; \\
\n-
136 } \\
\n-
137 constexpr Float128 operator OP(const float128_t& t, \\
\n-
138 const Float128& u) noexcept \\
\n-
139 { \\
\n-
140 return Float128{t OP float128_t(u)}; \\
\n-
141 } \\
\n-
142 constexpr Float128 operator OP(const Float128& t, \\
\n-
143 const float128_t& u) noexcept \\
\n-
144 { \\
\n-
145 return Float128{float128_t(t) OP u}; \\
\n-
146 } \\
\n-
147 template <class T, \\
\n-
148 std::enable_if_t<std::is_arithmetic<T>::value, int> = 0> \\
\n-
149 constexpr Float128 operator OP(const T& t, \\
\n-
150 const Float128& u) noexcept \\
\n-
151 { \\
\n-
152 return Float128{float128_t(t) OP float128_t(u)}; \\
\n-
153 } \\
\n-
154 template <class U, \\
\n-
155 std::enable_if_t<std::is_arithmetic<U>::value, int> = 0> \\
\n-
156 constexpr Float128 operator OP(const Float128& t, \\
\n-
157 const U& u) noexcept \\
\n-
158 { \\
\n-
159 return Float128{float128_t(t) OP float128_t(u)}; \\
\n-
160 } \\
\n-
161 static_assert(true, "Require semicolon to unconfuse editors")
\n-
162
\n-\n-\n-\n-\n-
167
\n-
168#undef DUNE_BINARY_OP
\n-
169
\n-
170 // logical operators:
\n-
171 // For symmetry provide overloads with arithmetic types
\n-
172 // in the first or second argument.
\n-
173#define DUNE_BINARY_BOOL_OP(OP) \\
\n-
174 constexpr bool operator OP(const Float128& t, \\
\n-
175 const Float128& u) noexcept \\
\n-
176 { \\
\n-
177 return float128_t(t) OP float128_t(u); \\
\n-
178 } \\
\n-
179 template <class T, \\
\n-
180 std::enable_if_t<std::is_arithmetic<T>::value, int> = 0> \\
\n-
181 constexpr bool operator OP(const T& t, \\
\n-
182 const Float128& u) noexcept \\
\n-
183 { \\
\n-
184 return float128_t(t) OP float128_t(u); \\
\n-
185 } \\
\n-
186 template <class U, \\
\n-
187 std::enable_if_t<std::is_arithmetic<U>::value, int> = 0> \\
\n-
188 constexpr bool operator OP(const Float128& t, \\
\n-
189 const U& u) noexcept \\
\n-
190 { \\
\n-
191 return float128_t(t) OP float128_t(u); \\
\n-
192 } \\
\n-
193 static_assert(true, "Require semicolon to unconfuse editors")
\n-
194
\n-
195 DUNE_BINARY_BOOL_OP(==);
\n-
196 DUNE_BINARY_BOOL_OP(!=);
\n-
197 DUNE_BINARY_BOOL_OP(<);
\n-
198 DUNE_BINARY_BOOL_OP(>);
\n-
199 DUNE_BINARY_BOOL_OP(<=);
\n-
200 DUNE_BINARY_BOOL_OP(>=);
\n-
201
\n-
202#undef DUNE_BINARY_BOOL_OP
\n+\n+\n+
13
\n+
14namespace Dune
\n+
15{
\n+
140 template<class T, class V, class R = V&, class D = std::ptrdiff_t>
\n+
\n+\n+
142 {
\n+
143
\n+
144 public:
\n+
145 /* type aliases required by C++ for iterators */
\n+
146 using iterator_category = std::forward_iterator_tag;
\n+
147 using value_type = typename std::remove_const<V>::type;
\n+\n+
149 using pointer = V*;
\n+
150 using reference = R;
\n+
151
\n+
176 typedef T DerivedType;
\n+
177
\n+
181 typedef V Value;
\n+
182
\n+
186 typedef V* Pointer;
\n+
187
\n+
191 typedef D DifferenceType;
\n+
192
\n+
196 typedef R Reference;
\n+
197
\n+
\n+\n+
200 {
\n+
201 return static_cast<DerivedType const*>(this)->dereference();
\n+
202 }
\n+
\n
203
\n-
204 // Overloads for the cmath functions
\n-
205
\n-
206 // function with name `name` redirects to quadmath function `func`
\n-
207#define DUNE_UNARY_FUNC(name,func) \\
\n-
208 inline Float128 name(const Float128& u) noexcept \\
\n-
209 { \\
\n-
210 return Float128{func (float128_t(u))}; \\
\n-
211 } \\
\n-
212 static_assert(true, "Require semicolon to unconfuse editors")
\n-
213
\n-
214 // like DUNE_UNARY_FUNC but with custom return type
\n-
215#define DUNE_CUSTOM_UNARY_FUNC(type,name,func) \\
\n-
216 inline type name(const Float128& u) noexcept \\
\n-
217 { \\
\n-
218 return (type)(func (float128_t(u))); \\
\n-
219 } \\
\n-
220 static_assert(true, "Require semicolon to unconfuse editors")
\n-
221
\n-
222 // redirects to quadmath function with two arguments
\n-
223#define DUNE_BINARY_FUNC(name,func) \\
\n-
224 inline Float128 name(const Float128& t, \\
\n-
225 const Float128& u) noexcept \\
\n-
226 { \\
\n-
227 return Float128{func (float128_t(t), float128_t(u))}; \\
\n-
228 } \\
\n-
229 static_assert(true, "Require semicolon to unconfuse editors")
\n-
230
\n-
231 DUNE_UNARY_FUNC(abs, fabsq);
\n-
232 DUNE_UNARY_FUNC(acos, acosq);
\n-
233 DUNE_UNARY_FUNC(acosh, acoshq);
\n-
234 DUNE_UNARY_FUNC(asin, asinq);
\n-
235 DUNE_UNARY_FUNC(asinh, asinhq);
\n-
236 DUNE_UNARY_FUNC(atan, atanq);
\n-
237 DUNE_UNARY_FUNC(atanh, atanhq);
\n-
238 DUNE_UNARY_FUNC(cbrt, cbrtq);
\n-
239 DUNE_UNARY_FUNC(ceil, ceilq);
\n-
240 DUNE_UNARY_FUNC(cos, cosq);
\n-
241 DUNE_UNARY_FUNC(cosh, coshq);
\n-
242 DUNE_UNARY_FUNC(erf, erfq);
\n-
243 DUNE_UNARY_FUNC(erfc, erfcq);
\n-
244 DUNE_UNARY_FUNC(exp, expq);
\n-
245 DUNE_UNARY_FUNC(expm1, expm1q);
\n-
246 DUNE_UNARY_FUNC(fabs, fabsq);
\n-
247 DUNE_UNARY_FUNC(floor, floorq);
\n-
248 DUNE_CUSTOM_UNARY_FUNC(int, ilogb, ilogbq);
\n-
249 DUNE_UNARY_FUNC(lgamma, lgammaq);
\n-
250 DUNE_CUSTOM_UNARY_FUNC(long long int, llrint, llrintq);
\n-
251 DUNE_CUSTOM_UNARY_FUNC(long long int, llround, llroundq);
\n-
252 DUNE_UNARY_FUNC(log, logq);
\n-
253 DUNE_UNARY_FUNC(log10, log10q);
\n-
254 DUNE_UNARY_FUNC(log1p, log1pq);
\n-
255 DUNE_UNARY_FUNC(log2, log2q);
\n-
256 // DUNE_UNARY_FUNC(logb, logbq); // not available in gcc5
\n-
257 DUNE_CUSTOM_UNARY_FUNC(long int, lrint, lrintq);
\n-
258 DUNE_CUSTOM_UNARY_FUNC(long int, lround, lroundq);
\n-
259 DUNE_UNARY_FUNC(nearbyint, nearbyintq);
\n-
260 DUNE_BINARY_FUNC(nextafter, nextafterq);
\n-
261 DUNE_BINARY_FUNC(pow, powq); // overload for integer argument see below
\n-
262 DUNE_UNARY_FUNC(rint, rintq);
\n-
263 DUNE_UNARY_FUNC(round, roundq);
\n-
264 DUNE_UNARY_FUNC(sin, sinq);
\n-
265 DUNE_UNARY_FUNC(sinh, sinhq);
\n-
266 DUNE_UNARY_FUNC(sqrt, sqrtq);
\n-
267 DUNE_UNARY_FUNC(tan, tanq);
\n-
268 DUNE_UNARY_FUNC(tanh, tanhq);
\n-
269 DUNE_UNARY_FUNC(tgamma, tgammaq);
\n-
270 DUNE_UNARY_FUNC(trunc, truncq);
\n-
271
\n-
272 DUNE_CUSTOM_UNARY_FUNC(bool, isfinite, finiteq);
\n-
273 DUNE_CUSTOM_UNARY_FUNC(bool, isinf, isinfq);
\n-
274 DUNE_CUSTOM_UNARY_FUNC(bool, isnan, isnanq);
\n-
275 DUNE_CUSTOM_UNARY_FUNC(bool, signbit, signbitq);
\n+
\n+\n+
205 {
\n+
206 return &(static_cast<const DerivedType *>(this)->dereference());
\n+
207 }
\n+
\n+
208
\n+
\n+\n+
211 {
\n+
212 static_cast<DerivedType *>(this)->increment();
\n+
213 return *static_cast<DerivedType *>(this);
\n+
214 }
\n+
\n+
215
\n+
\n+\n+
218 {
\n+
219 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
220 this->operator++();
\n+
221 return tmp;
\n+
222 }
\n+
\n+
223 };
\n+
\n+
224
\n+
235 template<class T1, class V1, class R1, class D,
\n+
236 class T2, class V2, class R2>
\n+
237 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
240 {
\n+
241 if(std::is_convertible<T2,T1>::value)
\n+
242 return static_cast<const T1&>(lhs).equals(static_cast<const T2&>(rhs));
\n+
243 else
\n+
244 return static_cast<const T2&>(rhs).equals(static_cast<const T1&>(lhs));
\n+
245 }
\n+
\n+
246
\n+
257 template<class T1, class V1, class R1, class D,
\n+
258 class T2, class V2, class R2>
\n+
259 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
262 {
\n+
263 if(std::is_convertible<T2,T1>::value)
\n+
264 return !static_cast<const T1&>(lhs).equals(static_cast<const T2&>(rhs));
\n+
265 else
\n+
266 return !static_cast<const T2&>(rhs).equals(static_cast<const T1&>(lhs));
\n+
267 }
\n+
\n+
268
\n+
273 template<class T, class V, class R = V&, class D = std::ptrdiff_t>
\n+
\n+\n+
275 {
\n
276
\n-
277#undef DUNE_UNARY_FUNC
\n-
278#undef DUNE_CUSTOM_UNARY_FUNC
\n-
279#undef DUNE_BINARY_FUNC
\n-
280
\n-
281 // like DUNE_BINARY_FUNC but provide overloads with arithmetic
\n-
282 // types in the first or second argument.
\n-
283#define DUNE_BINARY_ARITHMETIC_FUNC(name,func) \\
\n-
284 inline Float128 name(const Float128& t, \\
\n-
285 const Float128& u) noexcept \\
\n-
286 { \\
\n-
287 return Float128{func (float128_t(t), float128_t(u))}; \\
\n-
288 } \\
\n-
289 template <class T, \\
\n-
290 std::enable_if_t<std::is_arithmetic<T>::value, int> = 0> \\
\n-
291 inline Float128 name(const T& t, \\
\n-
292 const Float128& u) noexcept \\
\n-
293 { \\
\n-
294 return Float128{func (float128_t(t), float128_t(u))}; \\
\n-
295 } \\
\n-
296 template <class U, \\
\n-
297 std::enable_if_t<std::is_arithmetic<U>::value, int> = 0> \\
\n-
298 inline Float128 name(const Float128& t, \\
\n-
299 const U& u) noexcept \\
\n-
300 { \\
\n-
301 return Float128{func (float128_t(t), float128_t(u))}; \\
\n-
302 } \\
\n-
303 static_assert(true, "Require semicolon to unconfuse editors")
\n-
304
\n-
305 DUNE_BINARY_ARITHMETIC_FUNC(atan2,atan2q);
\n-
306 DUNE_BINARY_ARITHMETIC_FUNC(copysign,copysignq);
\n-
307 DUNE_BINARY_ARITHMETIC_FUNC(fdim,fdimq);
\n-
308 DUNE_BINARY_ARITHMETIC_FUNC(fmax,fmaxq);
\n-
309 DUNE_BINARY_ARITHMETIC_FUNC(fmin,fminq);
\n-
310 DUNE_BINARY_ARITHMETIC_FUNC(fmod,fmodq);
\n-
311 DUNE_BINARY_ARITHMETIC_FUNC(hypot,hypotq);
\n-
312 DUNE_BINARY_ARITHMETIC_FUNC(remainder,remainderq);
\n-
313
\n-
314#undef DUNE_BINARY_ARITHMETIC_FUNC
\n-
315
\n-
316 // some more cmath functions with special signature
\n-
317
\n-
318 inline Float128 fma(const Float128& t, const Float128& u, const Float128& v)
\n-
319 {
\n-
320 return Float128{fmaq(float128_t(t),float128_t(u),float128_t(v))};
\n-
321 }
\n-
322
\n-
323 inline Float128 frexp(const Float128& u, int* p)
\n-
324 {
\n-
325 return Float128{frexpq(float128_t(u), p)};
\n-
326 }
\n-
327
\n-
328 inline Float128 ldexp(const Float128& u, int p)
\n-
329 {
\n-
330 return Float128{ldexpq(float128_t(u), p)};
\n-
331 }
\n-
332
\n-
333 inline Float128 remquo(const Float128& t, const Float128& u, int* quo)
\n-
334 {
\n-
335 return Float128{remquoq(float128_t(t), float128_t(u), quo)};
\n+
277 public:
\n+
278 /* type aliases required by C++ for iterators */
\n+
279 using iterator_category = std::bidirectional_iterator_tag;
\n+
280 using value_type = typename std::remove_const<V>::type;
\n+\n+
282 using pointer = V*;
\n+
283 using reference = R;
\n+
284
\n+
310 typedef T DerivedType;
\n+
311
\n+
315 typedef V Value;
\n+
316
\n+
320 typedef V* Pointer;
\n+
321
\n+
325 typedef D DifferenceType;
\n+
326
\n+
330 typedef R Reference;
\n+
331
\n+
\n+\n+
334 {
\n+
335 return static_cast<DerivedType const*>(this)->dereference();
\n
336 }
\n+
\n
337
\n-
338 inline Float128 scalbln(const Float128& u, long int e)
\n-
339 {
\n-
340 return Float128{scalblnq(float128_t(u), e)};
\n+
\n+\n+
339 {
\n+
340 return &(static_cast<const DerivedType *>(this)->dereference());
\n
341 }
\n+
\n
342
\n-
343 inline Float128 scalbn(const Float128& u, int e)
\n-
344 {
\n-
345 return Float128{scalbnq(float128_t(u), e)};
\n-
346 }
\n-
347
\n-
349 // NOTE: This is much faster than a pow(x, Float128(p)) call
\n-
350 // NOTE: This is a modified version of boost::math::cstdfloat::detail::pown
\n-
351 // (adapted to the type Float128) that is part of the Boost 1.65 Math toolkit 2.8.0
\n-
352 // and is implemented by Christopher Kormanyos, John Maddock, and Paul A. Bristow,
\n-
353 // distributed under the Boost Software License, Version 1.0
\n-
354 // (See http://www.boost.org/LICENSE_1_0.txt)
\n-
355 template <class Int,
\n-
356 std::enable_if_t<std::is_integral<Int>::value, int> = 0>
\n-
357 inline Float128 pow(const Float128& x, const Int p)
\n-
358 {
\n-
359 static const Float128 max_value = FLT128_MAX;
\n-
360 static const Float128 min_value = FLT128_MIN;
\n-
361 static const Float128 inf_value = float128_t{1} / float128_t{0};
\n-
362
\n-
363 const bool isneg = (x < 0);
\n-
364 const bool isnan = (x != x);
\n-
365 const bool isinf = (isneg ? bool(-x > max_value) : bool(+x > max_value));
\n-
366
\n-
367 if (isnan) { return x; }
\n-
368 if (isinf) { return Float128{nanq("")}; }
\n-
369
\n-
370 const Float128 abs_x = (isneg ? -x : x);
\n-
371 if (p < Int(0)) {
\n-
372 if (abs_x < min_value)
\n-
373 return (isneg ? -inf_value : +inf_value);
\n-
374 else
\n-
375 return Float128(1) / pow(x, Int(-p));
\n-
376 }
\n-
377
\n-
378 if (p == Int(0)) { return Float128(1); }
\n-
379 if (p == Int(1)) { return x; }
\n-
380 if (abs_x > max_value)
\n-
381 return (isneg ? -inf_value : +inf_value);
\n-
382
\n-
383 if (p == Int(2)) { return (x * x); }
\n-
384 if (p == Int(3)) { return ((x * x) * x); }
\n-
385 if (p == Int(4)) { const Float128 x2 = (x * x); return (x2 * x2); }
\n-
386
\n-
387 Float128 result = ((p % Int(2)) != Int(0)) ? x : Float128(1);
\n-
388 Float128 xn = x; // binary powers of x
\n-
389
\n-
390 Int p2 = p;
\n-
391 while (Int(p2 /= 2) != Int(0)) {
\n-
392 xn *= xn; // Square xn for each binary power
\n-
393
\n-
394 const bool has_binary_power = (Int(p2 % Int(2)) != Int(0));
\n-
395 if (has_binary_power)
\n-
396 result *= xn;
\n-
397 }
\n-
398
\n-
399 return result;
\n-
400 }
\n-
401
\n-
402
\n-
403 } // end namespace Impl
\n-
404
\n-
405 template <>
\n-
406 struct IsNumber<Impl::Float128>
\n-
407 : public std::true_type {};
\n-
408
\n-
409} // end namespace Dune
\n-
410
\n-
411namespace std
\n-
412{
\n-
413#ifndef NO_STD_NUMERIC_LIMITS_SPECIALIZATION
\n-
414 template <>
\n-
415 class numeric_limits<Dune::Impl::Float128>
\n-
416 {
\n-
417 using Float128 = Dune::Impl::Float128;
\n-
418 using float128_t = Dune::Impl::float128_t;
\n-
419
\n-
420 public:
\n-
421 static constexpr bool is_specialized = true;
\n-
422 static constexpr Float128 min() noexcept { return FLT128_MIN; }
\n-
423 static constexpr Float128 max() noexcept { return FLT128_MAX; }
\n-
424 static constexpr Float128 lowest() noexcept { return -FLT128_MAX; }
\n-
425 static constexpr int digits = FLT128_MANT_DIG;
\n-
426 static constexpr int digits10 = 34;
\n-
427 static constexpr int max_digits10 = 36;
\n-
428 static constexpr bool is_signed = true;
\n-
429 static constexpr bool is_integer = false;
\n-
430 static constexpr bool is_exact = false;
\n-
431 static constexpr int radix = 2;
\n-
432 static constexpr Float128 epsilon() noexcept { return FLT128_EPSILON; }
\n-
433 static constexpr Float128 round_error() noexcept { return float128_t{0.5}; }
\n-
434 static constexpr int min_exponent = FLT128_MIN_EXP;
\n-
435 static constexpr int min_exponent10 = FLT128_MIN_10_EXP;
\n-
436 static constexpr int max_exponent = FLT128_MAX_EXP;
\n-
437 static constexpr int max_exponent10 = FLT128_MAX_10_EXP;
\n-
438 static constexpr bool has_infinity = true;
\n-
439 static constexpr bool has_quiet_NaN = true;
\n-
440 static constexpr bool has_signaling_NaN = false;
\n-
441 static constexpr float_denorm_style has_denorm = denorm_present;
\n-
442 static constexpr bool has_denorm_loss = false;
\n-
443 static constexpr Float128 infinity() noexcept { return float128_t{1}/float128_t{0}; }
\n-
444 static Float128 quiet_NaN() noexcept { return nanq(""); }
\n-
445 static constexpr Float128 signaling_NaN() noexcept { return float128_t{}; }
\n-
446 static constexpr Float128 denorm_min() noexcept { return FLT128_DENORM_MIN; }
\n-
447 static constexpr bool is_iec559 = true;
\n-
448 static constexpr bool is_bounded = false;
\n-
449 static constexpr bool is_modulo = false;
\n-
450 static constexpr bool traps = false;
\n-
451 static constexpr bool tinyness_before = false;
\n-
452 static constexpr float_round_style round_style = round_to_nearest;
\n-
453 };
\n-
454#endif
\n-
455} // end namespace std
\n-
456
\n-
457#endif // HAVE_QUADMATH
\n-
458#endif // DUNE_QUADMATH_HH
\n-
A few common exception classes.
\n-
#define DUNE_BINARY_OP(OP)
Definition debugalign.hh:261
\n-
#define DUNE_UNARY_FUNC(name)
\n-
#define DUNE_ASSIGN_OP(OP)
Definition debugalign.hh:220
\n-
Traits for type conversions and type information.
\n-
Stream & operator>>(Stream &stream, std::tuple< Ts... > &t)
Read a std::tuple.
Definition streamoperators.hh:43
\n-
constexpr auto max
Function object that returns the greater of the given values.
Definition hybridutilities.hh:484
\n-
constexpr auto min
Function object that returns the smaller of the given values.
Definition hybridutilities.hh:506
\n-
std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
Definition bigunsignedint.hh:278
\n+
\n+\n+
345 {
\n+
346 static_cast<DerivedType *>(this)->increment();
\n+
347 return *static_cast<DerivedType *>(this);
\n+
348 }
\n+
\n+
349
\n+
\n+\n+
352 {
\n+
353 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
354 this->operator++();
\n+
355 return tmp;
\n+
356 }
\n+
\n+
357
\n+
358
\n+
\n+\n+
361 {
\n+
362 static_cast<DerivedType *>(this)->decrement();
\n+
363 return *static_cast<DerivedType *>(this);
\n+
364 }
\n+
\n+
365
\n+
\n+\n+
368 {
\n+
369 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
370 this->operator--();
\n+
371 return tmp;
\n+
372 }
\n+
\n+
373 };
\n+
\n+
374
\n+
382 template<class T1, class V1, class R1, class D,
\n+
383 class T2, class V2, class R2>
\n+
384 inline typename std::enable_if<std::is_convertible<T2,T1>::value,bool>::type
\n+
\n+\n+\n+
387 {
\n+
388 return static_cast<const T1&>(lhs).equals(static_cast<const T2&>(rhs));
\n+
389 }
\n+
\n+
390
\n+
399 template<class T1, class V1, class R1, class D,
\n+
400 class T2, class V2, class R2>
\n+
401 inline
\n+
402 typename std::enable_if<std::is_convertible<T1,T2>::value && !std::is_convertible<T2,T1>::value,
\n+
403 bool>::type
\n+
\n+\n+\n+
406 {
\n+
407 return static_cast<const T2&>(rhs).equals(static_cast<const T1&>(lhs));
\n+
408 }
\n+
\n+
409
\n+
420 template<class T1, class V1, class R1, class D,
\n+
421 class T2, class V2, class R2>
\n+
422 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
425 {
\n+
426 return !(lhs == rhs);
\n+
427 }
\n+
\n+
428
\n+
433 template<class T, class V, class R = V&, class D = std::ptrdiff_t>
\n+
\n+\n+
435 {
\n+
436
\n+
437 public:
\n+
438 /* type aliases required by C++ for iterators */
\n+
439 using iterator_category = std::random_access_iterator_tag;
\n+
440 using value_type = typename std::remove_const<V>::type;
\n+\n+
442 using pointer = V*;
\n+
443 using reference = R;
\n+
444
\n+
478 typedef T DerivedType;
\n+
479
\n+
483 typedef V Value;
\n+
484
\n+
488 typedef V* Pointer;
\n+
489
\n+
493 typedef D DifferenceType;
\n+
494
\n+
498 typedef R Reference;
\n+
499
\n+
\n+\n+
502 {
\n+
503 return static_cast<DerivedType const*>(this)->dereference();
\n+
504 }
\n+
\n+
505
\n+
\n+\n+
507 {
\n+
508 return &(static_cast<const DerivedType *>(this)->dereference());
\n+
509 }
\n+
\n+
510
\n+
\n+\n+
517 {
\n+
518 return static_cast<const DerivedType *>(this)->elementAt(n);
\n+
519 }
\n+
\n+
520
\n+
\n+\n+
523 {
\n+
524 static_cast<DerivedType *>(this)->increment();
\n+
525 return *static_cast<DerivedType *>(this);
\n+
526 }
\n+
\n+
527
\n+
\n+\n+
530 {
\n+
531 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
532 this->operator++();
\n+
533 return tmp;
\n+
534 }
\n+
\n+
535
\n+
\n+\n+
537 {
\n+
538 static_cast<DerivedType *>(this)->advance(n);
\n+
539 return *static_cast<DerivedType *>(this);
\n+
540 }
\n+
\n+
541
\n+
\n+\n+
543 {
\n+
544 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
545 tmp.advance(n);
\n+
546 return tmp;
\n+
547 }
\n+
\n+
548
\n+
549
\n+
\n+\n+
552 {
\n+
553 static_cast<DerivedType *>(this)->decrement();
\n+
554 return *static_cast<DerivedType *>(this);
\n+
555 }
\n+
\n+
556
\n+
\n+\n+
559 {
\n+
560 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
561 this->operator--();
\n+
562 return tmp;
\n+
563 }
\n+
\n+
564
\n+
\n+\n+
566 {
\n+
567 static_cast<DerivedType *>(this)->advance(-n);
\n+
568 return *static_cast<DerivedType *>(this);
\n+
569 }
\n+
\n+
570
\n+
\n+\n+
572 {
\n+
573 DerivedType tmp(static_cast<DerivedType const&>(*this));
\n+
574 tmp.advance(-n);
\n+
575 return tmp;
\n+
576 }
\n+
\n+
577
\n+
578
\n+
579 };
\n+
\n+
580
\n+
591 template<class T1, class V1, class R1, class D,
\n+
592 class T2, class V2, class R2>
\n+
593 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
596 {
\n+
597 if(std::is_convertible<T2,T1>::value)
\n+
598 return static_cast<const T1&>(lhs).equals(static_cast<const T2&>(rhs));
\n+
599 else
\n+
600 return static_cast<const T2&>(rhs).equals(static_cast<const T1&>(lhs));
\n+
601 }
\n+
\n+
602
\n+
613 template<class T1, class V1, class R1, class D,
\n+
614 class T2, class V2, class R2>
\n+
615 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
618 {
\n+
619 if(std::is_convertible<T2,T1>::value)
\n+
620 return !static_cast<const T1&>(lhs).equals(static_cast<const T2&>(rhs));
\n+
621 else
\n+
622 return !static_cast<const T2&>(rhs).equals(static_cast<const T1&>(lhs));
\n+
623 }
\n+
\n+
624
\n+
635 template<class T1, class V1, class R1, class D,
\n+
636 class T2, class V2, class R2>
\n+
\n+\n+\n+\n+
640 {
\n+
641 if(std::is_convertible<T2,T1>::value)
\n+
642 return static_cast<const T1&>(lhs).distanceTo(static_cast<const T2&>(rhs))>0;
\n+
643 else
\n+
644 return static_cast<const T2&>(rhs).distanceTo(static_cast<const T1&>(lhs))<0;
\n+
645 }
\n+
\n+
646
\n+
647
\n+
658 template<class T1, class V1, class R1, class D,
\n+
659 class T2, class V2, class R2>
\n+
\n+\n+\n+\n+
663 {
\n+
664 if(std::is_convertible<T2,T1>::value)
\n+
665 return static_cast<const T1&>(lhs).distanceTo(static_cast<const T2&>(rhs))>=0;
\n+
666 else
\n+
667 return static_cast<const T2&>(rhs).distanceTo(static_cast<const T1&>(lhs))<=0;
\n+
668 }
\n+
\n+
669
\n+
670
\n+
681 template<class T1, class V1, class R1, class D,
\n+
682 class T2, class V2, class R2>
\n+
683 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
686 {
\n+
687 if(std::is_convertible<T2,T1>::value)
\n+
688 return static_cast<const T1&>(lhs).distanceTo(static_cast<const T2&>(rhs))<0;
\n+
689 else
\n+
690 return static_cast<const T2&>(rhs).distanceTo(static_cast<const T1&>(lhs))>0;
\n+
691 }
\n+
\n+
692
\n+
703 template<class T1, class V1, class R1, class D,
\n+
704 class T2, class V2, class R2>
\n+
705 inline typename EnableIfInterOperable<T1,T2,bool>::type
\n+
\n+\n+\n+
708 {
\n+
709 if(std::is_convertible<T2,T1>::value)
\n+
710 return static_cast<const T1&>(lhs).distanceTo(static_cast<const T2&>(rhs))<=0;
\n+
711 else
\n+
712 return static_cast<const T2&>(rhs).distanceTo(static_cast<const T1&>(lhs))>=0;
\n+
713 }
\n+
\n+
714
\n+
725 template<class T1, class V1, class R1, class D,
\n+
726 class T2, class V2, class R2>
\n+
727 inline typename EnableIfInterOperable<T1,T2,D>::type
\n+
\n+\n+\n+
730 {
\n+
731 if(std::is_convertible<T2,T1>::value)
\n+
732 return -static_cast<const T1&>(lhs).distanceTo(static_cast<const T2&>(rhs));
\n+
733 else
\n+
734 return static_cast<const T2&>(rhs).distanceTo(static_cast<const T1&>(lhs));
\n+
735 }
\n+
\n+
736
\n+
737
\n+
748 template<class ProxyType>
\n+
\n+\n+
750 {
\n+
751 public:
\n+
\n+
752 constexpr ProxyArrowResult(ProxyType&& p)
\n+
753 noexcept(std::is_nothrow_constructible_v<ProxyType, ProxyType&&>)
\n+
754 : p_(std::move(p))
\n+
755 {}
\n+
\n+
756
\n+
\n+
757 constexpr ProxyArrowResult(const ProxyType& p)
\n+
758 noexcept(std::is_nothrow_constructible_v<ProxyType, const ProxyType&>)
\n+
759 : p_(p)
\n+
760 {}
\n+
\n+
761
\n+
\n+
762 constexpr const ProxyType* operator->() const noexcept
\n+
763 {
\n+
764 return &p_;
\n+
765 }
\n+
\n+
766
\n+
\n+
767 constexpr ProxyType* operator->() noexcept
\n+
768 {
\n+
769 return &p_;
\n+
770 }
\n+
\n+
771
\n+
772 private:
\n+
773 ProxyType p_;
\n+
774 };
\n+
\n+
775
\n+
776
\n+
\n+\n+
786 {
\n+
787
\n+
789 template<class It>
\n+
790 static constexpr auto baseIterator(It&& it) noexcept
\n+
791 -> decltype(it.baseIterator())
\n+
792 {
\n+
793 return it.baseIterator();
\n+
794 }
\n+
795
\n+
797 template<class It>
\n+
798 static constexpr auto derived(It&& it) noexcept
\n+
799 -> decltype(it.derived())
\n+
800 {
\n+
801 return it.derived();
\n+
802 }
\n+
803
\n+
804 };
\n+
\n+
805
\n+
806
\n+
807
\n+
808 namespace Impl::Concepts {
\n+
809
\n+
810 using namespace Dune::Concept;
\n+
811
\n+
812 template<class R>
\n+
813 struct BaseIterDereferenceOp
\n+
814 {
\n+
815 template<class It>
\n+
816 auto require(const It& it) -> decltype(
\n+
817 *(IteratorFacadeAccess::baseIterator(it)),
\n+
818 requireConvertible<decltype(*(IteratorFacadeAccess::baseIterator(it))), R>()
\n+
819 );
\n+
820 };
\n+
821
\n+
822 struct IterEqualsOp
\n+
823 {
\n+
824 template<class It1, class It2>
\n+
825 auto require(const It1& it1, const It2& it2) -> decltype(
\n+
826 requireConvertible<bool>(it1 == it2)
\n+
827 );
\n+
828 };
\n+
829
\n+
830 struct BaseIterEqualsOp
\n+
831 {
\n+
832 template<class It1, class It2>
\n+
833 auto require(const It1& it1, const It2& it2) -> decltype(
\n+
834 Dune::Concept::requireConvertible<bool>(IteratorFacadeAccess::baseIterator(it1) == IteratorFacadeAccess::baseIterator(it2))
\n+
835 );
\n+
836 };
\n+
837
\n+
838 struct BaseIterIncrementOp
\n+
839 {
\n+
840 template<class It>
\n+
841 auto require(It it) -> decltype(
\n+
842 ++(IteratorFacadeAccess::baseIterator(it))
\n+
843 );
\n+
844 };
\n+
845
\n+
846 struct BaseIterDecrementOp
\n+
847 {
\n+
848 template<class It>
\n+
849 auto require(It it) -> decltype(
\n+
850 --(IteratorFacadeAccess::baseIterator(it))
\n+
851 );
\n+
852 };
\n+
853
\n+
854 template<class D>
\n+
855 struct IterAdvanceOp
\n+
856 {
\n+
857 template<class It>
\n+
858 auto require(It it) -> decltype(
\n+
859 it += std::declval<D>()
\n+
860 );
\n+
861 };
\n+
862
\n+
863 template<class D>
\n+
864 struct BaseIterAdvanceOp
\n+
865 {
\n+
866 template<class It>
\n+
867 auto require(It it) -> decltype(
\n+
868 IteratorFacadeAccess::baseIterator(it) += std::declval<D>()
\n+
869 );
\n+
870 };
\n+
871
\n+
872 template<class D>
\n+
873 struct IterDistanceOp
\n+
874 {
\n+
875 template<class It1, class It2>
\n+
876 auto require(const It1& it1, const It2& it2) -> decltype(
\n+
877 Dune::Concept::requireConvertible<D>(it1 - it2)
\n+
878 );
\n+
879 };
\n+
880
\n+
881 template<class D>
\n+
882 struct BaseIterDistanceOp
\n+
883 {
\n+
884 template<class It1, class It2>
\n+
885 auto require(const It1& it1, const It2& it2) -> decltype(
\n+
886 Dune::Concept::requireConvertible<D>(IteratorFacadeAccess::baseIterator(it1) - IteratorFacadeAccess::baseIterator(it2))
\n+
887 );
\n+
888 };
\n+
889
\n+
890 } // namespace Impl::Concept
\n+
891
\n+
892
\n+
893
\n+
1051 template<class It, class C, class V, class R = V&, class P = V*, class D = std::ptrdiff_t>
\n+
\n+\n+
1053 {
\n+
1054 static constexpr bool isBidirectional = std::is_convertible_v<C, std::bidirectional_iterator_tag>;
\n+
1055 static constexpr bool isRandomAccess = std::is_convertible_v<C, std::random_access_iterator_tag>;
\n+
1056
\n+
1057 // We make IteratorFacadeAccess a friend to allow forwarding of the derived()
\n+
1058 // methods to the free operators instead of havin to do raw casts there.
\n+
1059 // This allows to encapsulate all casts within IteratorFacade itself.
\n+
1060 friend IteratorFacadeAccess;
\n+
1061
\n+
1062 protected:
\n+
1063
\n+\n+
1066
\n+
\n+
1068 constexpr const DerivedIterator& derived() const
\n+
1069 {
\n+
1070 return static_cast<const DerivedIterator&>(*this);
\n+
1071 }
\n+
\n+
1072
\n+
\n+\n+
1075 {
\n+
1076 return static_cast<DerivedIterator&>(*this);
\n+
1077 }
\n+
\n+
1078
\n+
1079 public:
\n+
1080
\n+
1081 // Standard types of of C++ iterators
\n+\n+
1083 using value_type = typename std::remove_const<V>::type;
\n+
1084 using reference = R;
\n+
1085 using pointer = P;
\n+\n+
1087
\n+
1088 // Corresponding Dune typedefs
\n+\n+\n+\n+\n+
1093
\n+
1094 // Only defined to do static assertions.
\n+
\n+\n+
1096 {
\n+
1097 static_assert(std::is_signed_v<difference_type>,
\n+
1098 "Type used as difference_type must be signed");
\n+
1099 const DerivedIterator& constDerived = derived();
\n+
1100 static_assert(std::is_convertible_v<decltype(*constDerived), reference>,
\n+
1101 "Derived class does not implement `*it` or `*(it.baseIterator())` for const `it` required by IteratorFacade<..., std::forward_iterator_tag, ...>.");
\n+
1102 static_assert(std::is_convertible_v<decltype(++derived()), DerivedIterator&>,
\n+
1103 "Derived class does not implement `++it`, `++(it.baseIterator())`, or `it+=1` for mutable `it` required by IteratorFacade<..., std::forward_iterator_tag, ...>.");
\n+
1104 static_assert(std::is_convertible_v<decltype(constDerived==constDerived), bool>,
\n+
1105 "Derived class does not implement `it1==it2` or `it1.baseIterator()==it2.baseIterator()` for const `it1` and `it2` required by IteratorFacade<..., std::forward_iterator_tag, ...>.");
\n+
1106 if constexpr (isBidirectional)
\n+
1107 static_assert(std::is_convertible_v<decltype(--derived()), DerivedIterator&>,
\n+
1108 "Derived class does not implement `--it`, `--(it.baseIterator())`, or `it-=1` for mutable `it` required by IteratorFacade<..., std::bidirectional_iterator_tag, ...>.");
\n+
1109 if constexpr (isRandomAccess)
\n+
1110 {
\n+
1111 static_assert(std::is_convertible_v<decltype(derived()+=std::declval<difference_type>()), DerivedIterator&>,
\n+
1112 "Derived class does not implement `it+=` or `it.baseIterator()+=` for mutable `it` required by IteratorFacade<..., std::random_access_iterator_tag, ...>.");
\n+
1113 static_assert(std::is_convertible_v<decltype(constDerived-constDerived), difference_type>,
\n+
1114 "Derived class does not implement `it1-it2` or `it1.baseIterator()-it2.baseIterator()` for const `it1` and `it2` required by IteratorFacade<..., std::random_access_iterator_tag, ...>.");
\n+
1115 }
\n+
1116 }
\n+
\n+
1117
\n+
\n+
1119 constexpr decltype(auto) operator*() const
\n+
1120 {
\n+
1121 if constexpr (Dune::models<Impl::Concepts::BaseIterDereferenceOp<reference>, DerivedIterator>())
\n+
1122 return *(IteratorFacadeAccess::baseIterator(derived()));
\n+
1123 else
\n+
1124 static_assert(AlwaysFalse<It>::value,
\n+
1125 "Derived class does not implement `*it` or `*(it.baseIterator())` for const `it` required by IteratorFacade<..., std::forward_iterator_tag, ...>.");
\n+
1126 }
\n+
\n+
1127
\n+
\n+
1129 constexpr pointer operator->() const
\n+
1130 {
\n+
1131 if constexpr (std::is_pointer_v<pointer>)
\n+
1132 return std::addressof(*derived());
\n+
1133 else
\n+
1134 return pointer(*derived());
\n+
1135 }
\n+
\n+
1136
\n+
\n+
1138 constexpr decltype(auto) operator++()
\n+
1139 {
\n+
1140 if constexpr (Dune::models<Impl::Concepts::BaseIterIncrementOp, DerivedIterator>())
\n+
1141 {
\n+
1142 ++(IteratorFacadeAccess::baseIterator(derived()));
\n+
1143 return derived();
\n+
1144 }
\n+
1145 else if constexpr (Dune::models<Impl::Concepts::IterAdvanceOp<difference_type>, DerivedIterator>())
\n+
1146 {
\n+
1147 derived() += 1;
\n+
1148 return derived();
\n+
1149 }
\n+
1150 else
\n+
1151 static_assert(AlwaysFalse<It>::value,
\n+
1152 "Derived class does not implement `++it`, `++(it.baseIterator())`, or `it+=1` for mutable `it` required by IteratorFacade<..., std::forward_iterator_tag, ...>.");
\n+
1153 }
\n+
\n+
1154
\n+
\n+\n+
1157 {
\n+
1158 DerivedIterator tmp(derived());
\n+
1159 this->operator++();
\n+
1160 return tmp;
\n+
1161 }
\n+
\n+
1162
\n+
1168 template<bool dummy=true, std::enable_if_t<isBidirectional and dummy, int> =0>
\n+
\n+
1169 constexpr decltype(auto) operator--()
\n+
1170 {
\n+
1171 if constexpr (Dune::models<Impl::Concepts::BaseIterDecrementOp, DerivedIterator>())
\n+
1172 {
\n+
1173 --(IteratorFacadeAccess::baseIterator(derived()));
\n+
1174 return derived();
\n+
1175 }
\n+
1176 else if constexpr (Dune::models<Impl::Concepts::IterAdvanceOp<difference_type>, DerivedIterator>())
\n+
1177 {
\n+
1178 derived() -= 1;
\n+
1179 return derived();
\n+
1180 }
\n+
1181 else
\n+
1182 static_assert(AlwaysFalse<It>::value,
\n+
1183 "Derived class does not implement `--it`, `--(it.baseIterator())`, or `it-=1` for mutable `it` required by IteratorFacade<..., std::bidirectional_iterator_tag, ...>.");
\n+
1184 }
\n+
\n+
1185
\n+
1191 template<bool dummy=true, std::enable_if_t<isBidirectional and dummy, int> =0>
\n+
\n+\n+
1193 {
\n+
1194 DerivedIterator tmp(derived());
\n+
1195 this->operator--();
\n+
1196 return tmp;
\n+
1197 }
\n+
\n+
1198
\n+
1206 template<bool dummy=true, std::enable_if_t<isRandomAccess and dummy, int> =0>
\n+
\n+\n+
1208 {
\n+
1209 return *(derived()+n);
\n+
1210 }
\n+
\n+
1211
\n+
1217 template<bool dummy=true, std::enable_if_t<isRandomAccess and dummy, int> =0>
\n+
\n+
1218 constexpr decltype(auto) operator+=(difference_type n)
\n+
1219 {
\n+
1220 if constexpr (Dune::models<Impl::Concepts::BaseIterAdvanceOp<difference_type>, DerivedIterator>())
\n+
1221 {
\n+
1222 IteratorFacadeAccess::baseIterator(derived()) += n;
\n+
1223 return derived();
\n+
1224 }
\n+
1225 else
\n+
1226 static_assert(AlwaysFalse<It>::value,
\n+
1227 "Derived class does not implement `it+=` or `it.baseIterator()+=` for mutable `it` required by IteratorFacade<..., std::random_access_iterator_tag, ...>.");
\n+
1228 }
\n+
\n+
1229
\n+
1235 template<bool dummy=true, std::enable_if_t<isRandomAccess and dummy, int> =0>
\n+
\n+\n+
1237 {
\n+
1238 DerivedIterator tmp(derived());
\n+
1239 tmp += n;
\n+
1240 return tmp;
\n+
1241 }
\n+
\n+
1242
\n+
1248 template<bool dummy=true, std::enable_if_t<isRandomAccess and dummy, int> =0>
\n+
\n+\n+
1250 {
\n+
1251 derived() += (-n);
\n+
1252 return derived();
\n+
1253 }
\n+
\n+
1254
\n+
1260 template<bool dummy=true, std::enable_if_t<isRandomAccess and dummy, int> =0>
\n+
\n+\n+
1262 {
\n+
1263 DerivedIterator tmp(derived());
\n+
1264 tmp -= n;
\n+
1265 return tmp;
\n+
1266 }
\n+
\n+
1267
\n+
1268 };
\n+
\n+
1269
\n+
1270
\n+
1271
\n+
1282 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D1, class D2>
\n+
\n+\n+
1284 {
\n+
1285 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1286 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1287 if constexpr (Dune::models<Impl::Concepts::BaseIterEqualsOp, T1, T2>())
\n+
1288 return IteratorFacadeAccess::baseIterator(derivedIt1) == IteratorFacadeAccess::baseIterator(derivedIt2);
\n+
1289 else
\n+
1290 static_assert(AlwaysFalse<T1>::value,
\n+
1291 "Derived class does not implement `it1==it2` or `it1.baseIterator()==it2.baseIterator()` for const `it1` and `it2` required by IteratorFacade<..., std::forward_iterator_tag, ...>.");
\n+
1292 }
\n+
\n+
1293
\n+
1301 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D1, class D2,
\n+
1302 std::enable_if_t< Dune::models<Impl::Concepts::IterEqualsOp,T1, T2>() , int> =0>
\n+
\n+\n+
1304 {
\n+
1305 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1306 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1307 return not(derivedIt1 == derivedIt2);
\n+
1308 }
\n+
\n+
1309
\n+
1320 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D>
\n+
\n+\n+
1322 {
\n+
1323 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1324 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1325 if constexpr (Dune::models<Impl::Concepts::BaseIterDistanceOp<D>,T1, T2>())
\n+
1326 return D(IteratorFacadeAccess::baseIterator(derivedIt1) - IteratorFacadeAccess::baseIterator(derivedIt2));
\n+
1327 else
\n+
1328 static_assert(AlwaysFalse<T1>::value,
\n+
1329 "Derived class does not implement `it1-it2` or `it1.baseIterator()-it2.baseIterator()` for const `it1` and `it2` required by IteratorFacade<..., std::random_access_iterator_tag, ...>.");
\n+
1330 }
\n+
\n+
1331
\n+
1339 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D1, class D2,
\n+
1340 std::enable_if_t< Dune::models<Impl::Concepts::IterDistanceOp<D1>,T1, T2>() , int> =0>
\n+
\n+
1341 constexpr bool operator<(const IteratorFacade<T1,C,V1,R1,P1,D1>& it1, const IteratorFacade<T2,C,V2,R2,P2,D2>& it2)
\n+
1342 {
\n+
1343 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1344 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1345 return (derivedIt1 - derivedIt2) < D1(0);
\n+
1346 }
\n+
\n+
1347
\n+
1355 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D1, class D2,
\n+
1356 std::enable_if_t< Dune::models<Impl::Concepts::IterDistanceOp<D1>,T1, T2>() , int> =0>
\n+
\n+
1357 constexpr bool operator<=(const IteratorFacade<T1,C,V1,R1,P1,D1>& it1, const IteratorFacade<T2,C,V2,R2,P2,D2>& it2)
\n+
1358 {
\n+
1359 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1360 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1361 return (derivedIt1 - derivedIt2) <= D1(0);
\n+
1362 }
\n+
\n+
1363
\n+
1371 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D1, class D2,
\n+
1372 std::enable_if_t< Dune::models<Impl::Concepts::IterDistanceOp<D1>,T1, T2>() , int> =0>
\n+
\n+
1373 constexpr bool operator>(const IteratorFacade<T1,C,V1,R1,P1,D1>& it1, const IteratorFacade<T2,C,V2,R2,P2,D2>& it2)
\n+
1374 {
\n+
1375 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1376 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1377 return (derivedIt1 - derivedIt2) > D1(0);
\n+
1378 }
\n+
\n+
1379
\n+
1387 template<class T1, class T2, class C, class V1, class V2, class R1, class R2, class P1, class P2, class D1, class D2,
\n+
1388 std::enable_if_t< Dune::models<Impl::Concepts::IterDistanceOp<D1>,T1, T2>() , int> =0>
\n+
\n+
1389 constexpr bool operator>=(const IteratorFacade<T1,C,V1,R1,P1,D1>& it1, const IteratorFacade<T2,C,V2,R2,P2,D2>& it2)
\n+
1390 {
\n+
1391 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);
\n+
1392 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);
\n+
1393 return (derivedIt1 - derivedIt2) >= D1(0);
\n+
1394 }
\n+
\n+
1395
\n+
1396
\n+
1397
\n+
1399}
\n+
1400#endif
\n+
Traits for type conversions and type information.
\n+
Infrastructure for concepts.
\n
bigunsignedint< k > operator-(const bigunsignedint< k > &x, std::uintmax_t y)
Definition bigunsignedint.hh:542
\n-
bigunsignedint< k > operator+(const bigunsignedint< k > &x, std::uintmax_t y)
Definition bigunsignedint.hh:535
\n-
#define DUNE_THROW(E, m)
Definition exceptions.hh:218
\n+
EnableIfInterOperable< T1, T2, bool >::type operator<(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
Comparison operator.
Definition iteratorfacades.hh:638
\n+
EnableIfInterOperable< T1, T2, bool >::type operator>(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
Comparison operator.
Definition iteratorfacades.hh:684
\n+
EnableIfInterOperable< T1, T2, bool >::type operator<=(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
Comparison operator.
Definition iteratorfacades.hh:661
\n+
EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for equality.
Definition iteratorfacades.hh:238
\n+
EnableIfInterOperable< T1, T2, bool >::type operator>=(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
Comparison operator.
Definition iteratorfacades.hh:706
\n+
EnableIfInterOperable< T1, T2, bool >::type operator!=(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for inequality.
Definition iteratorfacades.hh:260
\n
STL namespace.
\n
Dune namespace.
Definition alignedallocator.hh:13
\n-
T max_value(const AlignedNumber< T, align > &val)
Definition debugalign.hh:494
\n-
T min_value(const AlignedNumber< T, align > &val)
Definition debugalign.hh:500
\n-
Default exception class for range errors.
Definition exceptions.hh:254
\n+
Namespace for concepts.
Definition concept.hh:34
\n+
constexpr bool requireConvertible()
Definition concept.hh:247
\n+
Base class for stl conformant forward iterators.
Definition iteratorfacades.hh:142
\n+
std::forward_iterator_tag iterator_category
Definition iteratorfacades.hh:146
\n+
V * pointer
Definition iteratorfacades.hh:149
\n+
DerivedType & operator++()
Preincrement operator.
Definition iteratorfacades.hh:210
\n+
D DifferenceType
The type of the difference between two positions.
Definition iteratorfacades.hh:191
\n+
R Reference
The type of the reference to the values accessed.
Definition iteratorfacades.hh:196
\n+
Pointer operator->() const
Definition iteratorfacades.hh:204
\n+
T DerivedType
The type of derived iterator.
Definition iteratorfacades.hh:176
\n+
V Value
The type of value accessed through the iterator.
Definition iteratorfacades.hh:181
\n+
typename std::remove_const< V >::type value_type
Definition iteratorfacades.hh:147
\n+
DerivedType operator++(int)
Postincrement operator.
Definition iteratorfacades.hh:217
\n+
V * Pointer
The pointer to the Value.
Definition iteratorfacades.hh:186
\n+
D difference_type
Definition iteratorfacades.hh:148
\n+
Reference operator*() const
Dereferencing operator.
Definition iteratorfacades.hh:199
\n+
R reference
Definition iteratorfacades.hh:150
\n+
Facade class for stl conformant bidirectional iterators.
Definition iteratorfacades.hh:275
\n+
V * pointer
Definition iteratorfacades.hh:282
\n+
typename std::remove_const< V >::type value_type
Definition iteratorfacades.hh:280
\n+
Reference operator*() const
Dereferencing operator.
Definition iteratorfacades.hh:333
\n+
D difference_type
Definition iteratorfacades.hh:281
\n+
T DerivedType
The type of derived iterator.
Definition iteratorfacades.hh:310
\n+
DerivedType & operator--()
Preincrement operator.
Definition iteratorfacades.hh:360
\n+
Pointer operator->() const
Definition iteratorfacades.hh:338
\n+
DerivedType & operator++()
Preincrement operator.
Definition iteratorfacades.hh:344
\n+
V * Pointer
The pointer to the Value.
Definition iteratorfacades.hh:320
\n+
R Reference
The type of the reference to the values accessed.
Definition iteratorfacades.hh:330
\n+
DerivedType operator++(int)
Postincrement operator.
Definition iteratorfacades.hh:351
\n+
std::bidirectional_iterator_tag iterator_category
Definition iteratorfacades.hh:279
\n+
D DifferenceType
The type of the difference between two positions.
Definition iteratorfacades.hh:325
\n+
DerivedType operator--(int)
Postincrement operator.
Definition iteratorfacades.hh:367
\n+
R reference
Definition iteratorfacades.hh:283
\n+
V Value
The type of value accessed through the iterator.
Definition iteratorfacades.hh:315
\n+
Base class for stl conformant forward iterators.
Definition iteratorfacades.hh:435
\n+
typename std::remove_const< V >::type value_type
Definition iteratorfacades.hh:440
\n+
D difference_type
Definition iteratorfacades.hh:441
\n+
DerivedType operator--(int)
Postdecrement operator.
Definition iteratorfacades.hh:558
\n+
V * pointer
Definition iteratorfacades.hh:442
\n+
std::random_access_iterator_tag iterator_category
Definition iteratorfacades.hh:439
\n+
Reference operator*() const
Dereferencing operator.
Definition iteratorfacades.hh:501
\n+
DerivedType & operator++()
Preincrement operator.
Definition iteratorfacades.hh:522
\n+
R reference
Definition iteratorfacades.hh:443
\n+
Pointer operator->() const
Definition iteratorfacades.hh:506
\n+
D DifferenceType
The type of the difference between two positions.
Definition iteratorfacades.hh:493
\n+
DerivedType & operator--()
Predecrement operator.
Definition iteratorfacades.hh:551
\n+
DerivedType & operator-=(DifferenceType n)
Definition iteratorfacades.hh:565
\n+
DerivedType operator+(DifferenceType n) const
Definition iteratorfacades.hh:542
\n+
Reference operator[](DifferenceType n) const
Get the element n positions from the current one.
Definition iteratorfacades.hh:516
\n+
T DerivedType
The type of derived iterator.
Definition iteratorfacades.hh:478
\n+
V * Pointer
The pointer to the Value.
Definition iteratorfacades.hh:488
\n+
DerivedType operator-(DifferenceType n) const
Definition iteratorfacades.hh:571
\n+
DerivedType operator++(int)
Postincrement operator.
Definition iteratorfacades.hh:529
\n+
V Value
The type of value accessed through the iterator.
Definition iteratorfacades.hh:483
\n+
DerivedType & operator+=(DifferenceType n)
Definition iteratorfacades.hh:536
\n+
R Reference
The type of the reference to the values accessed.
Definition iteratorfacades.hh:498
\n+
Helper to mimic a pointer for proxy objects.
Definition iteratorfacades.hh:750
\n+
constexpr ProxyArrowResult(const ProxyType &p) noexcept(std::is_nothrow_constructible_v< ProxyType, const ProxyType & >)
Definition iteratorfacades.hh:757
\n+
constexpr ProxyType * operator->() noexcept
Definition iteratorfacades.hh:767
\n+
constexpr const ProxyType * operator->() const noexcept
Definition iteratorfacades.hh:762
\n+
constexpr ProxyArrowResult(ProxyType &&p) noexcept(std::is_nothrow_constructible_v< ProxyType, ProxyType && >)
Definition iteratorfacades.hh:752
\n+
This class encapsulates access of IteratorFacade.
Definition iteratorfacades.hh:786
\n+
CRTP-Mixing class for stl conformant iterators of given iterator category.
Definition iteratorfacades.hh:1053
\n+
constexpr DerivedIterator operator--(int)
Postdecrement operator.
Definition iteratorfacades.hh:1192
\n+
D difference_type
Definition iteratorfacades.hh:1086
\n+
C iterator_category
Definition iteratorfacades.hh:1082
\n+
IteratorFacade()
Definition iteratorfacades.hh:1095
\n+
constexpr pointer operator->() const
Arrow access to members of referenced value.
Definition iteratorfacades.hh:1129
\n+
pointer Pointer
Definition iteratorfacades.hh:1091
\n+
reference Reference
Definition iteratorfacades.hh:1090
\n+
constexpr DerivedIterator operator+(difference_type n) const
Create iterator incremented by given value.
Definition iteratorfacades.hh:1236
\n+
constexpr DerivedIterator operator++(int)
Postincrement operator.
Definition iteratorfacades.hh:1156
\n+
constexpr DerivedIterator & derived()
Cast of *this to DerivedIterator type.
Definition iteratorfacades.hh:1074
\n+
It DerivedIterator
The derived iterator type.
Definition iteratorfacades.hh:1065
\n+
constexpr DerivedIterator & operator-=(difference_type n)
Decrement iterator by given value.
Definition iteratorfacades.hh:1249
\n+
constexpr decltype(auto) operator--()
Predecrement operator.
Definition iteratorfacades.hh:1169
\n+
R reference
Definition iteratorfacades.hh:1084
\n+
constexpr reference operator[](difference_type n) const
Dereference element with given offset form this iterator.
Definition iteratorfacades.hh:1207
\n+
constexpr const DerivedIterator & derived() const
Cast of *this to const DerivedIterator type.
Definition iteratorfacades.hh:1068
\n+
P pointer
Definition iteratorfacades.hh:1085
\n+
typename std::remove_const< V >::type value_type
Definition iteratorfacades.hh:1083
\n+
value_type Value
Definition iteratorfacades.hh:1089
\n+
constexpr decltype(auto) operator++()
Preincrement operator.
Definition iteratorfacades.hh:1138
\n+
difference_type DifferenceType
Definition iteratorfacades.hh:1092
\n+
constexpr DerivedIterator operator-(difference_type n) const
Create iterator decremented by given value.
Definition iteratorfacades.hh:1261
\n+
Enable typedef if two types are interoperable.
Definition typetraits.hh:81
\n+
template which always yields a false value
Definition typetraits.hh:124
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,527 +1,1183 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-quadmath.hh\n+iteratorfacades.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_QUADMATH_HH\n-6#define DUNE_QUADMATH_HH\n+5#ifndef DUNE_ITERATORFACADES_HH\n+6#define DUNE_ITERATORFACADES_HH\n 7\n-8#if HAVE_QUADMATH\n-9#include \n+8#include \n+9#include \n 10\n-11#include \n-12#include \n-13#include \n-14#include // abs\n-15#include \n-16#include \n-17#include \n-18#include \n-19\n-20#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n-21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-22\n-23namespace _\bD_\bu_\bn_\be\n-24{\n-25 namespace Impl\n-26 {\n-27 // forward declaration\n-28 class Float128;\n-29\n-30 } // end namespace Impl\n-31\n-32 using Impl::Float128;\n-33\n-34 // The purpose of this namespace is to move the `` function overloads\n-35 // out of namespace `Dune`, see AlignedNumber in debugalign.hh.\n-36 namespace Impl\n-37 {\n-38 using float128_t = __float128;\n-39\n-41 class Float128\n-42 {\n-43 float128_t value_ = 0.0q;\n-44\n-45 public:\n-46 constexpr Float128() = default;\n-47 constexpr Float128(const float128_t& value) noexcept\n-48 : value_(value)\n-49 {}\n-50\n-51 // constructor from any floating-point or integer type\n-52 template ::value, int> = 0>\n-54 constexpr Float128(const T& value) noexcept\n-55 : value_(value)\n-56 {}\n-57\n-58 // constructor from pointer to null-terminated byte string\n-59 explicit Float128(const char* str) noexcept\n-60 : value_(strtoflt128(str, NULL))\n-61 {}\n-62\n-63 // accessors\n-64 constexpr operator float128_t() const noexcept { return value_; }\n-65\n-66 constexpr float128_t const& value() const noexcept { return value_; }\n-67 constexpr float128_t& value() noexcept { return value_; }\n-68\n-69 // I/O\n-70 template\n-71 friend std::basic_istream&\n-72 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::basic_istream& in, Float128& x)\n-73 {\n-74 std::string buf;\n-75 buf.reserve(128);\n-76 in >> buf;\n-77 x.value() = strtoflt128(buf.c_str(), NULL);\n-78 return in;\n-79 }\n-80\n-81 template\n-82 friend std::basic_ostream&\n-83 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::basic_ostream& out, const Float128& x)\n-84 {\n-85 const std::size_t bufSize = 128;\n-86 CharT buf[128];\n-87\n-88 std::string format = \"%.\" + std::to_string(out.precision()) + \"Q\" +\n-89 ((out.flags() | std::ios_base::scientific) ? \"e\" : \"f\");\n-90 const int numChars = quadmath_snprintf(buf, bufSize, format.c_str(), x.value\n-());\n-91 if (std::size_t(numChars) >= bufSize) {\n-92 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bg_\be_\bE_\br_\br_\bo_\br, \"Failed to print Float128 value: buffer\n-overflow\");\n-93 }\n-94 out << buf;\n-95 return out;\n-96 }\n-97\n-98 // Increment, decrement\n-99 constexpr Float128& operator++() noexcept { ++value_; return *this; }\n-100 constexpr Float128& operator--() noexcept { --value_; return *this; }\n-101\n-102 constexpr Float128 operator++(int) noexcept { Float128 tmp{*this};\n-++value_; return tmp; }\n-103 constexpr Float128 operator--(int) noexcept { Float128 tmp{*this}; --\n-value_; return tmp; }\n-104\n-105 // unary operators\n-106 constexpr Float128 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+() const noexcept { return Float128{+value_}; }\n-107 constexpr Float128 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-() const noexcept { return Float128{-value_}; }\n-108\n-109 // assignment operators\n-110#define DUNE_ASSIGN_OP(OP) \\\n-111 constexpr Float128& operator OP(const Float128& u) noexcept \\\n-112 { \\\n-113 value_ OP float128_t(u); \\\n-114 return *this; \\\n-115 } \\\n-116 static_assert(true, \"Require semicolon to unconfuse editors\")\n-117\n-118 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bI_\bG_\bN_\b__\bO_\bP(+=);\n-119 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bI_\bG_\bN_\b__\bO_\bP(-=);\n-120\n-121 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bI_\bG_\bN_\b__\bO_\bP(*=);\n-122 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bI_\bG_\bN_\b__\bO_\bP(/=);\n-123\n-124#undef DUNE_ASSIGN_OP\n-125\n-126 }; // end class Float128\n-127\n-128 // binary operators:\n-129 // For symmetry provide overloads with arithmetic types\n-130 // in the first or second argument.\n-131#define DUNE_BINARY_OP(OP) \\\n-132 constexpr Float128 operator OP(const Float128& t, \\\n-133 const Float128& u) noexcept \\\n-134 { \\\n-135 return Float128{float128_t(t) OP float128_t(u)}; \\\n-136 } \\\n-137 constexpr Float128 operator OP(const float128_t& t, \\\n-138 const Float128& u) noexcept \\\n-139 { \\\n-140 return Float128{t OP float128_t(u)}; \\\n-141 } \\\n-142 constexpr Float128 operator OP(const Float128& t, \\\n-143 const float128_t& u) noexcept \\\n-144 { \\\n-145 return Float128{float128_t(t) OP u}; \\\n-146 } \\\n-147 template ::value, int> = 0> \\\n-149 constexpr Float128 operator OP(const T& t, \\\n-150 const Float128& u) noexcept \\\n-151 { \\\n-152 return Float128{float128_t(t) OP float128_t(u)}; \\\n-153 } \\\n-154 template ::value, int> = 0> \\\n-156 constexpr Float128 operator OP(const Float128& t, \\\n-157 const U& u) noexcept \\\n-158 { \\\n-159 return Float128{float128_t(t) OP float128_t(u)}; \\\n-160 } \\\n-161 static_assert(true, \"Require semicolon to unconfuse editors\")\n-162\n-163 _\bD_\bU_\bN_\bE_\b__\bB_\bI_\bN_\bA_\bR_\bY_\b__\bO_\bP(+);\n-164 _\bD_\bU_\bN_\bE_\b__\bB_\bI_\bN_\bA_\bR_\bY_\b__\bO_\bP(-);\n-165 _\bD_\bU_\bN_\bE_\b__\bB_\bI_\bN_\bA_\bR_\bY_\b__\bO_\bP(*);\n-166 _\bD_\bU_\bN_\bE_\b__\bB_\bI_\bN_\bA_\bR_\bY_\b__\bO_\bP(/);\n-167\n-168#undef DUNE_BINARY_OP\n-169\n-170 // logical operators:\n-171 // For symmetry provide overloads with arithmetic types\n-172 // in the first or second argument.\n-173#define DUNE_BINARY_BOOL_OP(OP) \\\n-174 constexpr bool operator OP(const Float128& t, \\\n-175 const Float128& u) noexcept \\\n-176 { \\\n-177 return float128_t(t) OP float128_t(u); \\\n-178 } \\\n-179 template ::value, int> = 0> \\\n-181 constexpr bool operator OP(const T& t, \\\n-182 const Float128& u) noexcept \\\n-183 { \\\n-184 return float128_t(t) OP float128_t(u); \\\n-185 } \\\n-186 template ::value, int> = 0> \\\n-188 constexpr bool operator OP(const Float128& t, \\\n-189 const U& u) noexcept \\\n-190 { \\\n-191 return float128_t(t) OP float128_t(u); \\\n-192 } \\\n-193 static_assert(true, \"Require semicolon to unconfuse editors\")\n-194\n-195 DUNE_BINARY_BOOL_OP(==);\n-196 DUNE_BINARY_BOOL_OP(!=);\n-197 DUNE_BINARY_BOOL_OP(<);\n-198 DUNE_BINARY_BOOL_OP(>);\n-199 DUNE_BINARY_BOOL_OP(<=);\n-200 DUNE_BINARY_BOOL_OP(>=);\n-201\n-202#undef DUNE_BINARY_BOOL_OP\n+11#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bc_\bo_\bn_\bc_\be_\bp_\bt_\b._\bh_\bh>\n+13\n+14namespace _\bD_\bu_\bn_\be\n+15{\n+140 template\n+_\b1_\b4_\b1 class _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+142 {\n+143\n+144 public:\n+145 /* type aliases required by C++ for iterators */\n+_\b1_\b4_\b6 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by = std::forward_iterator_tag;\n+_\b1_\b4_\b7 using _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be = typename std::remove_const::type;\n+_\b1_\b4_\b8 using _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be = D;\n+_\b1_\b4_\b9 using _\bp_\bo_\bi_\bn_\bt_\be_\br = V*;\n+_\b1_\b5_\b0 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = R;\n+151\n+_\b1_\b7_\b6 typedef T _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be;\n+177\n+_\b1_\b8_\b1 typedef V _\bV_\ba_\bl_\bu_\be;\n+182\n+_\b1_\b8_\b6 typedef V* _\bP_\bo_\bi_\bn_\bt_\be_\br;\n+187\n+_\b1_\b9_\b1 typedef D _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be;\n+192\n+_\b1_\b9_\b6 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+197\n+_\b1_\b9_\b9 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const\n+200 {\n+201 return static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const*>(this)->dereference();\n+202 }\n 203\n-204 // Overloads for the cmath functions\n-205\n-206 // function with name `name` redirects to quadmath function `func`\n-207#define DUNE_UNARY_FUNC(name,func) \\\n-208 inline Float128 name(const Float128& u) noexcept \\\n-209 { \\\n-210 return Float128{func (float128_t(u))}; \\\n-211 } \\\n-212 static_assert(true, \"Require semicolon to unconfuse editors\")\n-213\n-214 // like DUNE_UNARY_FUNC but with custom return type\n-215#define DUNE_CUSTOM_UNARY_FUNC(type,name,func) \\\n-216 inline type name(const Float128& u) noexcept \\\n-217 { \\\n-218 return (type)(func (float128_t(u))); \\\n-219 } \\\n-220 static_assert(true, \"Require semicolon to unconfuse editors\")\n-221\n-222 // redirects to quadmath function with two arguments\n-223#define DUNE_BINARY_FUNC(name,func) \\\n-224 inline Float128 name(const Float128& t, \\\n-225 const Float128& u) noexcept \\\n-226 { \\\n-227 return Float128{func (float128_t(t), float128_t(u))}; \\\n-228 } \\\n-229 static_assert(true, \"Require semicolon to unconfuse editors\")\n-230\n-231 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(abs, fabsq);\n-232 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(acos, acosq);\n-233 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(acosh, acoshq);\n-234 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(asin, asinq);\n-235 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(asinh, asinhq);\n-236 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(atan, atanq);\n-237 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(atanh, atanhq);\n-238 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(cbrt, cbrtq);\n-239 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(ceil, ceilq);\n-240 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(cos, cosq);\n-241 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(cosh, coshq);\n-242 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(erf, erfq);\n-243 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(erfc, erfcq);\n-244 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(exp, expq);\n-245 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(expm1, expm1q);\n-246 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(fabs, fabsq);\n-247 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(floor, floorq);\n-248 DUNE_CUSTOM_UNARY_FUNC(int, ilogb, ilogbq);\n-249 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(lgamma, lgammaq);\n-250 DUNE_CUSTOM_UNARY_FUNC(long long int, llrint, llrintq);\n-251 DUNE_CUSTOM_UNARY_FUNC(long long int, llround, llroundq);\n-252 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(log, logq);\n-253 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(log10, log10q);\n-254 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(log1p, log1pq);\n-255 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(log2, log2q);\n-256 // DUNE_UNARY_FUNC(logb, logbq); // not available in gcc5\n-257 DUNE_CUSTOM_UNARY_FUNC(long int, lrint, lrintq);\n-258 DUNE_CUSTOM_UNARY_FUNC(long int, lround, lroundq);\n-259 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(nearbyint, nearbyintq);\n-260 DUNE_BINARY_FUNC(nextafter, nextafterq);\n-261 DUNE_BINARY_FUNC(pow, powq); // overload for integer argument see below\n-262 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(rint, rintq);\n-263 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(round, roundq);\n-264 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(sin, sinq);\n-265 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(sinh, sinhq);\n-266 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(sqrt, sqrtq);\n-267 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(tan, tanq);\n-268 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(tanh, tanhq);\n-269 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(tgamma, tgammaq);\n-270 _\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC(trunc, truncq);\n-271\n-272 DUNE_CUSTOM_UNARY_FUNC(bool, isfinite, finiteq);\n-273 DUNE_CUSTOM_UNARY_FUNC(bool, isinf, isinfq);\n-274 DUNE_CUSTOM_UNARY_FUNC(bool, isnan, isnanq);\n-275 DUNE_CUSTOM_UNARY_FUNC(bool, signbit, signbitq);\n+_\b2_\b0_\b4 _\bP_\bo_\bi_\bn_\bt_\be_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const\n+205 {\n+206 return &(static_cast(this)->dereference());\n+207 }\n+208\n+_\b2_\b1_\b0 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+211 {\n+212 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->increment();\n+213 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+214 }\n+215\n+_\b2_\b1_\b7 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+(int)\n+218 {\n+219 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+220 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+221 return tmp;\n+222 }\n+223 };\n+224\n+235 template\n+237 inline typename EnableIfInterOperable::type\n+_\b2_\b3_\b8 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+239 const _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+240 {\n+241 if(std::is_convertible::value)\n+242 return static_cast(lhs).equals(static_cast(rhs));\n+243 else\n+244 return static_cast(rhs).equals(static_cast(lhs));\n+245 }\n+246\n+257 template\n+259 inline typename EnableIfInterOperable::type\n+_\b2_\b6_\b0 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+261 const _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+262 {\n+263 if(std::is_convertible::value)\n+264 return !static_cast(lhs).equals(static_cast(rhs));\n+265 else\n+266 return !static_cast(rhs).equals(static_cast(lhs));\n+267 }\n+268\n+273 template\n+_\b2_\b7_\b4 class _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+275 {\n 276\n-277#undef DUNE_UNARY_FUNC\n-278#undef DUNE_CUSTOM_UNARY_FUNC\n-279#undef DUNE_BINARY_FUNC\n-280\n-281 // like DUNE_BINARY_FUNC but provide overloads with arithmetic\n-282 // types in the first or second argument.\n-283#define DUNE_BINARY_ARITHMETIC_FUNC(name,func) \\\n-284 inline Float128 name(const Float128& t, \\\n-285 const Float128& u) noexcept \\\n-286 { \\\n-287 return Float128{func (float128_t(t), float128_t(u))}; \\\n-288 } \\\n-289 template ::value, int> = 0> \\\n-291 inline Float128 name(const T& t, \\\n-292 const Float128& u) noexcept \\\n-293 { \\\n-294 return Float128{func (float128_t(t), float128_t(u))}; \\\n-295 } \\\n-296 template ::value, int> = 0> \\\n-298 inline Float128 name(const Float128& t, \\\n-299 const U& u) noexcept \\\n-300 { \\\n-301 return Float128{func (float128_t(t), float128_t(u))}; \\\n-302 } \\\n-303 static_assert(true, \"Require semicolon to unconfuse editors\")\n-304\n-305 DUNE_BINARY_ARITHMETIC_FUNC(atan2,atan2q);\n-306 DUNE_BINARY_ARITHMETIC_FUNC(copysign,copysignq);\n-307 DUNE_BINARY_ARITHMETIC_FUNC(fdim,fdimq);\n-308 DUNE_BINARY_ARITHMETIC_FUNC(fmax,fmaxq);\n-309 DUNE_BINARY_ARITHMETIC_FUNC(fmin,fminq);\n-310 DUNE_BINARY_ARITHMETIC_FUNC(fmod,fmodq);\n-311 DUNE_BINARY_ARITHMETIC_FUNC(hypot,hypotq);\n-312 DUNE_BINARY_ARITHMETIC_FUNC(remainder,remainderq);\n-313\n-314#undef DUNE_BINARY_ARITHMETIC_FUNC\n-315\n-316 // some more cmath functions with special signature\n-317\n-318 inline Float128 fma(const Float128& t, const Float128& u, const Float128&\n-v)\n-319 {\n-320 return Float128{fmaq(float128_t(t),float128_t(u),float128_t(v))};\n-321 }\n-322\n-323 inline Float128 frexp(const Float128& u, int* p)\n-324 {\n-325 return Float128{frexpq(float128_t(u), p)};\n-326 }\n-327\n-328 inline Float128 ldexp(const Float128& u, int p)\n-329 {\n-330 return Float128{ldexpq(float128_t(u), p)};\n-331 }\n-332\n-333 inline Float128 remquo(const Float128& t, const Float128& u, int* quo)\n+277 public:\n+278 /* type aliases required by C++ for iterators */\n+_\b2_\b7_\b9 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by = std::bidirectional_iterator_tag;\n+_\b2_\b8_\b0 using _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be = typename std::remove_const::type;\n+_\b2_\b8_\b1 using _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be = D;\n+_\b2_\b8_\b2 using _\bp_\bo_\bi_\bn_\bt_\be_\br = V*;\n+_\b2_\b8_\b3 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = R;\n+284\n+_\b3_\b1_\b0 typedef T _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be;\n+311\n+_\b3_\b1_\b5 typedef V _\bV_\ba_\bl_\bu_\be;\n+316\n+_\b3_\b2_\b0 typedef V* _\bP_\bo_\bi_\bn_\bt_\be_\br;\n+321\n+_\b3_\b2_\b5 typedef D _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be;\n+326\n+_\b3_\b3_\b0 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+331\n+_\b3_\b3_\b3 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const\n 334 {\n-335 return Float128{remquoq(float128_t(t), float128_t(u), quo)};\n+335 return static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const*>(this)->dereference();\n 336 }\n 337\n-338 inline Float128 scalbln(const Float128& u, long int e)\n+_\b3_\b3_\b8 _\bP_\bo_\bi_\bn_\bt_\be_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const\n 339 {\n-340 return Float128{scalblnq(float128_t(u), e)};\n+340 return &(static_cast(this)->dereference());\n 341 }\n 342\n-343 inline Float128 scalbn(const Float128& u, int e)\n-344 {\n-345 return Float128{scalbnq(float128_t(u), e)};\n-346 }\n-347\n-349 // NOTE: This is much faster than a pow(x, Float128(p)) call\n-350 // NOTE: This is a modified version of boost::math::cstdfloat::detail::pown\n-351 // (adapted to the type Float128) that is part of the Boost 1.65 Math\n-toolkit 2.8.0\n-352 // and is implemented by Christopher Kormanyos, John Maddock, and Paul A.\n-Bristow,\n-353 // distributed under the Boost Software License, Version 1.0\n-354 // (See http://www.boost.org/LICENSE_1_0.txt)\n-355 template ::value, int> = 0>\n-357 inline Float128 pow(const Float128& x, const Int p)\n-358 {\n-359 static const Float128 _\bm_\ba_\bx_\b__\bv_\ba_\bl_\bu_\be = FLT128_MAX;\n-360 static const Float128 _\bm_\bi_\bn_\b__\bv_\ba_\bl_\bu_\be = FLT128_MIN;\n-361 static const Float128 inf_value = float128_t{1} / float128_t{0};\n-362\n-363 const bool isneg = (x < 0);\n-364 const bool isnan = (x != x);\n-365 const bool isinf = (isneg ? bool(-x > _\bm_\ba_\bx_\b__\bv_\ba_\bl_\bu_\be) : bool(+x > _\bm_\ba_\bx_\b__\bv_\ba_\bl_\bu_\be));\n-366\n-367 if (isnan) { return x; }\n-368 if (isinf) { return Float128{nanq(\"\")}; }\n-369\n-370 const Float128 abs_x = (isneg ? -x : x);\n-371 if (p < Int(0)) {\n-372 if (abs_x < _\bm_\bi_\bn_\b__\bv_\ba_\bl_\bu_\be)\n-373 return (isneg ? -inf_value : +inf_value);\n-374 else\n-375 return Float128(1) / pow(x, Int(-p));\n-376 }\n-377\n-378 if (p == Int(0)) { return Float128(1); }\n-379 if (p == Int(1)) { return x; }\n-380 if (abs_x > _\bm_\ba_\bx_\b__\bv_\ba_\bl_\bu_\be)\n-381 return (isneg ? -inf_value : +inf_value);\n-382\n-383 if (p == Int(2)) { return (x * x); }\n-384 if (p == Int(3)) { return ((x * x) * x); }\n-385 if (p == Int(4)) { const Float128 x2 = (x * x); return (x2 * x2); }\n-386\n-387 Float128 result = ((p % Int(2)) != Int(0)) ? x : Float128(1);\n-388 Float128 xn = x; // binary powers of x\n-389\n-390 Int p2 = p;\n-391 while (Int(p2 /= 2) != Int(0)) {\n-392 xn *= xn; // Square xn for each binary power\n-393\n-394 const bool has_binary_power = (Int(p2 % Int(2)) != Int(0));\n-395 if (has_binary_power)\n-396 result *= xn;\n-397 }\n-398\n-399 return result;\n-400 }\n-401\n-402\n-403 } // end namespace Impl\n-404\n-405 template <>\n-406 struct IsNumber\n-407 : public std::true_type {};\n-408\n-409} // end namespace Dune\n-410\n-411namespace _\bs_\bt_\bd\n-412{\n-413#ifndef NO_STD_NUMERIC_LIMITS_SPECIALIZATION\n-414 template <>\n-415 class numeric_limits<_\bD_\bu_\bn_\be::Impl::Float128>\n-416 {\n-417 using Float128 = Dune::Impl::Float128;\n-418 using float128_t = Dune::Impl::float128_t;\n-419\n-420 public:\n-421 static constexpr bool is_specialized = true;\n-422 static constexpr Float128 _\bm_\bi_\bn() noexcept { return FLT128_MIN; }\n-423 static constexpr Float128 _\bm_\ba_\bx() noexcept { return FLT128_MAX; }\n-424 static constexpr Float128 lowest() noexcept { return -FLT128_MAX; }\n-425 static constexpr int digits = FLT128_MANT_DIG;\n-426 static constexpr int digits10 = 34;\n-427 static constexpr int max_digits10 = 36;\n-428 static constexpr bool is_signed = true;\n-429 static constexpr bool is_integer = false;\n-430 static constexpr bool is_exact = false;\n-431 static constexpr int radix = 2;\n-432 static constexpr Float128 epsilon() noexcept { return FLT128_EPSILON; }\n-433 static constexpr Float128 round_error() noexcept { return float128_t{0.5};\n-}\n-434 static constexpr int min_exponent = FLT128_MIN_EXP;\n-435 static constexpr int min_exponent10 = FLT128_MIN_10_EXP;\n-436 static constexpr int max_exponent = FLT128_MAX_EXP;\n-437 static constexpr int max_exponent10 = FLT128_MAX_10_EXP;\n-438 static constexpr bool has_infinity = true;\n-439 static constexpr bool has_quiet_NaN = true;\n-440 static constexpr bool has_signaling_NaN = false;\n-441 static constexpr float_denorm_style has_denorm = denorm_present;\n-442 static constexpr bool has_denorm_loss = false;\n-443 static constexpr Float128 infinity() noexcept { return float128_t{1}/\n-float128_t{0}; }\n-444 static Float128 quiet_NaN() noexcept { return nanq(\"\"); }\n-445 static constexpr Float128 signaling_NaN() noexcept { return float128_t{}; }\n-446 static constexpr Float128 denorm_min() noexcept { return FLT128_DENORM_MIN;\n-}\n-447 static constexpr bool is_iec559 = true;\n-448 static constexpr bool is_bounded = false;\n-449 static constexpr bool is_modulo = false;\n-450 static constexpr bool traps = false;\n-451 static constexpr bool tinyness_before = false;\n-452 static constexpr float_round_style round_style = round_to_nearest;\n-453 };\n-454#endif\n-455} // end namespace std\n-456\n-457#endif // HAVE_QUADMATH\n-458#endif // DUNE_QUADMATH_HH\n-_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n-A few common exception classes.\n-_\bD_\bU_\bN_\bE_\b__\bB_\bI_\bN_\bA_\bR_\bY_\b__\bO_\bP\n-#define DUNE_BINARY_OP(OP)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn debugalign.hh:261\n-_\bD_\bU_\bN_\bE_\b__\bU_\bN_\bA_\bR_\bY_\b__\bF_\bU_\bN_\bC\n-#define DUNE_UNARY_FUNC(name)\n-_\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bI_\bG_\bN_\b__\bO_\bP\n-#define DUNE_ASSIGN_OP(OP)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn debugalign.hh:220\n+_\b3_\b4_\b4 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+345 {\n+346 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->increment();\n+347 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+348 }\n+349\n+_\b3_\b5_\b1 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+(int)\n+352 {\n+353 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+354 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+355 return tmp;\n+356 }\n+357\n+358\n+_\b3_\b6_\b0 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-()\n+361 {\n+362 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->decrement();\n+363 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+364 }\n+365\n+_\b3_\b6_\b7 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-(int)\n+368 {\n+369 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+370 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-();\n+371 return tmp;\n+372 }\n+373 };\n+374\n+382 template\n+384 inline typename std::enable_if::value,bool>::\n+type\n+_\b3_\b8_\b5 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+386 const _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+387 {\n+388 return static_cast(lhs).equals(static_cast(rhs));\n+389 }\n+390\n+399 template\n+401 inline\n+402 typename std::enable_if::value && !std::\n+is_convertible::value,\n+403 bool>::type\n+_\b4_\b0_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+405 const _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+406 {\n+407 return static_cast(rhs).equals(static_cast(lhs));\n+408 }\n+409\n+420 template\n+422 inline typename EnableIfInterOperable::type\n+_\b4_\b2_\b3 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+424 const _\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+425 {\n+426 return !(lhs == rhs);\n+427 }\n+428\n+433 template\n+_\b4_\b3_\b4 class _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+435 {\n+436\n+437 public:\n+438 /* type aliases required by C++ for iterators */\n+_\b4_\b3_\b9 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by = std::random_access_iterator_tag;\n+_\b4_\b4_\b0 using _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be = typename std::remove_const::type;\n+_\b4_\b4_\b1 using _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be = D;\n+_\b4_\b4_\b2 using _\bp_\bo_\bi_\bn_\bt_\be_\br = V*;\n+_\b4_\b4_\b3 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = R;\n+444\n+_\b4_\b7_\b8 typedef T _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be;\n+479\n+_\b4_\b8_\b3 typedef V _\bV_\ba_\bl_\bu_\be;\n+484\n+_\b4_\b8_\b8 typedef V* _\bP_\bo_\bi_\bn_\bt_\be_\br;\n+489\n+_\b4_\b9_\b3 typedef D _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be;\n+494\n+_\b4_\b9_\b8 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+499\n+_\b5_\b0_\b1 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const\n+502 {\n+503 return static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const*>(this)->dereference();\n+504 }\n+505\n+_\b5_\b0_\b6 _\bP_\bo_\bi_\bn_\bt_\be_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const\n+507 {\n+508 return &(static_cast(this)->dereference());\n+509 }\n+510\n+_\b5_\b1_\b6 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n) const\n+517 {\n+518 return static_cast(this)->elementAt(n);\n+519 }\n+520\n+_\b5_\b2_\b2 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+523 {\n+524 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->increment();\n+525 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+526 }\n+527\n+_\b5_\b2_\b9 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+(int)\n+530 {\n+531 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+532 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+533 return tmp;\n+534 }\n+535\n+_\b5_\b3_\b6 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n)\n+537 {\n+538 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->advance(n);\n+539 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+540 }\n+541\n+_\b5_\b4_\b2 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n) const\n+543 {\n+544 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+545 tmp.advance(n);\n+546 return tmp;\n+547 }\n+548\n+549\n+_\b5_\b5_\b1 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-()\n+552 {\n+553 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->decrement();\n+554 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+555 }\n+556\n+_\b5_\b5_\b8 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-(int)\n+559 {\n+560 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+561 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-();\n+562 return tmp;\n+563 }\n+564\n+_\b5_\b6_\b5 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n)\n+566 {\n+567 static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this)->advance(-n);\n+568 return *static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be *>(this);\n+569 }\n+570\n+_\b5_\b7_\b1 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n) const\n+572 {\n+573 _\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be tmp(static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be const&>(*this));\n+574 tmp.advance(-n);\n+575 return tmp;\n+576 }\n+577\n+578\n+579 };\n+580\n+591 template\n+593 inline typename EnableIfInterOperable::type\n+_\b5_\b9_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+595 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+596 {\n+597 if(std::is_convertible::value)\n+598 return static_cast(lhs).equals(static_cast(rhs));\n+599 else\n+600 return static_cast(rhs).equals(static_cast(lhs));\n+601 }\n+602\n+613 template\n+615 inline typename EnableIfInterOperable::type\n+_\b6_\b1_\b6 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+617 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+618 {\n+619 if(std::is_convertible::value)\n+620 return !static_cast(lhs).equals(static_cast(rhs));\n+621 else\n+622 return !static_cast(rhs).equals(static_cast(lhs));\n+623 }\n+624\n+635 template\n+_\b6_\b3_\b7 inline typename _\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be_\b<_\bT_\b1_\b,_\bT_\b2_\b,_\bb_\bo_\bo_\bl_\b>_\b:_\b:_\bt_\by_\bp_\be\n+638 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+639 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+640 {\n+641 if(std::is_convertible::value)\n+642 return static_cast(lhs).distanceTo(static_cast\n+(rhs))>0;\n+643 else\n+644 return static_cast(rhs).distanceTo(static_cast\n+(lhs))<0;\n+645 }\n+646\n+647\n+658 template\n+_\b6_\b6_\b0 inline typename _\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be_\b<_\bT_\b1_\b,_\bT_\b2_\b,_\bb_\bo_\bo_\bl_\b>_\b:_\b:_\bt_\by_\bp_\be\n+661 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+662 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+663 {\n+664 if(std::is_convertible::value)\n+665 return static_cast(lhs).distanceTo(static_cast\n+(rhs))>=0;\n+666 else\n+667 return static_cast(rhs).distanceTo(static_cast\n+(lhs))<=0;\n+668 }\n+669\n+670\n+681 template\n+683 inline typename EnableIfInterOperable::type\n+_\b6_\b8_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+685 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+686 {\n+687 if(std::is_convertible::value)\n+688 return static_cast(lhs).distanceTo(static_cast\n+(rhs))<0;\n+689 else\n+690 return static_cast(rhs).distanceTo(static_cast\n+(lhs))>0;\n+691 }\n+692\n+703 template\n+705 inline typename EnableIfInterOperable::type\n+_\b7_\b0_\b6 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b=(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+707 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+708 {\n+709 if(std::is_convertible::value)\n+710 return static_cast(lhs).distanceTo(static_cast\n+(rhs))<=0;\n+711 else\n+712 return static_cast(rhs).distanceTo(static_cast\n+(lhs))>=0;\n+713 }\n+714\n+725 template\n+727 inline typename EnableIfInterOperable::type\n+_\b7_\b2_\b8 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-(const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bD_\b>& lhs,\n+729 const _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bD_\b>& rhs)\n+730 {\n+731 if(std::is_convertible::value)\n+732 return -static_cast(lhs).distanceTo(static_cast\n+(rhs));\n+733 else\n+734 return static_cast(rhs).distanceTo(static_cast(lhs));\n+735 }\n+736\n+737\n+748 template\n+_\b7_\b4_\b9 class _\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt\n+750 {\n+751 public:\n+_\b7_\b5_\b2 constexpr _\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt(ProxyType&& p)\n+753 noexcept(std::is_nothrow_constructible_v)\n+754 : p_(_\bs_\bt_\bd::move(p))\n+755 {}\n+756\n+_\b7_\b5_\b7 constexpr _\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt(const ProxyType& p)\n+758 noexcept(std::is_nothrow_constructible_v)\n+759 : p_(p)\n+760 {}\n+761\n+_\b7_\b6_\b2 constexpr const ProxyType* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const noexcept\n+763 {\n+764 return &p_;\n+765 }\n+766\n+_\b7_\b6_\b7 constexpr ProxyType* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() noexcept\n+768 {\n+769 return &p_;\n+770 }\n+771\n+772 private:\n+773 ProxyType p_;\n+774 };\n+775\n+776\n+_\b7_\b8_\b5 struct _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\bA_\bc_\bc_\be_\bs_\bs\n+786 {\n+787\n+789 template\n+790 static constexpr auto baseIterator(It&& it) noexcept\n+791 -> decltype(it.baseIterator())\n+792 {\n+793 return it.baseIterator();\n+794 }\n+795\n+797 template\n+798 static constexpr auto derived(It&& it) noexcept\n+799 -> decltype(it.derived())\n+800 {\n+801 return it.derived();\n+802 }\n+803\n+804 };\n+805\n+806\n+807\n+808 namespace Impl::Concepts {\n+809\n+810 using namespace _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt;\n+811\n+812 template\n+813 struct BaseIterDereferenceOp\n+814 {\n+815 template\n+816 auto require(const It& it) -> decltype(\n+817 *(IteratorFacadeAccess::baseIterator(it)),\n+818 _\br_\be_\bq_\bu_\bi_\br_\be_\bC_\bo_\bn_\bv_\be_\br_\bt_\bi_\bb_\bl_\be\n+()\n+819 );\n+820 };\n+821\n+822 struct IterEqualsOp\n+823 {\n+824 template\n+825 auto require(const It1& it1, const It2& it2) -> decltype(\n+826 requireConvertible(it1 == it2)\n+827 );\n+828 };\n+829\n+830 struct BaseIterEqualsOp\n+831 {\n+832 template\n+833 auto require(const It1& it1, const It2& it2) -> decltype(\n+834 Dune::Concept::requireConvertible(IteratorFacadeAccess::baseIterator\n+(it1) == IteratorFacadeAccess::baseIterator(it2))\n+835 );\n+836 };\n+837\n+838 struct BaseIterIncrementOp\n+839 {\n+840 template\n+841 auto require(It it) -> decltype(\n+842 ++(IteratorFacadeAccess::baseIterator(it))\n+843 );\n+844 };\n+845\n+846 struct BaseIterDecrementOp\n+847 {\n+848 template\n+849 auto require(It it) -> decltype(\n+850 --(IteratorFacadeAccess::baseIterator(it))\n+851 );\n+852 };\n+853\n+854 template\n+855 struct IterAdvanceOp\n+856 {\n+857 template\n+858 auto require(It it) -> decltype(\n+859 it += std::declval()\n+860 );\n+861 };\n+862\n+863 template\n+864 struct BaseIterAdvanceOp\n+865 {\n+866 template\n+867 auto require(It it) -> decltype(\n+868 IteratorFacadeAccess::baseIterator(it) += std::declval()\n+869 );\n+870 };\n+871\n+872 template\n+873 struct IterDistanceOp\n+874 {\n+875 template\n+876 auto require(const It1& it1, const It2& it2) -> decltype(\n+877 Dune::Concept::requireConvertible(it1 - it2)\n+878 );\n+879 };\n+880\n+881 template\n+882 struct BaseIterDistanceOp\n+883 {\n+884 template\n+885 auto require(const It1& it1, const It2& it2) -> decltype(\n+886 Dune::Concept::requireConvertible(IteratorFacadeAccess::baseIterator\n+(it1) - IteratorFacadeAccess::baseIterator(it2))\n+887 );\n+888 };\n+889\n+890 } // namespace Impl::Concept\n+891\n+892\n+893\n+1051 template\n+_\b1_\b0_\b5_\b2 class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+1053 {\n+1054 static constexpr bool isBidirectional = std::is_convertible_v;\n+1055 static constexpr bool isRandomAccess = std::is_convertible_v;\n+1056\n+1057 // We make IteratorFacadeAccess a friend to allow forwarding of the\n+derived()\n+1058 // methods to the free operators instead of havin to do raw casts there.\n+1059 // This allows to encapsulate all casts within IteratorFacade itself.\n+1060 friend _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\bA_\bc_\bc_\be_\bs_\bs;\n+1061\n+1062 protected:\n+1063\n+_\b1_\b0_\b6_\b5 using _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br = It;\n+1066\n+_\b1_\b0_\b6_\b8 constexpr const _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bd_\be_\br_\bi_\bv_\be_\bd() const\n+1069 {\n+1070 return static_cast(*this);\n+1071 }\n+1072\n+_\b1_\b0_\b7_\b4 constexpr _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bd_\be_\br_\bi_\bv_\be_\bd()\n+1075 {\n+1076 return static_cast<_\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&>(*this);\n+1077 }\n+1078\n+1079 public:\n+1080\n+1081 // Standard types of of C++ iterators\n+_\b1_\b0_\b8_\b2 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by = C;\n+_\b1_\b0_\b8_\b3 using _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be = typename std::remove_const::type;\n+_\b1_\b0_\b8_\b4 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = R;\n+_\b1_\b0_\b8_\b5 using _\bp_\bo_\bi_\bn_\bt_\be_\br = P;\n+_\b1_\b0_\b8_\b6 using _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be = D;\n+1087\n+1088 // Corresponding Dune typedefs\n+_\b1_\b0_\b8_\b9 using _\bV_\ba_\bl_\bu_\be = _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b0_\b9_\b0 using _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be = _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+_\b1_\b0_\b9_\b1 using _\bP_\bo_\bi_\bn_\bt_\be_\br = _\bp_\bo_\bi_\bn_\bt_\be_\br;\n+_\b1_\b0_\b9_\b2 using _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be = _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be;\n+1093\n+1094 // Only defined to do static assertions.\n+_\b1_\b0_\b9_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be()\n+1096 {\n+1097 static_assert(std::is_signed_v,\n+1098 \"Type used as difference_type must be signed\");\n+1099 const _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& constDerived = _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1100 static_assert(std::is_convertible_v,\n+1101 \"Derived class does not implement `*it` or `*(it.baseIterator())` for\n+const `it` required by IteratorFacade<..., std::forward_iterator_tag, ...>.\");\n+1102 static_assert(std::is_convertible_v,\n+1103 \"Derived class does not implement `++it`, `++(it.baseIterator())`, or\n+`it+=1` for mutable `it` required by IteratorFacade<..., std::\n+forward_iterator_tag, ...>.\");\n+1104 static_assert(std::is_convertible_v,\n+1105 \"Derived class does not implement `it1==it2` or `it1.baseIterator\n+()==it2.baseIterator()` for const `it1` and `it2` required by\n+IteratorFacade<..., std::forward_iterator_tag, ...>.\");\n+1106 if constexpr (isBidirectional)\n+1107 static_assert(std::is_convertible_v,\n+1108 \"Derived class does not implement `--it`, `--(it.baseIterator())`, or `it-\n+=1` for mutable `it` required by IteratorFacade<..., std::\n+bidirectional_iterator_tag, ...>.\");\n+1109 if constexpr (isRandomAccess)\n+1110 {\n+1111 static_assert(std::is_convertible_v()), _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&>,\n+1112 \"Derived class does not implement `it+=` or `it.baseIterator()+=` for\n+mutable `it` required by IteratorFacade<..., std::random_access_iterator_tag,\n+...>.\");\n+1113 static_assert(std::is_convertible_v,\n+1114 \"Derived class does not implement `it1-it2` or `it1.baseIterator()-\n+it2.baseIterator()` for const `it1` and `it2` required by IteratorFacade<...,\n+std::random_access_iterator_tag, ...>.\");\n+1115 }\n+1116 }\n+1117\n+_\b1_\b1_\b1_\b9 constexpr decltype(auto) operator*() const\n+1120 {\n+1121 if constexpr (Dune::models, _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br>())\n+1122 return *(IteratorFacadeAccess::baseIterator(_\bd_\be_\br_\bi_\bv_\be_\bd()));\n+1123 else\n+1124 static_assert(_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\bI_\bt_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be,\n+1125 \"Derived class does not implement `*it` or `*(it.baseIterator())` for\n+const `it` required by IteratorFacade<..., std::forward_iterator_tag, ...>.\");\n+1126 }\n+1127\n+_\b1_\b1_\b2_\b9 constexpr _\bp_\bo_\bi_\bn_\bt_\be_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const\n+1130 {\n+1131 if constexpr (std::is_pointer_v)\n+1132 return std::addressof(*_\bd_\be_\br_\bi_\bv_\be_\bd());\n+1133 else\n+1134 return _\bp_\bo_\bi_\bn_\bt_\be_\br(*_\bd_\be_\br_\bi_\bv_\be_\bd());\n+1135 }\n+1136\n+_\b1_\b1_\b3_\b8 constexpr decltype(auto) operator++()\n+1139 {\n+1140 if constexpr (Dune::models())\n+1141 {\n+1142 ++(IteratorFacadeAccess::baseIterator(_\bd_\be_\br_\bi_\bv_\be_\bd()));\n+1143 return _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1144 }\n+1145 else if constexpr (Dune::models, _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br>())\n+1146 {\n+1147 _\bd_\be_\br_\bi_\bv_\be_\bd() += 1;\n+1148 return _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1149 }\n+1150 else\n+1151 static_assert(_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\bI_\bt_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be,\n+1152 \"Derived class does not implement `++it`, `++(it.baseIterator())`, or\n+`it+=1` for mutable `it` required by IteratorFacade<..., std::\n+forward_iterator_tag, ...>.\");\n+1153 }\n+1154\n+_\b1_\b1_\b5_\b6 constexpr _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+(int)\n+1157 {\n+1158 _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br tmp(_\bd_\be_\br_\bi_\bv_\be_\bd());\n+1159 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+1160 return tmp;\n+1161 }\n+1162\n+1168 template\n+=0>\n+_\b1_\b1_\b6_\b9 constexpr decltype(auto) operator--()\n+1170 {\n+1171 if constexpr (Dune::models())\n+1172 {\n+1173 --(IteratorFacadeAccess::baseIterator(_\bd_\be_\br_\bi_\bv_\be_\bd()));\n+1174 return _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1175 }\n+1176 else if constexpr (Dune::models, _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br>())\n+1177 {\n+1178 _\bd_\be_\br_\bi_\bv_\be_\bd() -= 1;\n+1179 return _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1180 }\n+1181 else\n+1182 static_assert(_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\bI_\bt_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be,\n+1183 \"Derived class does not implement `--it`, `--(it.baseIterator())`, or `it-\n+=1` for mutable `it` required by IteratorFacade<..., std::\n+bidirectional_iterator_tag, ...>.\");\n+1184 }\n+1185\n+1191 template\n+=0>\n+_\b1_\b1_\b9_\b2 constexpr _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-(int)\n+1193 {\n+1194 _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br tmp(_\bd_\be_\br_\bi_\bv_\be_\bd());\n+1195 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-();\n+1196 return tmp;\n+1197 }\n+1198\n+1206 template\n+=0>\n+_\b1_\b2_\b0_\b7 constexpr _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n) const\n+1208 {\n+1209 return *(_\bd_\be_\br_\bi_\bv_\be_\bd()+n);\n+1210 }\n+1211\n+1217 template\n+=0>\n+_\b1_\b2_\b1_\b8 constexpr decltype(auto) operator+=(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n)\n+1219 {\n+1220 if constexpr (Dune::models, _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br>())\n+1221 {\n+1222 IteratorFacadeAccess::baseIterator(_\bd_\be_\br_\bi_\bv_\be_\bd()) += n;\n+1223 return _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1224 }\n+1225 else\n+1226 static_assert(_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\bI_\bt_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be,\n+1227 \"Derived class does not implement `it+=` or `it.baseIterator()+=` for\n+mutable `it` required by IteratorFacade<..., std::random_access_iterator_tag,\n+...>.\");\n+1228 }\n+1229\n+1235 template\n+=0>\n+_\b1_\b2_\b3_\b6 constexpr _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n) const\n+1237 {\n+1238 _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br tmp(_\bd_\be_\br_\bi_\bv_\be_\bd());\n+1239 tmp += n;\n+1240 return tmp;\n+1241 }\n+1242\n+1248 template\n+=0>\n+_\b1_\b2_\b4_\b9 constexpr _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n)\n+1250 {\n+1251 _\bd_\be_\br_\bi_\bv_\be_\bd() += (-n);\n+1252 return _\bd_\be_\br_\bi_\bv_\be_\bd();\n+1253 }\n+1254\n+1260 template\n+=0>\n+_\b1_\b2_\b6_\b1 constexpr _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n) const\n+1262 {\n+1263 _\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br tmp(_\bd_\be_\br_\bi_\bv_\be_\bd());\n+1264 tmp -= n;\n+1265 return tmp;\n+1266 }\n+1267\n+1268 };\n+1269\n+1270\n+1271\n+1282 template\n+_\b1_\b2_\b8_\b3 constexpr auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b1_\b>& it1,\n+const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b2_\b>& it2)\n+1284 {\n+1285 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1286 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1287 if constexpr (Dune::models())\n+1288 return IteratorFacadeAccess::baseIterator(derivedIt1) ==\n+IteratorFacadeAccess::baseIterator(derivedIt2);\n+1289 else\n+1290 static_assert(_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\bT_\b1_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be,\n+1291 \"Derived class does not implement `it1==it2` or `it1.baseIterator\n+()==it2.baseIterator()` for const `it1` and `it2` required by\n+IteratorFacade<..., std::forward_iterator_tag, ...>.\");\n+1292 }\n+1293\n+1301 template() ,\n+int> =0>\n+_\b1_\b3_\b0_\b3 constexpr bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b1_\b>& it1,\n+const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b2_\b>& it2)\n+1304 {\n+1305 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1306 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1307 return not(derivedIt1 == derivedIt2);\n+1308 }\n+1309\n+1320 template\n+_\b1_\b3_\b2_\b1 constexpr auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b>& it1, const\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b>& it2)\n+1322 {\n+1323 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1324 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1325 if constexpr (Dune::models,T1, T2>\n+())\n+1326 return D(IteratorFacadeAccess::baseIterator(derivedIt1) -\n+IteratorFacadeAccess::baseIterator(derivedIt2));\n+1327 else\n+1328 static_assert(_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\bT_\b1_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be,\n+1329 \"Derived class does not implement `it1-it2` or `it1.baseIterator()-\n+it2.baseIterator()` for const `it1` and `it2` required by IteratorFacade<...,\n+std::random_access_iterator_tag, ...>.\");\n+1330 }\n+1331\n+1339 template,T1, T2>\n+() , int> =0>\n+_\b1_\b3_\b4_\b1 constexpr bool operator<(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b1_\b>& it1,\n+const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b2_\b>& it2)\n+1342 {\n+1343 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1344 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1345 return (derivedIt1 - derivedIt2) < D1(0);\n+1346 }\n+1347\n+1355 template,T1, T2>\n+() , int> =0>\n+_\b1_\b3_\b5_\b7 constexpr bool operator<=(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b1_\b>& it1,\n+const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b2_\b>& it2)\n+1358 {\n+1359 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1360 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1361 return (derivedIt1 - derivedIt2) <= D1(0);\n+1362 }\n+1363\n+1371 template,T1, T2>\n+() , int> =0>\n+_\b1_\b3_\b7_\b3 constexpr bool operator>(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b1_\b>& it1,\n+const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b2_\b>& it2)\n+1374 {\n+1375 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1376 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1377 return (derivedIt1 - derivedIt2) > D1(0);\n+1378 }\n+1379\n+1387 template,T1, T2>\n+() , int> =0>\n+_\b1_\b3_\b8_\b9 constexpr bool operator>=(const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b1_\b,_\bC_\b,_\bV_\b1_\b,_\bR_\b1_\b,_\bP_\b1_\b,_\bD_\b1_\b>& it1,\n+const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\bT_\b2_\b,_\bC_\b,_\bV_\b2_\b,_\bR_\b2_\b,_\bP_\b2_\b,_\bD_\b2_\b>& it2)\n+1390 {\n+1391 const T1& derivedIt1 = IteratorFacadeAccess::derived(it1);\n+1392 const T2& derivedIt2 = IteratorFacadeAccess::derived(it2);\n+1393 return (derivedIt1 - derivedIt2) >= D1(0);\n+1394 }\n+1395\n+1396\n+1397\n+1399}\n+1400#endif\n _\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n Traits for type conversions and type information.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n-Stream & operator>>(Stream &stream, std::tuple< Ts... > &t)\n-Read a std::tuple.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn streamoperators.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\ba_\bx\n-constexpr auto max\n-Function object that returns the greater of the given values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn\n-constexpr auto min\n-Function object that returns the smaller of the given values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:506\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:278\n+_\bc_\bo_\bn_\bc_\be_\bp_\bt_\b._\bh_\bh\n+Infrastructure for concepts.\n _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-\n bigunsignedint< k > operator-(const bigunsignedint< k > &x, std::uintmax_t y)\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:542\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+\n-bigunsignedint< k > operator+(const bigunsignedint< k > &x, std::uintmax_t y)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:535\n-_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n-#define DUNE_THROW(E, m)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<\n+EnableIfInterOperable< T1, T2, bool >::type operator<(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:638\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>\n+EnableIfInterOperable< T1, T2, bool >::type operator>(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:684\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator<=(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:661\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator==(const\n+ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2,\n+V2, R2, D > &rhs)\n+Checks for equality.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator>=(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:706\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator!=(const\n+ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2,\n+V2, R2, D > &rhs)\n+Checks for inequality.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:260\n _\bs_\bt_\bd\n STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bx_\b__\bv_\ba_\bl_\bu_\be\n-T max_value(const AlignedNumber< T, align > &val)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn debugalign.hh:494\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bi_\bn_\b__\bv_\ba_\bl_\bu_\be\n-T min_value(const AlignedNumber< T, align > &val)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn debugalign.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bg_\be_\bE_\br_\br_\bo_\br\n-Default exception class for range errors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt\n+Namespace for concepts.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn concept.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt_\b:_\b:_\br_\be_\bq_\bu_\bi_\br_\be_\bC_\bo_\bn_\bv_\be_\br_\bt_\bi_\bb_\bl_\be\n+constexpr bool requireConvertible()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn concept.hh:247\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+Base class for stl conformant forward iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+std::forward_iterator_tag iterator_category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n+V * pointer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+DerivedType & operator++()\n+Preincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:210\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be\n+D DifferenceType\n+The type of the difference between two positions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:191\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R Reference\n+The type of the reference to the values accessed.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:196\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+Pointer operator->() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:204\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be\n+T DerivedType\n+The type of derived iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:176\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bV_\ba_\bl_\bu_\be\n+V Value\n+The type of value accessed through the iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+typename std::remove_const< V >::type value_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:147\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+DerivedType operator++(int)\n+Postincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:217\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br\n+V * Pointer\n+The pointer to the Value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:186\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n+D difference_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:148\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+Reference operator*() const\n+Dereferencing operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:199\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+Facade class for stl conformant bidirectional iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:275\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n+V * pointer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+typename std::remove_const< V >::type value_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:280\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+Reference operator*() const\n+Dereferencing operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:333\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n+D difference_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:281\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be\n+T DerivedType\n+The type of derived iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:310\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+DerivedType & operator--()\n+Preincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:360\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+Pointer operator->() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:338\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+DerivedType & operator++()\n+Preincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:344\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br\n+V * Pointer\n+The pointer to the Value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:320\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R Reference\n+The type of the reference to the values accessed.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:330\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+DerivedType operator++(int)\n+Postincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:351\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+std::bidirectional_iterator_tag iterator_category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:279\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be\n+D DifferenceType\n+The type of the difference between two positions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:325\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+DerivedType operator--(int)\n+Postincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:367\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:283\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bV_\ba_\bl_\bu_\be\n+V Value\n+The type of value accessed through the iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:315\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+Base class for stl conformant forward iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:435\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+typename std::remove_const< V >::type value_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:440\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n+D difference_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:441\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+DerivedType operator--(int)\n+Postdecrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:558\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n+V * pointer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:442\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+std::random_access_iterator_tag iterator_category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:439\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+Reference operator*() const\n+Dereferencing operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:501\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+DerivedType & operator++()\n+Preincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:522\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:443\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+Pointer operator->() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be\n+D DifferenceType\n+The type of the difference between two positions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+DerivedType & operator--()\n+Predecrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:551\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+DerivedType & operator-=(DifferenceType n)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+\n+DerivedType operator+(DifferenceType n) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:542\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+Reference operator[](DifferenceType n) const\n+Get the element n positions from the current one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:516\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\be_\br_\bi_\bv_\be_\bd_\bT_\by_\bp_\be\n+T DerivedType\n+The type of derived iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:478\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br\n+V * Pointer\n+The pointer to the Value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-\n+DerivedType operator-(DifferenceType n) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+DerivedType operator++(int)\n+Postincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:529\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bV_\ba_\bl_\bu_\be\n+V Value\n+The type of value accessed through the iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n+DerivedType & operator+=(DifferenceType n)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:536\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R Reference\n+The type of the reference to the values accessed.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:498\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt\n+Helper to mimic a pointer for proxy objects.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:750\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt\n+constexpr ProxyArrowResult(const ProxyType &p) noexcept(std::\n+is_nothrow_constructible_v< ProxyType, const ProxyType & >)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:757\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+constexpr ProxyType * operator->() noexcept\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:767\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+constexpr const ProxyType * operator->() const noexcept\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:762\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bP_\br_\bo_\bx_\by_\bA_\br_\br_\bo_\bw_\bR_\be_\bs_\bu_\bl_\bt\n+constexpr ProxyArrowResult(ProxyType &&p) noexcept(std::\n+is_nothrow_constructible_v< ProxyType, ProxyType && >)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:752\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\bA_\bc_\bc_\be_\bs_\bs\n+This class encapsulates access of IteratorFacade.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:786\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+CRTP-Mixing class for stl conformant iterators of given iterator category.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1053\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+constexpr DerivedIterator operator--(int)\n+Postdecrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1192\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n+D difference_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1086\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+C iterator_category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1082\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+IteratorFacade()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1095\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+constexpr pointer operator->() const\n+Arrow access to members of referenced value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br\n+pointer Pointer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1091\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+reference Reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1090\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+\n+constexpr DerivedIterator operator+(difference_type n) const\n+Create iterator incremented by given value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1236\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+constexpr DerivedIterator operator++(int)\n+Postincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1156\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bd_\be_\br_\bi_\bv_\be_\bd\n+constexpr DerivedIterator & derived()\n+Cast of *this to DerivedIterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1074\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\be_\br_\bi_\bv_\be_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+It DerivedIterator\n+The derived iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1065\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+constexpr DerivedIterator & operator-=(difference_type n)\n+Decrement iterator by given value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1249\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+constexpr decltype(auto) operator--()\n+Predecrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1169\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1084\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+constexpr reference operator[](difference_type n) const\n+Dereference element with given offset form this iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1207\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bd_\be_\br_\bi_\bv_\be_\bd\n+constexpr const DerivedIterator & derived() const\n+Cast of *this to const DerivedIterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1068\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n+P pointer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1085\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+typename std::remove_const< V >::type value_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1083\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bV_\ba_\bl_\bu_\be\n+value_type Value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1089\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+constexpr decltype(auto) operator++()\n+Preincrement operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1138\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be\n+difference_type DifferenceType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1092\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-\n+constexpr DerivedIterator operator-(difference_type n) const\n+Create iterator decremented by given value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be\n+Enable typedef if two types are interoperable.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be\n+template which always yields a false value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:124\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00014.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00014.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: parameterizedobject.hh File Reference\n+dune-common: typetraits.hh File Reference\n \n \n \n \n \n \n \n@@ -71,37 +71,138 @@\n \n \n \n
\n \n-
parameterizedobject.hh File Reference
\n+Namespaces |\n+Typedefs |\n+Functions
\n+
typetraits.hh File Reference
\n \n
\n-
#include <functional>
\n-#include <map>
\n-#include <memory>
\n-#include <dune/common/exceptions.hh>
\n-#include <dune/common/typeutilities.hh>
\n+\n+

Traits for type conversions and type information. \n+More...

\n+
#include <complex>
\n+#include <type_traits>
\n+#include <utility>
\n+#include <vector>
\n
\n

Go to the source code of this file.

\n \n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

\n Classes

class  Dune::ParameterizedObjectFactory< TypeT(Args...), KeyT >
struct  Dune::Empty
 Just an empty class. More...
 
struct  Dune::IsInteroperable< T1, T2 >
 Checks whether two types are interoperable. More...
 
struct  Dune::EnableIfInterOperable< T1, T2, Type >
 Enable typedef if two types are interoperable. More...
 
struct  Dune::AlwaysFalse< T >
 template which always yields a false value More...
 
struct  Dune::AlwaysTrue< T >
 template which always yields a true value More...
 
struct  Dune::IsCallable< F(Args...), R >
 Check if a type is callable with ()-operator and given arguments. More...
 
struct  Dune::IsNumber< T >
 Whether this type acts as a scalar in the context of (hierarchically blocked) containers. More...
 
struct  Dune::HasNaN< T >
 Whether this type has a value of NaN. More...
 
struct  Dune::IsIndexable< T, I >
 Type trait to determine whether an instance of T has an operator[](I), i.e. whether it can be indexed with an index of type I. More...
 
struct  Dune::IsIterable< T, typename >
 typetrait to check that a class has begin() and end() members More...
 
struct  Dune::IsTuple< T >
 Check if T is a std::tuple<...> More...
 
struct  Dune::IsTupleOrDerived< T >
 Check if T derived from a std::tuple<...> More...
 
struct  Dune::IsIntegralConstant< T >
 Check if T is an std::integral_constant<I, i> More...
 
struct  Dune::IsCompileTimeConstant< T >
 Check if T is an integral constant or any type derived from std::integral_constant. More...
 
struct  Dune::SizeOf< T >
 Compute size of variadic type list. More...
 
struct  Dune::AutonomousValueType< T >
 Type free of internal references that T can be converted to. More...
 
struct  Dune::AutonomousValueType< T & >
 Specialization to remove lvalue references. More...
 
struct  Dune::AutonomousValueType< T && >
 Specialization to remove rvalue references. More...
 
struct  Dune::AutonomousValueType< const T >
 Specialization to remove const qualifiers. More...
 
struct  Dune::AutonomousValueType< volatile T >
 Specialization to remove volatile qualifiers. More...
 
struct  Dune::AutonomousValueType< std::vector< bool >::reference >
 Specialization for the proxies of vector<bool> More...
 
struct  Dune::AutonomousValueType< volatile const T >
 Specialization to remove both const and volatile qualifiers. More...
 
\n \n \n \n \n+

\n Namespaces

namespace  Dune
 Dune namespace.
 
\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

\n+Typedefs

template<class... Types>
using Dune::void_t = typename Impl::voider< Types... >::type
 Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.
 
template<class Type >
using Dune::field_t = typename FieldTraits< Type >::field_type
 Convenient access to FieldTraits<Type>::field_type.
 
template<class Type >
using Dune::real_t = typename FieldTraits< Type >::real_type
 Convenient access to FieldTraits<Type>::real_type.
 
template<class T >
using Dune::AutonomousValue = typename AutonomousValueType< T >::type
 Type free of internal references that T can be converted to.
 
\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

\n+Functions

template<class T , T... t, std::size_t index>
constexpr auto Dune::integerSequenceEntry (std::integer_sequence< T, t... >, std::integral_constant< std::size_t, index > i)
 Get entry of std::integer_sequence.
 
template<class T >
constexpr AutonomousValue< T > Dune::autoCopy (T &&v)
 Autonomous copy of an expression's value for use in auto type deduction.
 
\n-
\n+

Detailed Description

\n+

Traits for type conversions and type information.

\n+
Author
Markus Blatt, Christian Engwer
\n+
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,23 +1,125 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-parameterizedobject.hh File Reference\n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+typetraits.hh File Reference\n+Traits for type conversions and type information. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bE_\bm_\bp_\bt_\by\n+\u00a0 Just an empty class. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\br_\bo_\bp_\be_\br_\ba_\bb_\bl_\be_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+\u00a0 Checks whether two types are interoperable. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bT_\by_\bp_\be_\b _\b>\n+\u00a0 Enable typedef if two types are interoperable. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 template which always yields a false value _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bT_\br_\bu_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 template which always yields a true value _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bC_\ba_\bl_\bl_\ba_\bb_\bl_\be_\b<_\b _\bF_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bR_\b _\b>\n+\u00a0 Check if a type is callable with ()-operator and given arguments.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bN_\bu_\bm_\bb_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 Whether this type acts as a scalar in the context of (hierarchically\n+ blocked) containers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\ba_\bs_\bN_\ba_\bN_\b<_\b _\bT_\b _\b>\n+\u00a0 Whether this type has a value of NaN. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bd_\be_\bx_\ba_\bb_\bl_\be_\b<_\b _\bT_\b,_\b _\bI_\b _\b>\n+\u00a0 Type trait to determine whether an instance of T has an operator[](I),\n+ i.e. whether it can be indexed with an index of type I. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bt_\be_\br_\ba_\bb_\bl_\be_\b<_\b _\bT_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\b>\n+\u00a0 typetrait to check that a class has begin() and end() members _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bT_\bu_\bp_\bl_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 Check if T is a std::tuple<...> _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bT_\bu_\bp_\bl_\be_\bO_\br_\bD_\be_\br_\bi_\bv_\be_\bd_\b<_\b _\bT_\b _\b>\n+\u00a0 Check if T derived from a std::tuple<...> _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt_\b<_\b _\bT_\b _\b>\n+\u00a0 Check if T is an std::integral_constant _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bC_\bo_\bm_\bp_\bi_\bl_\be_\bT_\bi_\bm_\be_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt_\b<_\b _\bT_\b _\b>\n+\u00a0 Check if T is an integral constant or any type derived from std::\n+ integral_constant. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bz_\be_\bO_\bf_\b<_\b _\bT_\b _\b>\n+\u00a0 Compute size of variadic type list. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 Type free of internal references that T can be converted to. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b&_\b _\b>\n+\u00a0 Specialization to remove lvalue references. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b&_\b&_\b _\b>\n+\u00a0 Specialization to remove rvalue references. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b>\n+\u00a0 Specialization to remove const qualifiers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bv_\bo_\bl_\ba_\bt_\bi_\bl_\be_\b _\bT_\b _\b>\n+\u00a0 Specialization to remove volatile qualifiers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\b _\bb_\bo_\bo_\bl_\b _\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b _\b>\n+\u00a0 Specialization for the proxies of vector _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bv_\bo_\bl_\ba_\bt_\bi_\bl_\be_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b>\n+\u00a0 Specialization to remove both const and volatile qualifiers. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt = typename Impl::voider< Types... >::type\n+\u00a0 Is void for all valid input types. The workhorse for C++11 SFINAE-\n+ techniques.\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs< Type >::field_type\n+\u00a0 Convenient access to _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\by_\bp_\be_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be.\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bl_\b__\bt = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs< Type >::real_type\n+\u00a0 Convenient access to _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be.\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be = typename _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be< T >::type\n+\u00a0 Type free of internal references that T can be converted to.\n+\u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by (std::\n+ integer_sequence< T, t... >, std::\n+ integral_constant< std::size_t, index > i)\n+\u00a0 Get entry of std::integer_sequence.\n+\u00a0\n+template\n+constexpr _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be< T >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bu_\bt_\bo_\bC_\bo_\bp_\by (T &&v)\n+\u00a0 Autonomous copy of an expression's value for\n+ use in auto type deduction.\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Traits for type conversions and type information.\n+ Author\n+ Markus Blatt, Christian Engwer\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00014_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00014_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: parameterizedobject.hh Source File\n+dune-common: typetraits.hh Source File\n \n \n \n \n \n \n \n@@ -74,178 +74,439 @@\n \n
\n \n
\n \n
\n-
parameterizedobject.hh
\n+
typetraits.hh
\n
\n
\n-Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
\n-
2// vi: set et ts=4 sw=4 sts=4:
\n+Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
\n+
2// vi: set et ts=4 sw=2 sts=2:
\n
3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
\n
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n-
5#ifndef DUNE_COMMON_PARAMETERIZEDOBJECT_HH
\n-
6#define DUNE_COMMON_PARAMETERIZEDOBJECT_HH
\n+
5#ifndef DUNE_TYPETRAITS_HH
\n+
6#define DUNE_TYPETRAITS_HH
\n
7
\n-
8#include <functional>
\n-
9#include <map>
\n-
10#include <memory>
\n-
11
\n-\n-\n-
14
\n-
15namespace Dune {
\n-
16
\n-
34template<typename Signature,
\n-
35 typename KeyT = std::string>
\n-\n-
37
\n-
38template<typename TypeT,
\n-
39 typename KeyT,
\n-
40 typename... Args>
\n-
\n-
41class ParameterizedObjectFactory<TypeT(Args...), KeyT>
\n-
42{
\n-
43 public:
\n-
44
\n-
46 typedef KeyT Key;
\n-
47
\n-
49 using Type = TypeT;
\n-
50
\n-
51 protected:
\n-
52
\n-
53 using Creator = std::function<Type(Args...)>;
\n-
54
\n-
55 template<class F>
\n-
\n-\n-
57 -> decltype( std::declval<F>()(std::declval<Args>()...), std::true_type())
\n-
58 {
\n-
59 return {};
\n-
60 }
\n-
\n-
61
\n-
62 template<class F>
\n-
\n-
63 static constexpr std::false_type has_proper_signature(Dune::PriorityTag<0>)
\n-
64 {
\n-
65 return {};
\n-
66 }
\n-
\n-
67
\n-
68 public:
\n-
69
\n-
\n-
77 Type create(Key const& key, Args ... args) const {
\n-
78 typename Registry::const_iterator i = registry_.find(key);
\n-
79 if (i == registry_.end()) {
\n-\n-
81 "ParametrizedObjectFactory: key ``" <<
\n-
82 key << "'' not registered");
\n-
83 }
\n-
84 else return i->second(args...);
\n-
85 }
\n-
\n-
86
\n-
100 template<class Impl>
\n-
\n-
101 void define(Key const& key)
\n-
102 {
\n-
103 registry_[key] = DefaultCreator<Impl>();
\n-
104 }
\n-
\n-
105
\n-
119 template<class F,
\n-
120 typename std::enable_if<has_proper_signature<F>(PriorityTag<42>()), int>::type = 0>
\n-
\n-
121 void define(Key const& key, F&& f)
\n-
122 {
\n-
123 registry_[key] = f;
\n-
124 }
\n-
\n+
8#include <complex>
\n+
9#include <type_traits>
\n+
10#include <utility>
\n+
11#include <vector>
\n+
12
\n+
13namespace Dune
\n+
14{
\n+
15
\n+
16 namespace Impl
\n+
17 {
\n+
19
\n+
23 template <class...>
\n+
24 struct voider
\n+
25 {
\n+
26 using type = void;
\n+
27 };
\n+
28 }
\n+
29
\n+
31
\n+
39 template <class... Types>
\n+
40 using void_t = typename Impl::voider<Types...>::type;
\n+
41
\n+
55 struct Empty {};
\n+
56
\n+
63 template<class T1, class T2>
\n+
\n+\n+
65 {
\n+
70 constexpr static bool value = std::is_convertible<T1,T2>::value || std::is_convertible<T2,T1>::value;
\n+
71 };
\n+
\n+
72
\n+
78 template<class T1, class T2, class Type>
\n+
\n+\n+
80 : public std::enable_if<IsInteroperable<T1,T2>::value, Type>
\n+
81 {};
\n+
\n+
82
\n+
100
\n+
116
\n+
123 template<typename T>
\n+
124 struct AlwaysFalse : public std::false_type {};
\n
125
\n-
140 template<class Impl,
\n-
141 typename std::enable_if<
\n-
142 std::is_convertible<Impl, Type>::value
\n-
143 and not std::is_convertible<Impl, Creator>::value,
\n-
144 int>::type = 0>
\n-
\n-
145 void define(Key const& key, Impl&& t)
\n-
146 {
\n-
147 registry_[key] = [=](Args...) { return t;};
\n-
148 }
\n-
\n-
149
\n-
\n-
150 bool contains(Key const& key) const
\n-
151 {
\n-
152 return registry_.count(key);
\n-
153 }
\n-
\n-
154
\n-
155 private:
\n-
156
\n-
157 template<class T>
\n-
158 struct Tag{};
\n-
159
\n-
160 template<class Impl>
\n-
161 struct DefaultCreator
\n-
162 {
\n-
163 template<class... T>
\n-
164 Type operator()(T&&... args) const
\n-
165 {
\n-
166 return DefaultCreator::create(Tag<Type>(), PriorityTag<42>(), std::forward<T>(args)...);
\n-
167 }
\n-
168
\n-
169 template<class Target, class... T>
\n-
170 static Type create(Tag<Target>, PriorityTag<1>, T&& ... args) {
\n-
171 return Impl(std::forward<T>(args)...);
\n-
172 }
\n-
173
\n-
174 template<class Target, class... T>
\n-
175 static Type create(Tag<std::unique_ptr<Target>>, PriorityTag<2>, T&& ... args) {
\n-
176 return std::make_unique<Impl>(std::forward<T>(args)...);
\n-
177 }
\n-
178
\n-
179 template<class Target, class... T>
\n-
180 static Type create(Tag<std::shared_ptr<Target>>, PriorityTag<3>, T&& ... args) {
\n-
181 return std::make_shared<Impl>(std::forward<T>(args)...);
\n-
182 }
\n-
183
\n-
184 };
\n-
185
\n-
186 typedef std::map<Key, Creator> Registry;
\n-
187 Registry registry_;
\n-
188};
\n-
\n-
189
\n-
190
\n-
191
\n-
192} // end namespace Dune
\n-
193
\n-
194#endif // DUNE_COMMON_PARAMETERIZEDOBJECT_HH
\n-
A few common exception classes.
\n-
Utilities for type computations, constraining overloads, ...
\n-
#define DUNE_THROW(E, m)
Definition exceptions.hh:218
\n+
133 template<typename T>
\n+
134 struct AlwaysTrue : public std::true_type {};
\n+
135
\n+
161 template<typename D, typename R = void>
\n+\n+
163
\n+
168 template<typename R, typename F, typename... Args>
\n+
\n+
169 struct IsCallable<F(Args...), R>
\n+
170 : public std::bool_constant<
\n+
171 std::is_invocable_r_v<R, F, Args...>
\n+
172 && !std::is_member_pointer_v<std::decay_t<F>>
\n+
173 > {};
\n+
\n+
174
\n+
177
\n+
192 template <typename T>
\n+
\n+
193 struct IsNumber
\n+
194 : public std::integral_constant<bool, std::is_arithmetic<T>::value> {
\n+
195 };
\n+
\n+
196
\n+
197#ifndef DOXYGEN
\n+
198
\n+
199 template <typename T>
\n+
200 struct IsNumber<std::complex<T>>
\n+
201 : public std::integral_constant<bool, IsNumber<T>::value> {
\n+
202 };
\n+
203
\n+
204#endif // DOXYGEN
\n+
205
\n+
207
\n+
210 template <typename T>
\n+
\n+
211 struct HasNaN
\n+
212 : public std::integral_constant<bool, std::is_floating_point<T>::value> {
\n+
213 };
\n+
\n+
214
\n+
215#ifndef DOXYGEN
\n+
216
\n+
217 template <typename T>
\n+
218 struct HasNaN<std::complex<T>>
\n+
219 : public std::integral_constant<bool, std::is_floating_point<T>::value> {
\n+
220 };
\n+
221
\n+
222#endif // DOXYGEN
\n+
223
\n+
224#ifndef DOXYGEN
\n+
225
\n+
226 namespace Impl {
\n+
227
\n+
228 template<typename T, typename I, typename = int>
\n+
229 struct IsIndexable
\n+
230 : public std::false_type
\n+
231 {};
\n+
232
\n+
233 template<typename T, typename I>
\n+
234 struct IsIndexable<T,I,typename std::enable_if<(sizeof(std::declval<T>()[std::declval<I>()]) > 0),int>::type>
\n+
235 : public std::true_type
\n+
236 {};
\n+
237
\n+
238 }
\n+
239
\n+
240#endif // DOXYGEN
\n+
241
\n+
243
\n+
247 template<typename T, typename I = std::size_t>
\n+
\n+\n+
249 : public Impl::IsIndexable<T,I>
\n+
250 {};
\n+
\n+
251
\n+
252#ifndef DOXYGEN
\n+
253
\n+
254 namespace Impl {
\n+
255 // This function does nothing.
\n+
256 // By passing expressions to this function one can avoid
\n+
257 // "value computed is not used" warnings that may show up
\n+
258 // in a comma expression.
\n+
259 template<class...T>
\n+
260 void ignore(T&&... /*t*/)
\n+
261 {}
\n+
262 }
\n+
263
\n+
264#endif // DOXYGEN
\n+
265
\n+
269 // default version, gets picked if SFINAE fails
\n+
270 template<typename T, typename = void>
\n+
\n+\n+
272 : public std::false_type
\n+
273 {};
\n+
\n+
274
\n+
275#ifndef DOXYGEN
\n+
276 // version for types with begin() and end()
\n+
277 template<typename T>
\n+
278 struct IsIterable<T, decltype(Impl::ignore(
\n+
279 std::declval<T>().begin(),
\n+
280 std::declval<T>().end(),
\n+
281 std::declval<T>().begin() != std::declval<T>().end(),
\n+
282 decltype(std::declval<T>().begin()){std::declval<T>().end()},
\n+
283 ++(std::declval<std::add_lvalue_reference_t<decltype(std::declval<T>().begin())>>()),
\n+
284 *(std::declval<T>().begin())
\n+
285 ))>
\n+
286 : public std::true_type
\n+
287 {};
\n+
288#endif
\n+
289
\n+
290#ifndef DOXYGEN
\n+
291 // this is just a forward declaration
\n+
292 template <class> struct FieldTraits;
\n+
293#endif
\n+
294
\n+
296 template <class Type>
\n+\n+
298
\n+
300 template <class Type>
\n+\n+
302
\n+
303
\n+
304#ifndef DOXYGEN
\n+
305
\n+
306 // Implementation of IsTuple
\n+
307 namespace Impl {
\n+
308
\n+
309 template<class T>
\n+
310 struct IsTuple : public std::false_type
\n+
311 {};
\n+
312
\n+
313 template<class... T>
\n+
314 struct IsTuple<std::tuple<T...>> : public std::true_type
\n+
315 {};
\n+
316
\n+
317 } // namespace Impl
\n+
318
\n+
319#endif // DOXYGEN
\n+
320
\n+
326 template<class T>
\n+
\n+
327 struct IsTuple :
\n+
328 public Impl::IsTuple<T>
\n+
329 {};
\n+
\n+
330
\n+
331
\n+
332#ifndef DOXYGEN
\n+
333
\n+
334 // Implementation of IsTupleOrDerived
\n+
335 namespace Impl {
\n+
336
\n+
337 template<class... T, class Dummy>
\n+
338 std::true_type isTupleOrDerived(const std::tuple<T...>*, Dummy)
\n+
339 { return {}; }
\n+
340
\n+
341 template<class Dummy>
\n+
342 std::false_type isTupleOrDerived(const void*, Dummy)
\n+
343 { return {}; }
\n+
344
\n+
345 } // namespace Impl
\n+
346
\n+
347#endif // DOXYGEN
\n+
348
\n+
354 template<class T>
\n+
\n+\n+
356 public decltype(Impl::isTupleOrDerived(std::declval<T*>(), true))
\n+
357 {};
\n+
\n+
358
\n+
359
\n+
360#ifndef DOXYGEN
\n+
361
\n+
362 // Implementation of is IsIntegralConstant
\n+
363 namespace Impl {
\n+
364
\n+
365 template<class T>
\n+
366 struct IsIntegralConstant : public std::false_type
\n+
367 {};
\n+
368
\n+
369 template<class T, T t>
\n+
370 struct IsIntegralConstant<std::integral_constant<T, t>> : public std::true_type
\n+
371 {};
\n+
372
\n+
373 } // namespace Impl
\n+
374
\n+
375#endif // DOXYGEN
\n+
376
\n+
382 template<class T>
\n+
\n+
383 struct IsIntegralConstant : public Impl::IsIntegralConstant<std::decay_t<T>>
\n+
384 {};
\n+
\n+
385
\n+
386
\n+
387#ifndef DOXYGEN
\n+
388
\n+
389 namespace Impl {
\n+
390
\n+\n+
392 {
\n+
393 template <class T, T value>
\n+
394 static std::true_type check(std::integral_constant<T,value>);
\n+
395 static std::false_type check(...);
\n+
396 };
\n+
397
\n+
398 } // namespace Impl
\n+
399
\n+
400#endif // DOXYGEN
\n+
401
\n+
408 template<class T>
\n+
\n+\n+
410 : public decltype(Impl::IsCompileTimeConstant::check(std::declval<T>()))
\n+
411 {};
\n+
\n+
412
\n+
413
\n+
414
\n+
430 template<typename... T>
\n+
\n+
431 struct
\n+
432 [[deprecated("This class is deprecated and will be removed after Dune 2.10. Use sizeof...(T) instead.")]]
\n+
433 SizeOf
\n+
434 : public std::integral_constant<std::size_t,sizeof...(T)>
\n+
435 {};
\n+
\n+
436
\n+
437
\n+
438#ifndef DOXYGEN
\n+
439
\n+
440 namespace Impl {
\n+
441
\n+
442 template<class T, T...>
\n+
443 struct IntegerSequenceHelper;
\n+
444
\n+
445 // Helper struct to compute the i-th entry of a std::integer_sequence
\n+
446 //
\n+
447 // This could also be implemented using std::get<index>(std::make_tuple(t...)).
\n+
448 // However, the gcc-6 implementation of std::make_tuple increases the instantiation
\n+
449 // depth by 15 levels for each argument, such that the maximal instantiation depth
\n+
450 // is easily hit, especially with clang where it is set to 256.
\n+
451 template<class T, T head, T... tail>
\n+
452 struct IntegerSequenceHelper<T, head, tail...>
\n+
453 {
\n+
454
\n+
455 // get first entry
\n+
456 static constexpr auto get(std::integral_constant<std::size_t, 0>)
\n+
457 {
\n+
458 return std::integral_constant<T, head>();
\n+
459 }
\n+
460
\n+
461 // call get with first entry cut off and decremented index
\n+
462 template<std::size_t index,
\n+
463 std::enable_if_t<(index > 0) and (index < sizeof...(tail)+1), int> = 0>
\n+
464 static constexpr auto get(std::integral_constant<std::size_t, index>)
\n+
465 {
\n+
466 return IntegerSequenceHelper<T, tail...>::get(std::integral_constant<std::size_t, index-1>());
\n+
467 }
\n+
468
\n+
469 // use static assertion if index exceeds size
\n+
470 template<std::size_t index,
\n+
471 std::enable_if_t<(index >= sizeof...(tail)+1), int> = 0>
\n+
472 static constexpr auto get(std::integral_constant<std::size_t, index>)
\n+
473 {
\n+
474 static_assert(index < sizeof...(tail)+1, "index used in IntegerSequenceEntry exceed size");
\n+
475 }
\n+
476 };
\n+
477
\n+
478 } // end namespace Impl
\n+
479
\n+
480#endif // DOXYGEN
\n+
481
\n+
482
\n+
491 template<class T, T... t, std::size_t index>
\n+
\n+
492 constexpr auto integerSequenceEntry(std::integer_sequence<T, t...> /*seq*/, std::integral_constant<std::size_t, index> i)
\n+
493 {
\n+
494 static_assert(index < sizeof...(t), "index used in IntegerSequenceEntry exceed size");
\n+
495 return Impl::IntegerSequenceHelper<T, t...>::get(i);
\n+
496 }
\n+
\n+
497
\n+
498
\n+
505 template<class IntegerSequence, std::size_t index>
\n+\n+
507
\n+
508#ifndef DOXYGEN
\n+
509
\n+
510 template<class T, T... t, std::size_t i>
\n+
511 struct IntegerSequenceEntry<std::integer_sequence<T, t...>, i>
\n+
512 : public decltype(Impl::IntegerSequenceHelper<T, t...>::get(std::integral_constant<std::size_t, i>()))
\n+
513 {};
\n+
514
\n+
515#endif // DOXYGEN
\n+
516
\n+
530 template<class T>
\n+
531 struct AutonomousValueType { using type = T; };
\n+
532
\n+
534 template<class T>
\n+\n+
536
\n+
538 template<class T>
\n+\n+
540
\n+
542 template<class T>
\n+\n+
544
\n+
546 template<class T>
\n+
547 struct AutonomousValueType<volatile T> : AutonomousValueType<T> {};
\n+
548
\n+
550 template<>
\n+
\n+
551 struct AutonomousValueType<std::vector<bool>::reference>
\n+
552 {
\n+
553 using type = bool;
\n+
554 };
\n+
\n+
555
\n+
557 template<class T>
\n+
558 struct AutonomousValueType<volatile const T> : AutonomousValueType<T> {};
\n+
559
\n+
587 template<class T>
\n+\n+
589
\n+
671 template<class T>
\n+
\n+\n+
673 {
\n+
674 return v;
\n+
675 }
\n+
\n+
676
\n+
678}
\n+
679#endif
\n+
constexpr auto integerSequenceEntry(std::integer_sequence< T, t... >, std::integral_constant< std::size_t, index > i)
Get entry of std::integer_sequence.
Definition typetraits.hh:492
\n+
typename FieldTraits< Type >::real_type real_t
Convenient access to FieldTraits<Type>::real_type.
Definition typetraits.hh:301
\n+
constexpr AutonomousValue< T > autoCopy(T &&v)
Autonomous copy of an expression's value for use in auto type deduction.
Definition typetraits.hh:672
\n+
typename AutonomousValueType< T >::type AutonomousValue
Type free of internal references that T can be converted to.
Definition typetraits.hh:588
\n+
typename Impl::voider< Types... >::type void_t
Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.
Definition typetraits.hh:40
\n+
typename FieldTraits< Type >::field_type field_t
Convenient access to FieldTraits<Type>::field_type.
Definition typetraits.hh:297
\n+
STL namespace.
\n
Dune namespace.
Definition alignedallocator.hh:13
\n-
Default exception if a function was called while the object is not in a valid state for that function...
Definition exceptions.hh:281
\n-
A factory class for parameterized objects.
Definition parameterizedobject.hh:36
\n-
std::function< Type(Args...)> Creator
Definition parameterizedobject.hh:53
\n-
static constexpr auto has_proper_signature(Dune::PriorityTag< 1 >) -> decltype(std::declval< F >()(std::declval< Args >()...), std::true_type())
Definition parameterizedobject.hh:56
\n-
TypeT Type
The type of objects created by the factory.
Definition parameterizedobject.hh:49
\n-
void define(Key const &key, Impl &&t)
Registers a new type with a key.
Definition parameterizedobject.hh:145
\n-
KeyT Key
The typ of the keys.
Definition parameterizedobject.hh:46
\n-
Type create(Key const &key, Args ... args) const
Creates an object identified by a key from given parameters.
Definition parameterizedobject.hh:77
\n-
void define(Key const &key)
Registers a new type with a key.
Definition parameterizedobject.hh:101
\n-
void define(Key const &key, F &&f)
Registers a new creator with a key.
Definition parameterizedobject.hh:121
\n-
static constexpr std::false_type has_proper_signature(Dune::PriorityTag< 0 >)
Definition parameterizedobject.hh:63
\n-
bool contains(Key const &key) const
Definition parameterizedobject.hh:150
\n-
Helper class for tagging priorities.
Definition typeutilities.hh:73
\n+
constexpr std::integer_sequence< T, II... > tail(std::integer_sequence< T, I0, II... >)
For a sequence [head,tail...) return the tail sequence.
Definition integersequence.hh:58
\n+
constexpr std::integral_constant< T, I0 > head(std::integer_sequence< T, I0, II... >)
For a sequence [head,tail...) return the single head element.
Definition integersequence.hh:53
\n+
constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
Return the entry at position pos of the given sequence.
Definition integersequence.hh:22
\n+
Whether this type acts as a scalar in the context of (hierarchically blocked) containers.
Definition typetraits.hh:194
\n+
T field_type
export the type representing the field
Definition ftraits.hh:28
\n+
T real_type
export the type representing the real type of the field
Definition ftraits.hh:30
\n+
Just an empty class.
Definition typetraits.hh:55
\n+
Checks whether two types are interoperable.
Definition typetraits.hh:65
\n+
static constexpr bool value
True if either a conversion from T1 to T2 or vice versa exists.
Definition typetraits.hh:70
\n+
Enable typedef if two types are interoperable.
Definition typetraits.hh:81
\n+
template which always yields a false value
Definition typetraits.hh:124
\n+
template which always yields a true value
Definition typetraits.hh:134
\n+
Check if a type is callable with ()-operator and given arguments.
Definition typetraits.hh:162
\n+
Whether this type has a value of NaN.
Definition typetraits.hh:212
\n+
Type trait to determine whether an instance of T has an operator[](I), i.e. whether it can be indexed...
Definition typetraits.hh:250
\n+
typetrait to check that a class has begin() and end() members
Definition typetraits.hh:273
\n+
Check if T is a std::tuple<...>
Definition typetraits.hh:329
\n+
Check if T derived from a std::tuple<...>
Definition typetraits.hh:357
\n+
Check if T is an std::integral_constant<I, i>
Definition typetraits.hh:384
\n+
Check if T is an integral constant or any type derived from std::integral_constant.
Definition typetraits.hh:411
\n+
Compute size of variadic type list.
Definition typetraits.hh:435
\n+
Get entry of std::integer_sequence.
Definition typetraits.hh:506
\n+
Type free of internal references that T can be converted to.
Definition typetraits.hh:531
\n+
T type
Definition typetraits.hh:531
\n+\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,200 +1,501 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-parameterizedobject.hh\n+typetraits.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n-2// vi: set et ts=4 sw=4 sts=4:\n+1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_PARAMETERIZEDOBJECT_HH\n-6#define DUNE_COMMON_PARAMETERIZEDOBJECT_HH\n+5#ifndef DUNE_TYPETRAITS_HH\n+6#define DUNE_TYPETRAITS_HH\n 7\n-8#include \n-9#include \n-10#include \n-11\n-12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n-14\n-15namespace _\bD_\bu_\bn_\be {\n-16\n-34template\n-_\b3_\b6class _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by;\n-37\n-38template\n-_\b4_\b1class _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by\n-42{\n-43 public:\n-44\n-_\b4_\b6 typedef KeyT _\bK_\be_\by;\n-47\n-_\b4_\b9 using _\bT_\by_\bp_\be = TypeT;\n-50\n-51 protected:\n-52\n-_\b5_\b3 using _\bC_\br_\be_\ba_\bt_\bo_\br = std::function<_\bT_\by_\bp_\be(Args...)>;\n-54\n-55 template\n-_\b5_\b6 static constexpr auto _\bh_\ba_\bs_\b__\bp_\br_\bo_\bp_\be_\br_\b__\bs_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be(_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b1_\b>)\n-57 -> decltype( std::declval()(std::declval()...), std::true_type())\n-58 {\n-59 return {};\n-60 }\n-61\n-62 template\n-_\b6_\b3 static constexpr std::false_type _\bh_\ba_\bs_\b__\bp_\br_\bo_\bp_\be_\br_\b__\bs_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be(_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b0_\b>)\n-64 {\n-65 return {};\n-66 }\n-67\n-68 public:\n-69\n-_\b7_\b7 _\bT_\by_\bp_\be _\bc_\br_\be_\ba_\bt_\be(_\bK_\be_\by const& key, Args ... args) const {\n-78 typename Registry::const_iterator i = registry_.find(key);\n-79 if (i == registry_.end()) {\n-80 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bt_\ba_\bt_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn,\n-81 \"ParametrizedObjectFactory: key ``\" <<\n-82 key << \"'' not registered\");\n-83 }\n-84 else return i->second(args...);\n-85 }\n-86\n-100 template\n-_\b1_\b0_\b1 void _\bd_\be_\bf_\bi_\bn_\be(_\bK_\be_\by const& key)\n-102 {\n-103 registry_[key] = DefaultCreator();\n-104 }\n-105\n-119 template(_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>()), int>::\n-type = 0>\n-_\b1_\b2_\b1 void _\bd_\be_\bf_\bi_\bn_\be(_\bK_\be_\by const& key, F&& f)\n-122 {\n-123 registry_[key] = f;\n-124 }\n+8#include \n+9#include \n+10#include \n+11#include \n+12\n+13namespace _\bD_\bu_\bn_\be\n+14{\n+15\n+16 namespace Impl\n+17 {\n+19\n+23 template \n+24 struct voider\n+25 {\n+26 using type = void;\n+27 };\n+28 }\n+29\n+31\n+39 template \n+_\b4_\b0 using _\bv_\bo_\bi_\bd_\b__\bt = typename Impl::voider::type;\n+41\n+_\b5_\b5 struct _\bE_\bm_\bp_\bt_\by {};\n+56\n+63 template\n+_\b6_\b4 struct _\bI_\bs_\bI_\bn_\bt_\be_\br_\bo_\bp_\be_\br_\ba_\bb_\bl_\be\n+65 {\n+_\b7_\b0 constexpr static bool _\bv_\ba_\bl_\bu_\be = std::is_convertible::value || std::\n+is_convertible::value;\n+71 };\n+72\n+78 template\n+_\b7_\b9 struct _\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be\n+80 : public std::enable_if::value, Type>\n+81 {};\n+82\n+100\n+116\n+123 template\n+_\b1_\b2_\b4 struct _\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be : public std::false_type {};\n 125\n-140 template::value\n-143 and not std::is_convertible::value,\n-144 int>::type = 0>\n-_\b1_\b4_\b5 void _\bd_\be_\bf_\bi_\bn_\be(_\bK_\be_\by const& key, Impl&& t)\n-146 {\n-147 registry_[key] = [=](Args...) { return t;};\n-148 }\n-149\n-_\b1_\b5_\b0 bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(_\bK_\be_\by const& key) const\n-151 {\n-152 return registry_.count(key);\n-153 }\n-154\n-155 private:\n-156\n-157 template\n-158 struct Tag{};\n-159\n-160 template\n-161 struct DefaultCreator\n-162 {\n-163 template\n-164 Type operator()(T&&... args) const\n-165 {\n-166 return DefaultCreator::create(Tag(), PriorityTag<42>(), std::\n-forward(args)...);\n-167 }\n-168\n-169 template\n-170 static Type create(Tag, PriorityTag<1>, T&& ... args) {\n-171 return Impl(std::forward(args)...);\n-172 }\n-173\n-174 template\n-175 static Type create(Tag>, PriorityTag<2>, T&& ...\n-args) {\n-176 return std::make_unique(std::forward(args)...);\n-177 }\n-178\n-179 template\n-180 static Type create(Tag>, PriorityTag<3>, T&& ...\n-args) {\n-181 return std::make_shared(std::forward(args)...);\n-182 }\n-183\n-184 };\n-185\n-186 typedef std::map Registry;\n-187 Registry registry_;\n-188};\n-189\n-190\n-191\n-192} // end namespace Dune\n-193\n-194#endif // DUNE_COMMON_PARAMETERIZEDOBJECT_HH\n-_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n-A few common exception classes.\n-_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh\n-Utilities for type computations, constraining overloads, ...\n-_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n-#define DUNE_THROW(E, m)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+133 template\n+_\b1_\b3_\b4 struct _\bA_\bl_\bw_\ba_\by_\bs_\bT_\br_\bu_\be : public std::true_type {};\n+135\n+161 template\n+_\b1_\b6_\b2 struct _\bI_\bs_\bC_\ba_\bl_\bl_\ba_\bb_\bl_\be;\n+163\n+168 template\n+_\b1_\b6_\b9 struct _\bI_\bs_\bC_\ba_\bl_\bl_\ba_\bb_\bl_\be\n+170 : public std::bool_constant<\n+171 std::is_invocable_r_v\n+172 && !std::is_member_pointer_v>\n+173 > {};\n+174\n+177\n+192 template \n+_\b1_\b9_\b3 struct _\bI_\bs_\bN_\bu_\bm_\bb_\be_\br\n+194 : public std::integral_constant::value> {\n+195 };\n+196\n+197#ifndef DOXYGEN\n+198\n+199 template \n+200 struct _\bI_\bs_\bN_\bu_\bm_\bb_\be_\br<_\bs_\bt_\bd::complex>\n+201 : public std::integral_constant::value> {\n+202 };\n+203\n+204#endif // DOXYGEN\n+205\n+207\n+210 template \n+_\b2_\b1_\b1 struct _\bH_\ba_\bs_\bN_\ba_\bN\n+212 : public std::integral_constant::value> {\n+213 };\n+214\n+215#ifndef DOXYGEN\n+216\n+217 template \n+218 struct _\bH_\ba_\bs_\bN_\ba_\bN<_\bs_\bt_\bd::complex>\n+219 : public std::integral_constant::value> {\n+220 };\n+221\n+222#endif // DOXYGEN\n+223\n+224#ifndef DOXYGEN\n+225\n+226 namespace Impl {\n+227\n+228 template\n+229 struct IsIndexable\n+230 : public std::false_type\n+231 {};\n+232\n+233 template\n+234 struct IsIndexable()\n+[std::declval()]) > 0),int>::type>\n+235 : public std::true_type\n+236 {};\n+237\n+238 }\n+239\n+240#endif // DOXYGEN\n+241\n+243\n+247 template\n+_\b2_\b4_\b8 struct _\bI_\bs_\bI_\bn_\bd_\be_\bx_\ba_\bb_\bl_\be\n+249 : public Impl::IsIndexable\n+250 {};\n+251\n+252#ifndef DOXYGEN\n+253\n+254 namespace Impl {\n+255 // This function does nothing.\n+256 // By passing expressions to this function one can avoid\n+257 // \"value computed is not used\" warnings that may show up\n+258 // in a comma expression.\n+259 template\n+260 void ignore(T&&... /*t*/)\n+261 {}\n+262 }\n+263\n+264#endif // DOXYGEN\n+265\n+269 // default version, gets picked if SFINAE fails\n+270 template\n+_\b2_\b7_\b1 struct _\bI_\bs_\bI_\bt_\be_\br_\ba_\bb_\bl_\be\n+272 : public std::false_type\n+273 {};\n+274\n+275#ifndef DOXYGEN\n+276 // version for types with begin() and end()\n+277 template\n+278 struct _\bI_\bs_\bI_\bt_\be_\br_\ba_\bb_\bl_\be().begin(),\n+280 std::declval().end(),\n+281 std::declval().begin() != std::declval().end(),\n+282 decltype(std::declval().begin()){std::declval().end()},\n+283 ++(std::declval\n+().begin())>>()),\n+284 *(std::declval().begin())\n+285 ))>\n+286 : public std::true_type\n+287 {};\n+288#endif\n+289\n+290#ifndef DOXYGEN\n+291 // this is just a forward declaration\n+292 template struct FieldTraits;\n+293#endif\n+294\n+296 template \n+_\b2_\b9_\b7 using _\bf_\bi_\be_\bl_\bd_\b__\bt = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\by_\bp_\be_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+298\n+300 template \n+_\b3_\b0_\b1 using _\br_\be_\ba_\bl_\b__\bt = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+302\n+303\n+304#ifndef DOXYGEN\n+305\n+306 // Implementation of IsTuple\n+307 namespace Impl {\n+308\n+309 template\n+310 struct _\bI_\bs_\bT_\bu_\bp_\bl_\be : public std::false_type\n+311 {};\n+312\n+313 template\n+314 struct _\bI_\bs_\bT_\bu_\bp_\bl_\be<_\bs_\bt_\bd::tuple> : public std::true_type\n+315 {};\n+316\n+317 } // namespace Impl\n+318\n+319#endif // DOXYGEN\n+320\n+326 template\n+_\b3_\b2_\b7 struct _\bI_\bs_\bT_\bu_\bp_\bl_\be :\n+328 public Impl::IsTuple\n+329 {};\n+330\n+331\n+332#ifndef DOXYGEN\n+333\n+334 // Implementation of IsTupleOrDerived\n+335 namespace Impl {\n+336\n+337 template\n+338 std::true_type isTupleOrDerived(const std::tuple*, Dummy)\n+339 { return {}; }\n+340\n+341 template\n+342 std::false_type isTupleOrDerived(const void*, Dummy)\n+343 { return {}; }\n+344\n+345 } // namespace Impl\n+346\n+347#endif // DOXYGEN\n+348\n+354 template\n+_\b3_\b5_\b5 struct _\bI_\bs_\bT_\bu_\bp_\bl_\be_\bO_\br_\bD_\be_\br_\bi_\bv_\be_\bd :\n+356 public decltype(Impl::isTupleOrDerived(std::declval(), true))\n+357 {};\n+358\n+359\n+360#ifndef DOXYGEN\n+361\n+362 // Implementation of is IsIntegralConstant\n+363 namespace Impl {\n+364\n+365 template\n+366 struct _\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt : public std::false_type\n+367 {};\n+368\n+369 template\n+370 struct IsIntegralConstant<_\bs_\bt_\bd::integral_constant> : public std::\n+true_type\n+371 {};\n+372\n+373 } // namespace Impl\n+374\n+375#endif // DOXYGEN\n+376\n+382 template\n+_\b3_\b8_\b3 struct _\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt : public Impl::IsIntegralConstant>\n+384 {};\n+385\n+386\n+387#ifndef DOXYGEN\n+388\n+389 namespace Impl {\n+390\n+391 struct _\bI_\bs_\bC_\bo_\bm_\bp_\bi_\bl_\be_\bT_\bi_\bm_\be_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt\n+392 {\n+393 template \n+394 static std::true_type check(std::integral_constant);\n+395 static std::false_type check(...);\n+396 };\n+397\n+398 } // namespace Impl\n+399\n+400#endif // DOXYGEN\n+401\n+408 template\n+_\b4_\b0_\b9 struct _\bI_\bs_\bC_\bo_\bm_\bp_\bi_\bl_\be_\bT_\bi_\bm_\be_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt\n+410 : public decltype(Impl::IsCompileTimeConstant::check(std::declval()))\n+411 {};\n+412\n+413\n+414\n+430 template\n+_\b4_\b3_\b1 struct\n+432 [[deprecated(\"This class is deprecated and will be removed after Dune 2.10.\n+Use sizeof...(T) instead.\")]]\n+433 _\bS_\bi_\bz_\be_\bO_\bf\n+434 : public std::integral_constant\n+435 {};\n+436\n+437\n+438#ifndef DOXYGEN\n+439\n+440 namespace Impl {\n+441\n+442 template\n+443 struct IntegerSequenceHelper;\n+444\n+445 // Helper struct to compute the i-th entry of a std::integer_sequence\n+446 //\n+447 // This could also be implemented using std::get(std::make_tuple\n+(t...)).\n+448 // However, the gcc-6 implementation of std::make_tuple increases the\n+instantiation\n+449 // depth by 15 levels for each argument, such that the maximal\n+instantiation depth\n+450 // is easily hit, especially with clang where it is set to 256.\n+451 template\n+452 struct IntegerSequenceHelper\n+453 {\n+454\n+455 // get first entry\n+456 static constexpr auto _\bg_\be_\bt(std::integral_constant)\n+457 {\n+458 return std::integral_constant();\n+459 }\n+460\n+461 // call get with first entry cut off and decremented index\n+462 template 0) and (index < sizeof...(tail)+1), int> = 0>\n+464 static constexpr auto get(std::integral_constant)\n+465 {\n+466 return IntegerSequenceHelper::get(std::integral_constant());\n+467 }\n+468\n+469 // use static assertion if index exceeds size\n+470 template= sizeof...(tail)+1), int> = 0>\n+472 static constexpr auto _\bg_\be_\bt(std::integral_constant)\n+473 {\n+474 static_assert(index < sizeof...(tail)+1, \"index used in\n+IntegerSequenceEntry exceed size\");\n+475 }\n+476 };\n+477\n+478 } // end namespace Impl\n+479\n+480#endif // DOXYGEN\n+481\n+482\n+491 template\n+_\b4_\b9_\b2 constexpr auto _\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by(std::integer_sequence /*seq*/,\n+std::integral_constant i)\n+493 {\n+494 static_assert(index < sizeof...(t), \"index used in IntegerSequenceEntry\n+exceed size\");\n+495 return Impl::IntegerSequenceHelper::get(i);\n+496 }\n+497\n+498\n+505 template\n+_\b5_\b0_\b6 struct _\bI_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by;\n+507\n+508#ifndef DOXYGEN\n+509\n+510 template\n+511 struct _\bI_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by<_\bs_\bt_\bd::integer_sequence, i>\n+512 : public decltype(Impl::IntegerSequenceHelper::get(std::\n+integral_constant()))\n+513 {};\n+514\n+515#endif // DOXYGEN\n+516\n+530 template\n+_\b5_\b3_\b1 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be { using _\bt_\by_\bp_\be = T; };\n+532\n+534 template\n+_\b5_\b3_\b5 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be : _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\bT_\b> {};\n+536\n+538 template\n+_\b5_\b3_\b9 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be : _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\bT_\b> {};\n+540\n+542 template\n+_\b5_\b4_\b3 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be : _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be {};\n+544\n+546 template\n+_\b5_\b4_\b7 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be : _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be {};\n+548\n+550 template<>\n+_\b5_\b5_\b1 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be<_\bs_\bt_\bd::vector::reference>\n+552 {\n+_\b5_\b5_\b3 using _\bt_\by_\bp_\be = bool;\n+554 };\n+555\n+557 template\n+_\b5_\b5_\b8 struct _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be : _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be {};\n+559\n+587 template\n+_\b5_\b8_\b8 using _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be = typename _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n+589\n+671 template\n+_\b6_\b7_\b2 constexpr _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\b<_\bT_\b> _\ba_\bu_\bt_\bo_\bC_\bo_\bp_\by(T &&v)\n+673 {\n+674 return v;\n+675 }\n+676\n+678}\n+679#endif\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by\n+constexpr auto integerSequenceEntry(std::integer_sequence< T, t... >, std::\n+integral_constant< std::size_t, index > i)\n+Get entry of std::integer_sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:492\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bl_\b__\bt\n+typename FieldTraits< Type >::real_type real_t\n+Convenient access to FieldTraits::real_type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bu_\bt_\bo_\bC_\bo_\bp_\by\n+constexpr AutonomousValue< T > autoCopy(T &&v)\n+Autonomous copy of an expression's value for use in auto type deduction.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:672\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be\n+typename AutonomousValueType< T >::type AutonomousValue\n+Type free of internal references that T can be converted to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:588\n+_\bD_\bu_\bn_\be_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt\n+typename Impl::voider< Types... >::type void_t\n+Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt\n+typename FieldTraits< Type >::field_type field_t\n+Convenient access to FieldTraits::field_type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:297\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bt_\ba_\bt_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n-Default exception if a function was called while the object is not in a valid\n-state for that function...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:281\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by\n-A factory class for parameterized objects.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\bo_\br\n-std::function< Type(Args...)> Creator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bh_\ba_\bs_\b__\bp_\br_\bo_\bp_\be_\br_\b__\bs_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n-static constexpr auto has_proper_signature(Dune::PriorityTag< 1 >) -> decltype\n-(std::declval< F >()(std::declval< Args >()...), std::true_type())\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-TypeT Type\n-The type of objects created by the factory.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bd_\be_\bf_\bi_\bn_\be\n-void define(Key const &key, Impl &&t)\n-Registers a new type with a key.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:145\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bK_\be_\by\n-KeyT Key\n-The typ of the keys.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n-Type create(Key const &key, Args ... args) const\n-Creates an object identified by a key from given parameters.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bd_\be_\bf_\bi_\bn_\be\n-void define(Key const &key)\n-Registers a new type with a key.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:101\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bd_\be_\bf_\bi_\bn_\be\n-void define(Key const &key, F &&f)\n-Registers a new creator with a key.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:121\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bh_\ba_\bs_\b__\bp_\br_\bo_\bp_\be_\br_\b__\bs_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n-static constexpr std::false_type has_proper_signature(Dune::PriorityTag< 0 >)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bi_\bz_\be_\bd_\bO_\bb_\bj_\be_\bc_\bt_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bT_\by_\bp_\be_\bT_\b(_\bA_\br_\bg_\bs_\b._\b._\b._\b)_\b,_\b _\bK_\be_\by_\bT_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs\n-bool contains(Key const &key) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameterizedobject.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg\n-Helper class for tagging priorities.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typeutilities.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bt_\ba_\bi_\bl\n+constexpr std::integer_sequence< T, II... > tail(std::integer_sequence< T, I0,\n+II... >)\n+For a sequence [head,tail...) return the tail sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bh_\be_\ba_\bd\n+constexpr std::integral_constant< T, I0 > head(std::integer_sequence< T, I0,\n+II... >)\n+For a sequence [head,tail...) return the single head element.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant<\n+std::size_t, pos >={})\n+Return the entry at position pos of the given sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bN_\bu_\bm_\bb_\be_\br\n+Whether this type acts as a scalar in the context of (hierarchically blocked)\n+containers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+T field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ftraits.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+T real_type\n+export the type representing the real type of the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ftraits.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bm_\bp_\bt_\by\n+Just an empty class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\br_\bo_\bp_\be_\br_\ba_\bb_\bl_\be\n+Checks whether two types are interoperable.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\br_\bo_\bp_\be_\br_\ba_\bb_\bl_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+static constexpr bool value\n+True if either a conversion from T1 to T2 or vice versa exists.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\ba_\bb_\bl_\be_\bI_\bf_\bI_\bn_\bt_\be_\br_\bO_\bp_\be_\br_\ba_\bb_\bl_\be\n+Enable typedef if two types are interoperable.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bF_\ba_\bl_\bs_\be\n+template which always yields a false value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:124\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bT_\br_\bu_\be\n+template which always yields a true value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:134\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bC_\ba_\bl_\bl_\ba_\bb_\bl_\be\n+Check if a type is callable with ()-operator and given arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:162\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\ba_\bs_\bN_\ba_\bN\n+Whether this type has a value of NaN.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:212\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bd_\be_\bx_\ba_\bb_\bl_\be\n+Type trait to determine whether an instance of T has an operator[](I), i.e.\n+whether it can be indexed...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:250\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bt_\be_\br_\ba_\bb_\bl_\be\n+typetrait to check that a class has begin() and end() members\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:273\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bT_\bu_\bp_\bl_\be\n+Check if T is a std::tuple<...>\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:329\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bT_\bu_\bp_\bl_\be_\bO_\br_\bD_\be_\br_\bi_\bv_\be_\bd\n+Check if T derived from a std::tuple<...>\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:357\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt\n+Check if T is an std::integral_constant\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:384\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bC_\bo_\bm_\bp_\bi_\bl_\be_\bT_\bi_\bm_\be_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt\n+Check if T is an integral constant or any type derived from std::\n+integral_constant.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:411\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bz_\be_\bO_\bf\n+Compute size of variadic type list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:435\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by\n+Get entry of std::integer_sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n+Type free of internal references that T can be converted to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:531\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b:_\b:_\bt_\by_\bp_\be\n+T type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:531\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\b _\bb_\bo_\bo_\bl_\b _\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+bool type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:553\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00017.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00017.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: singleton.hh File Reference\n+dune-common: proxymemberaccess.hh File Reference\n \n \n \n \n \n \n \n@@ -70,41 +70,42 @@\n
\n \n
\n
\n
\n \n-
singleton.hh File Reference
\n+Namespaces |\n+Functions
\n+
proxymemberaccess.hh File Reference
\n \n
\n \n-

Useful wrapper for creating singletons. \n+

infrastructure for supporting operator->() on both references and proxies \n More...

\n-
#include <dune/common/visibility.hh>
\n+
#include <type_traits>
\n+#include <utility>
\n
\n

Go to the source code of this file.

\n \n-\n-\n-\n-\n-

\n-Classes

class  Dune::Singleton< T >
 An adapter to turn a class into a singleton. More...
 
\n \n \n \n \n+

\n Namespaces

namespace  Dune
 Dune namespace.
 
\n+\n+\n+\n+\n+\n

\n+Functions

template<typename T >
pointer_or_proxy_holder Dune::handle_proxy_member_access (T &&t)
 Transparent support for providing member access to both lvalues and rvalues (temporary proxies).
 
\n

Detailed Description

\n-

Useful wrapper for creating singletons.

\n-

Inspired by the article CodeGuru: A Leak-Free Singleton class

\n+

infrastructure for supporting operator->() on both references and proxies

\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,24 +1,28 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-singleton.hh File Reference\n-Useful wrapper for creating singletons. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bv_\bi_\bs_\bi_\bb_\bi_\bl_\bi_\bt_\by_\b._\bh_\bh>\n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+proxymemberaccess.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bU_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs \u00bb _\bC_\b+_\b+_\b _\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b _\ba_\bn_\bd_\b _\bb_\ba_\bc_\bk_\bp_\bo_\br_\bt_\bs\n+infrastructure for supporting operator->() on both references and proxies\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn_\b<_\b _\bT_\b _\b>\n-\u00a0 An adapter to turn a class into a singleton. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+pointer_or_proxy_holder\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bn_\bd_\bl_\be_\b__\bp_\br_\bo_\bx_\by_\b__\bm_\be_\bm_\bb_\be_\br_\b__\ba_\bc_\bc_\be_\bs_\bs (T &&t)\n+\u00a0 Transparent support for providing member access to\n+ both lvalues and rvalues (temporary proxies).\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Useful wrapper for creating singletons.\n-Inspired by the article _\bC_\bo_\bd_\be_\bG_\bu_\br_\bu_\b:_\b _\bA_\b _\bL_\be_\ba_\bk_\b-_\bF_\br_\be_\be_\b _\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn_\b _\bc_\bl_\ba_\bs_\bs\n+infrastructure for supporting operator->() on both references and proxies\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00017_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00017_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: singleton.hh Source File\n+dune-common: proxymemberaccess.hh Source File\n \n \n \n \n \n \n \n@@ -74,62 +74,107 @@\n \n
\n \n
\n
\n
\n-
singleton.hh
\n+
proxymemberaccess.hh
\n
\n
\n Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
\n
2// vi: set et ts=4 sw=2 sts=2:
\n
3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
\n
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n-
5#ifndef DUNE_SINGLETON_HH
\n-
6#define DUNE_SINGLETON_HH
\n+
5#ifndef DUNE_COMMON_PROXYMEMBERACCESS_HH
\n+
6#define DUNE_COMMON_PROXYMEMBERACCESS_HH
\n
7
\n-\n-
9
\n-
17namespace Dune
\n-
18{
\n-
54 template<class T>
\n-
\n-\n-
56 {
\n-
57 protected:
\n-
58 /* @brief Protected constructor. */
\n-
59 Singleton() = default;
\n-
60
\n-
61 public:
\n-
62
\n-
63 Singleton(const Singleton&) = delete;
\n-
64 void operator=(const Singleton&) = delete;
\n-
65
\n-
\n-\n-
71 {
\n-
72 static T instance_;
\n-
73 return instance_;
\n-
74 }
\n-
\n-
75 };
\n-
\n-
76
\n-
77} // namespace Dune
\n-
78
\n-
79#endif
\n-
Definition of macros controlling symbol visibility at the ABI level.
\n-
#define DUNE_EXPORT
Export a symbol as part of the public ABI.
Definition visibility.hh:20
\n+
14#include <type_traits>
\n+
15#include <utility>
\n+
16
\n+
17namespace Dune {
\n+
18
\n+
19 namespace Impl {
\n+
20
\n+
21 // helper struct to store a temporary / proxy
\n+
22 // for the duration of the member access
\n+
23 template<typename T>
\n+
24 struct member_access_proxy_holder
\n+
25 {
\n+
26
\n+
27 // only support moving the temporary into the holder object
\n+
28 member_access_proxy_holder(T&& t)
\n+
29 : _t(std::move(t))
\n+
30 {}
\n+
31
\n+
32 // The object is fundamentally a temporary, i.e. an rvalue,
\n+
33 //
\n+
34 const T* operator->() const
\n+
35 {
\n+
36 return &_t;
\n+
37 }
\n+
38
\n+
39 T _t;
\n+
40
\n+
41 };
\n+
42
\n+
43 } // end Impl namespace
\n+
44
\n+
45
\n+
46#ifdef DOXYGEN
\n+
47
\n+
49
\n+
79 template<typename T>
\n+
80 pointer_or_proxy_holder
\n+\n+
82
\n+
83#else // DOXYGEN
\n+
84
\n+
85
\n+
86 // This version matches lvalues (the C++ type deduction rules state that
\n+
87 // the T&& signature deduces to a reference iff the argument is an lvalue).
\n+
88 // As the argument is an lvalue, we do not have to worry about its lifetime
\n+
89 // and can just return its address.
\n+
90 template<typename T>
\n+
91 inline typename std::enable_if<
\n+
92 std::is_lvalue_reference<T>::value,
\n+
93 typename std::add_pointer<
\n+
94 typename std::remove_reference<
\n+
95 T
\n+
96 >::type
\n+
97 >::type
\n+
98 >::type
\n+\n+
100 {
\n+
101 return &target;
\n+
102 }
\n+
103
\n+
104 // This version matches rvalues (the C++ type deduction rules state that
\n+
105 // the T&& signature deduces to a non-reference iff the argument is an rvalue).
\n+
106 // In this case, we have to capture the rvalue in a new object to make sure it
\n+
107 // is kept alive for the duration of the member access. For this purpose, we move
\n+
108 // it into a member_access_proxy_holder instance.
\n+
109 template<typename T>
\n+
110 inline typename std::enable_if<
\n+
111 !std::is_lvalue_reference<T>::value,
\n+
112 Impl::member_access_proxy_holder<T>
\n+
113 >::type
\n+\n+
115 {
\n+
116 return {std::forward<T>(target)};
\n+
117 }
\n+
118
\n+
119#endif // DOXYGEN
\n+
120
\n+
121} // namespace Dune
\n+
122
\n+
123#endif // DUNE_COMMON_PROXYMEMBERACCESS_HH
\n+
pointer_or_proxy_holder handle_proxy_member_access(T &&t)
Transparent support for providing member access to both lvalues and rvalues (temporary proxies).
\n+
STL namespace.
\n
Dune namespace.
Definition alignedallocator.hh:13
\n-
An adapter to turn a class into a singleton.
Definition singleton.hh:56
\n-
Singleton()=default
\n-
Singleton(const Singleton &)=delete
\n-
void operator=(const Singleton &)=delete
\n-
static DUNE_EXPORT T & instance()
Get the instance of the singleton.
Definition singleton.hh:70
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,66 +1,110 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-singleton.hh\n+proxymemberaccess.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_SINGLETON_HH\n-6#define DUNE_SINGLETON_HH\n+5#ifndef DUNE_COMMON_PROXYMEMBERACCESS_HH\n+6#define DUNE_COMMON_PROXYMEMBERACCESS_HH\n 7\n-8#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bv_\bi_\bs_\bi_\bb_\bi_\bl_\bi_\bt_\by_\b._\bh_\bh>\n-9\n-17namespace _\bD_\bu_\bn_\be\n-18{\n-54 template\n-_\b5_\b5 class _\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn\n-56 {\n-57 protected:\n-58 /* @brief Protected constructor. */\n-_\b5_\b9 _\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn() = default;\n-60\n-61 public:\n-62\n-_\b6_\b3 _\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn(const _\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn&) = delete;\n-_\b6_\b4 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn&) = delete;\n-65\n-_\b7_\b0 _\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT static T& _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be()\n-71 {\n-72 static T instance_;\n-73 return instance_;\n-74 }\n-75 };\n-76\n-77} // namespace Dune\n-78\n-79#endif\n-_\bv_\bi_\bs_\bi_\bb_\bi_\bl_\bi_\bt_\by_\b._\bh_\bh\n-Definition of macros controlling symbol visibility at the ABI level.\n-_\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT\n-#define DUNE_EXPORT\n-Export a symbol as part of the public ABI.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn visibility.hh:20\n+14#include \n+15#include \n+16\n+17namespace _\bD_\bu_\bn_\be {\n+18\n+19 namespace Impl {\n+20\n+21 // helper struct to store a temporary / proxy\n+22 // for the duration of the member access\n+23 template\n+24 struct member_access_proxy_holder\n+25 {\n+26\n+27 // only support moving the temporary into the holder object\n+28 member_access_proxy_holder(T&& t)\n+29 : _t(_\bs_\bt_\bd::move(t))\n+30 {}\n+31\n+32 // The object is fundamentally a temporary, i.e. an rvalue,\n+33 //\n+34 const T* operator->() const\n+35 {\n+36 return &_t;\n+37 }\n+38\n+39 T _t;\n+40\n+41 };\n+42\n+43 } // end Impl namespace\n+44\n+45\n+46#ifdef DOXYGEN\n+47\n+49\n+79 template\n+80 pointer_or_proxy_holder\n+_\b8_\b1 _\bh_\ba_\bn_\bd_\bl_\be_\b__\bp_\br_\bo_\bx_\by_\b__\bm_\be_\bm_\bb_\be_\br_\b__\ba_\bc_\bc_\be_\bs_\bs(T&& t);\n+82\n+83#else // DOXYGEN\n+84\n+85\n+86 // This version matches lvalues (the C++ type deduction rules state that\n+87 // the T&& signature deduces to a reference iff the argument is an lvalue).\n+88 // As the argument is an lvalue, we do not have to worry about its lifetime\n+89 // and can just return its address.\n+90 template\n+91 inline typename std::enable_if<\n+92 std::is_lvalue_reference::value,\n+93 typename std::add_pointer<\n+94 typename std::remove_reference<\n+95 T\n+96 >::type\n+97 >::type\n+98 >::type\n+99 _\bh_\ba_\bn_\bd_\bl_\be_\b__\bp_\br_\bo_\bx_\by_\b__\bm_\be_\bm_\bb_\be_\br_\b__\ba_\bc_\bc_\be_\bs_\bs(T&& target)\n+100 {\n+101 return ⌖\n+102 }\n+103\n+104 // This version matches rvalues (the C++ type deduction rules state that\n+105 // the T&& signature deduces to a non-reference iff the argument is an\n+rvalue).\n+106 // In this case, we have to capture the rvalue in a new object to make sure\n+it\n+107 // is kept alive for the duration of the member access. For this purpose,\n+we move\n+108 // it into a member_access_proxy_holder instance.\n+109 template\n+110 inline typename std::enable_if<\n+111 !std::is_lvalue_reference::value,\n+112 Impl::member_access_proxy_holder\n+113 >::type\n+114 _\bh_\ba_\bn_\bd_\bl_\be_\b__\bp_\br_\bo_\bx_\by_\b__\bm_\be_\bm_\bb_\be_\br_\b__\ba_\bc_\bc_\be_\bs_\bs(T&& target)\n+115 {\n+116 return {std::forward(target)};\n+117 }\n+118\n+119#endif // DOXYGEN\n+120\n+121} // namespace Dune\n+122\n+123#endif // DUNE_COMMON_PROXYMEMBERACCESS_HH\n+_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bn_\bd_\bl_\be_\b__\bp_\br_\bo_\bx_\by_\b__\bm_\be_\bm_\bb_\be_\br_\b__\ba_\bc_\bc_\be_\bs_\bs\n+pointer_or_proxy_holder handle_proxy_member_access(T &&t)\n+Transparent support for providing member access to both lvalues and rvalues\n+(temporary proxies).\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn\n-An adapter to turn a class into a singleton.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn singleton.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn\n-Singleton()=default\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn\n-Singleton(const Singleton &)=delete\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-void operator=(const Singleton &)=delete\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bn_\bg_\bl_\be_\bt_\bo_\bn_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be\n-static DUNE_EXPORT T & instance()\n-Get the instance of the singleton.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn singleton.hh:70\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00020.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00020.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: iteratorrange.hh File Reference\n+dune-common: bitsetvector.hh File Reference\n \n \n \n \n \n \n \n@@ -72,32 +72,58 @@\n
  • dune
  • common
  • \n
    \n \n
    \n \n-
    iteratorrange.hh File Reference
    \n+
    bitsetvector.hh File Reference
    \n
    \n
    \n \n+

    Efficient implementation of a dynamic array of static arrays of booleans. \n+More...

    \n+
    #include <vector>
    \n+#include <bitset>
    \n+#include <iostream>
    \n+#include <algorithm>
    \n+#include <dune/common/boundschecking.hh>
    \n+#include <dune/common/genericiterator.hh>
    \n+#include <dune/common/exceptions.hh>
    \n+
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::IteratorRange< Iterator >
     Simple range between a begin and an end iterator. More...
    class  Dune::BitSetVectorConstReference< block_size, Alloc >
     A proxy class that acts as a const reference to a single bitset in a BitSetVector. More...
     
    class  Dune::BitSetVectorReference< block_size, Alloc >
     A proxy class that acts as a mutable reference to a single bitset in a BitSetVector. More...
     
    struct  Dune::const_reference< BitSetVectorReference< block_size, Alloc > >
     
    struct  Dune::const_reference< BitSetVectorConstReference< block_size, Alloc > >
     
    struct  Dune::mutable_reference< BitSetVectorReference< block_size, Alloc > >
     
    struct  Dune::mutable_reference< BitSetVectorConstReference< block_size, Alloc > >
     
    class  Dune::BitSetVector< block_size, Allocator >
     A dynamic array of blocks of booleans. More...
     
    \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-
    \n+

    Detailed Description

    \n+

    Efficient implementation of a dynamic array of static arrays of booleans.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,19 +1,48 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-iteratorrange.hh File Reference\n+bitsetvector.hh File Reference\n+Efficient implementation of a dynamic array of static arrays of booleans.\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bg_\be_\bn_\be_\br_\bi_\bc_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b<_\b _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b _\b>\n-\u00a0 Simple range between a begin and an end iterator. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>\n+\u00a0 A proxy class that acts as a const reference to a single bitset in a\n+ _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>\n+\u00a0 A proxy class that acts as a mutable reference to a single bitset in a\n+ _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>\n+ _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc\n+ _\b>_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n+\u00a0 A dynamic array of blocks of booleans. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Efficient implementation of a dynamic array of static arrays of booleans.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00020_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00020_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: iteratorrange.hh Source File\n+dune-common: bitsetvector.hh Source File\n \n \n \n \n \n \n \n@@ -74,84 +74,759 @@\n \n
    \n \n
    \n \n
    \n-
    iteratorrange.hh
    \n+
    bitsetvector.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_ITERATORRANGE_HH
    \n-
    6#define DUNE_COMMON_ITERATORRANGE_HH
    \n+
    5#ifndef DUNE_BLOCK_BITFIELD_HH
    \n+
    6#define DUNE_BLOCK_BITFIELD_HH
    \n
    7
    \n-
    8namespace Dune {
    \n-
    9
    \n-
    11
    \n-
    20 template<typename Iterator>
    \n-
    \n-\n-
    22 {
    \n-
    23
    \n-
    24 public:
    \n+
    12#include <vector>
    \n+
    13#include <bitset>
    \n+
    14#include <iostream>
    \n+
    15#include <algorithm>
    \n+
    16
    \n+\n+\n+\n+
    20
    \n+
    21namespace Dune {
    \n+
    22
    \n+
    23 template <int block_size, class Alloc> class BitSetVector;
    \n+
    24 template <int block_size, class Alloc> class BitSetVectorReference;
    \n
    25
    \n-
    27 typedef Iterator iterator;
    \n-
    28
    \n-
    30
    \n-
    33 typedef Iterator const_iterator;
    \n-
    34
    \n-
    \n-
    36 IteratorRange(const Iterator& begin, const Iterator& end)
    \n-
    37 : _begin(begin)
    \n-
    38 , _end(end)
    \n-
    39 {}
    \n-
    \n+
    36 template <int block_size, class Alloc>
    \n+
    \n+\n+
    38 {
    \n+
    39 protected:
    \n
    40
    \n-
    \n-\n-
    43 {}
    \n-
    \n-
    44
    \n-
    \n-\n-
    47 {
    \n-
    48 return _begin;
    \n+\n+
    42 friend class Dune::BitSetVector<block_size, Alloc>;
    \n+
    43
    \n+
    \n+
    44 BitSetVectorConstReference(const BitSetVector& blockBitField_, int block_number_) :
    \n+
    45 blockBitField(blockBitField_),
    \n+
    46 block_number(block_number_)
    \n+
    47 {
    \n+
    48 DUNE_ASSERT_BOUNDS(blockBitField_.size() > static_cast<size_t>(block_number_));
    \n
    49 }
    \n
    \n
    50
    \n-
    \n-
    52 iterator end() const
    \n-
    53 {
    \n-
    54 return _end;
    \n-
    55 }
    \n-
    \n-
    56
    \n-
    57 private:
    \n-
    58
    \n-
    59 Iterator _begin;
    \n-
    60 Iterator _end;
    \n-
    61
    \n-
    62 };
    \n-
    \n-
    63
    \n-
    64}
    \n-
    65
    \n-
    66#endif // DUNE_COMMON_ITERATORRANGE_HH
    \n+\n+
    53
    \n+
    54 public:
    \n+
    55
    \n+
    56 typedef std::bitset<block_size> bitset;
    \n+
    57
    \n+
    58 // bitset interface typedefs
    \n+
    59 typedef typename std::vector<bool, Alloc>::const_reference reference;
    \n+
    60 typedef typename std::vector<bool, Alloc>::const_reference const_reference;
    \n+
    61 typedef size_t size_type;
    \n+
    62
    \n+
    \n+\n+
    65 {
    \n+
    66 bitset b = *this;
    \n+
    67 b <<= n;
    \n+
    68 return b;
    \n+
    69 }
    \n+
    \n+
    70
    \n+
    \n+\n+
    73 {
    \n+
    74 bitset b = *this;
    \n+
    75 b >>= n;
    \n+
    76 return b;
    \n+
    77 }
    \n+
    \n+
    78
    \n+
    \n+\n+
    81 {
    \n+
    82 bitset b = *this;
    \n+
    83 b.flip();
    \n+
    84 return b;
    \n+
    85 }
    \n+
    \n+
    86
    \n+
    \n+\n+
    89 {
    \n+
    90 return block_size;
    \n+
    91 }
    \n+
    \n+
    92
    \n+
    \n+\n+
    95 {
    \n+
    96 size_type n = 0;
    \n+
    97 for(size_type i=0; i<block_size; ++i)
    \n+
    98 n += getBit(i);
    \n+
    99 return n;
    \n+
    100 }
    \n+
    \n+
    101
    \n+
    \n+
    103 bool any() const
    \n+
    104 {
    \n+
    105 return count();
    \n+
    106 }
    \n+
    \n+
    107
    \n+
    \n+
    109 bool none() const
    \n+
    110 {
    \n+
    111 return ! any();
    \n+
    112 }
    \n+
    \n+
    113
    \n+
    \n+
    115 bool all() const
    \n+
    116 {
    \n+
    117 for(size_type i=0; i<block_size; ++i)
    \n+
    118 if(not test(i))
    \n+
    119 return false;
    \n+
    120 return true;
    \n+
    121 }
    \n+
    \n+
    122
    \n+
    \n+
    124 bool test(size_type n) const
    \n+
    125 {
    \n+
    126 return getBit(n);
    \n+
    127 }
    \n+
    \n+
    128
    \n+
    \n+\n+
    131 {
    \n+
    132 return getBit(i);
    \n+
    133 }
    \n+
    \n+
    134
    \n+
    \n+
    136 operator bitset() const
    \n+
    137 {
    \n+
    138 return blockBitField.getRepr(block_number);
    \n+
    139 }
    \n+
    \n+
    140
    \n+
    \n+
    142 bool operator== (const bitset& bs) const
    \n+
    143 {
    \n+
    144 return equals(bs);
    \n+
    145 }
    \n+
    \n+
    146
    \n+
    \n+\n+
    149 {
    \n+
    150 return equals(bs);
    \n+
    151 }
    \n+
    \n+
    152
    \n+
    \n+
    154 bool operator!= (const bitset& bs) const
    \n+
    155 {
    \n+
    156 return ! equals(bs);
    \n+
    157 }
    \n+
    \n+
    158
    \n+
    \n+\n+
    161 {
    \n+
    162 return ! equals(bs);
    \n+
    163 }
    \n+
    \n+
    164
    \n+
    \n+
    171 friend std::ostream& operator<< (std::ostream& s, const BitSetVectorConstReference& v)
    \n+
    172 {
    \n+
    173 s << "(";
    \n+
    174 for(int i=0; i<block_size; ++i)
    \n+
    175 s << v[i];
    \n+
    176 s << ")";
    \n+
    177 return s;
    \n+
    178 }
    \n+
    \n+
    179
    \n+
    180 protected:
    \n+\n+\n+
    183
    \n+
    \n+\n+
    185 {
    \n+
    186 return blockBitField.getBit(block_number,i);
    \n+
    187 }
    \n+
    \n+
    188
    \n+
    189 template<class BS>
    \n+
    \n+
    190 bool equals(const BS & bs) const
    \n+
    191 {
    \n+
    192 bool eq = true;
    \n+
    193 for(int i=0; i<block_size; ++i)
    \n+
    194 eq &= (getBit(i) == bs[i]);
    \n+
    195 return eq;
    \n+
    196 }
    \n+
    \n+
    197
    \n+
    198 private:
    \n+
    203 void operator & () = delete;
    \n+
    204
    \n+
    205 friend class BitSetVectorReference<block_size, Alloc>;
    \n+
    206 };
    \n+
    \n+
    207
    \n+
    220 template <int block_size, class Alloc>
    \n+
    \n+
    221 class BitSetVectorReference : public BitSetVectorConstReference<block_size,Alloc>
    \n+
    222 {
    \n+
    223 protected:
    \n+
    224
    \n+\n+
    226 friend class Dune::BitSetVector<block_size, Alloc>;
    \n+
    227
    \n+\n+
    229
    \n+
    \n+
    230 BitSetVectorReference(BitSetVector& blockBitField_, int block_number_) :
    \n+
    231 BitSetVectorConstReference(blockBitField_, block_number_),
    \n+
    232 blockBitField(blockBitField_)
    \n+
    233 {}
    \n+
    \n+
    234
    \n+
    235 public:
    \n+
    236 typedef std::bitset<block_size> bitset;
    \n+
    237
    \n+
    241 typedef typename std::vector<bool, Alloc>::reference reference;
    \n+
    243 typedef typename std::vector<bool, Alloc>::const_reference const_reference;
    \n+
    245
    \n+
    247 typedef size_t size_type;
    \n+
    248
    \n+
    \n+\n+
    251 {
    \n+
    252 for(int i=0; i<block_size; ++i)
    \n+
    253 getBit(i) = b;
    \n+
    254 return (*this);
    \n+
    255 }
    \n+
    \n+
    256
    \n+
    \n+\n+
    259 {
    \n+
    260 for(int i=0; i<block_size; ++i)
    \n+
    261 getBit(i) = b.test(i);
    \n+
    262 return (*this);
    \n+
    263 }
    \n+
    \n+
    264
    \n+
    \n+\n+
    267 {
    \n+
    268 for(int i=0; i<block_size; ++i)
    \n+
    269 getBit(i) = b.test(i);
    \n+
    270 return (*this);
    \n+
    271 }
    \n+
    \n+
    272
    \n+
    \n+\n+
    275 {
    \n+
    276 for(int i=0; i<block_size; ++i)
    \n+
    277 getBit(i) = b.test(i);
    \n+
    278 return (*this);
    \n+
    279 }
    \n+
    \n+
    280
    \n+
    \n+\n+
    283 {
    \n+
    284 for (size_type i=0; i<block_size; i++)
    \n+
    285 getBit(i) = (test(i) & x.test(i));
    \n+
    286 return *this;
    \n+
    287 }
    \n+
    \n+
    288
    \n+
    \n+\n+
    291 {
    \n+
    292 for (size_type i=0; i<block_size; i++)
    \n+
    293 getBit(i) = (test(i) & x.test(i));
    \n+
    294 return *this;
    \n+
    295 }
    \n+
    \n+
    296
    \n+
    \n+\n+
    299 {
    \n+
    300 for (size_type i=0; i<block_size; i++)
    \n+
    301 getBit(i) = (test(i) | x.test(i));
    \n+
    302 return *this;
    \n+
    303 }
    \n+
    \n+
    304
    \n+
    \n+\n+
    307 {
    \n+
    308 for (size_type i=0; i<block_size; i++)
    \n+
    309 getBit(i) = (test(i) | x.test(i));
    \n+
    310 return *this;
    \n+
    311 }
    \n+
    \n+
    312
    \n+
    \n+\n+
    315 {
    \n+
    316 for (size_type i=0; i<block_size; i++)
    \n+
    317 getBit(i) = (test(i) ^ x.test(i));
    \n+
    318 return *this;
    \n+
    319 }
    \n+
    \n+
    320
    \n+
    \n+\n+
    323 {
    \n+
    324 for (size_type i=0; i<block_size; i++)
    \n+
    325 getBit(i) = (test(i) ^ x.test(i));
    \n+
    326 return *this;
    \n+
    327 }
    \n+
    \n+
    328
    \n+
    \n+\n+
    331 {
    \n+
    332 for (size_type i=0; i<block_size-n; i++)
    \n+
    333 getBit(i) = test(i+n);
    \n+
    334 return *this;
    \n+
    335 }
    \n+
    \n+
    336
    \n+
    \n+\n+
    339 {
    \n+
    340 for (size_type i=0; i<block_size-n; i++)
    \n+
    341 getBit(i+n) = test(i);
    \n+
    342 return *this;
    \n+
    343 }
    \n+
    \n+
    344
    \n+
    \n+\n+
    347 {
    \n+
    348 for (size_type i=0; i<block_size; i++)
    \n+
    349 set(i);
    \n+
    350 return *this;
    \n+
    351 }
    \n+
    \n+
    352
    \n+
    \n+\n+
    355 {
    \n+
    356 for (size_type i=0; i<block_size; i++)
    \n+
    357 flip(i);
    \n+
    358 return *this;
    \n+
    359 }
    \n+
    \n+
    360
    \n+
    \n+\n+
    363 {
    \n+
    364 *this = false;
    \n+
    365 return *this;
    \n+
    366 }
    \n+
    \n+
    367
    \n+
    \n+\n+
    370 {
    \n+
    371 getBit(n) = val;
    \n+
    372 return *this;
    \n+
    373 }
    \n+
    \n+
    374
    \n+
    \n+\n+
    377 {
    \n+
    378 set(n, false);
    \n+
    379 return *this;
    \n+
    380 }
    \n+
    \n+
    381
    \n+
    \n+\n+
    384 {
    \n+
    385 getBit(n).flip();
    \n+
    386 return *this;
    \n+
    387 }
    \n+
    \n+
    388
    \n+\n+
    390 using BitSetVectorConstReference::operator[];
    \n+
    391
    \n+
    \n+\n+
    394 {
    \n+
    395 return getBit(i);
    \n+
    396 }
    \n+
    \n+
    397
    \n+
    398 protected:
    \n+\n+
    400
    \n+\n+
    402
    \n+
    \n+\n+
    404 {
    \n+
    405 return blockBitField.getBit(this->block_number,i);
    \n+
    406 }
    \n+
    \n+
    407 };
    \n+
    \n+
    408
    \n+
    412 template<int block_size, class Alloc>
    \n+
    \n+
    413 struct const_reference< BitSetVectorReference<block_size,Alloc> >
    \n+
    414 {
    \n+\n+
    416 };
    \n+
    \n+
    417
    \n+
    418 template<int block_size, class Alloc>
    \n+
    \n+
    419 struct const_reference< BitSetVectorConstReference<block_size,Alloc> >
    \n+
    420 {
    \n+\n+
    422 };
    \n+
    \n+
    423
    \n+
    424 template<int block_size, class Alloc>
    \n+
    \n+
    425 struct mutable_reference< BitSetVectorReference<block_size,Alloc> >
    \n+
    426 {
    \n+\n+
    428 };
    \n+
    \n+
    429
    \n+
    430 template<int block_size, class Alloc>
    \n+
    \n+\n+
    432 {
    \n+\n+
    434 };
    \n+
    \n+
    435
    \n+
    439 template <int block_size, class Allocator=std::allocator<bool> >
    \n+
    \n+
    440 class BitSetVector : private std::vector<bool, Allocator>
    \n+
    441 {
    \n+
    443 typedef std::vector<bool, Allocator> BlocklessBaseClass;
    \n+
    444
    \n+
    445 public:
    \n+
    448
    \n+
    450 typedef std::bitset<block_size> value_type;
    \n+
    451
    \n+\n+
    454
    \n+\n+
    457
    \n+\n+
    460
    \n+\n+
    463
    \n+
    465 typedef typename std::vector<bool, Allocator>::size_type size_type;
    \n+
    466
    \n+
    468 typedef Allocator allocator_type;
    \n+
    470
    \n+\n+\n+
    476
    \n+
    \n+\n+
    479 return iterator(*this, 0);
    \n+
    480 }
    \n+
    \n+
    481
    \n+
    \n+\n+
    484 return const_iterator(*this, 0);
    \n+
    485 }
    \n+
    \n+
    486
    \n+
    \n+\n+
    489 return iterator(*this, size());
    \n+
    490 }
    \n+
    \n+
    491
    \n+
    \n+\n+
    494 return const_iterator(*this, size());
    \n+
    495 }
    \n+
    \n+
    496
    \n+
    \n+\n+
    499 BlocklessBaseClass()
    \n+
    500 {}
    \n+
    \n+
    501
    \n+
    \n+
    503 BitSetVector(const BlocklessBaseClass& blocklessBitField) :
    \n+
    504 BlocklessBaseClass(blocklessBitField)
    \n+
    505 {
    \n+
    506 if (blocklessBitField.size()%block_size != 0)
    \n+
    507 DUNE_THROW(RangeError, "Vector size is not a multiple of the block size!");
    \n+
    508 }
    \n+
    \n+
    509
    \n+
    \n+
    513 explicit BitSetVector(int n) :
    \n+
    514 BlocklessBaseClass(n*block_size)
    \n+
    515 {}
    \n+
    \n+
    516
    \n+
    \n+
    518 BitSetVector(int n, bool v) :
    \n+
    519 BlocklessBaseClass(n*block_size,v)
    \n+
    520 {}
    \n+
    \n+
    521
    \n+
    \n+
    523 void clear()
    \n+
    524 {
    \n+
    525 BlocklessBaseClass::clear();
    \n+
    526 }
    \n+
    \n+
    527
    \n+
    \n+
    529 void resize(int n, bool v = bool())
    \n+
    530 {
    \n+
    531 BlocklessBaseClass::resize(n*block_size, v);
    \n+
    532 }
    \n+
    \n+
    533
    \n+
    \n+\n+
    536 {
    \n+
    537 return BlocklessBaseClass::size()/block_size;
    \n+
    538 }
    \n+
    \n+
    539
    \n+
    \n+
    541 void setAll() {
    \n+
    542 this->assign(BlocklessBaseClass::size(), true);
    \n+
    543 }
    \n+
    \n+
    544
    \n+
    \n+
    546 void unsetAll() {
    \n+
    547 this->assign(BlocklessBaseClass::size(), false);
    \n+
    548 }
    \n+
    \n+
    549
    \n+
    \n+\n+
    552 {
    \n+
    553 return reference(*this, i);
    \n+
    554 }
    \n+
    \n+
    555
    \n+
    \n+\n+
    558 {
    \n+
    559 return const_reference(*this, i);
    \n+
    560 }
    \n+
    \n+
    561
    \n+
    \n+\n+
    564 {
    \n+
    565 return reference(*this, size()-1);
    \n+
    566 }
    \n+
    \n+
    567
    \n+
    \n+\n+
    570 {
    \n+
    571 return const_reference(*this, size()-1);
    \n+
    572 }
    \n+
    \n+
    573
    \n+
    \n+\n+
    576 {
    \n+
    577 return std::count(BlocklessBaseClass::begin(), BlocklessBaseClass::end(), true);
    \n+
    578 }
    \n+
    \n+
    579
    \n+
    \n+\n+
    582 {
    \n+
    583 size_type n = 0;
    \n+
    584 size_type blocks = size();
    \n+
    585 for(size_type i=0; i<blocks; ++i)
    \n+
    586 n += getBit(i,j);
    \n+
    587 return n;
    \n+
    588 }
    \n+
    \n+
    589
    \n+
    \n+
    591 friend std::ostream& operator<< (std::ostream& s, const BitSetVector& v)
    \n+
    592 {
    \n+
    593 for (size_t i=0; i<v.size(); i++)
    \n+
    594 s << v[i] << " ";
    \n+
    595 return s;
    \n+
    596 }
    \n+
    \n+
    597
    \n+
    598 private:
    \n+
    599
    \n+
    601 value_type getRepr(int i) const
    \n+
    602 {
    \n+
    603 value_type bits;
    \n+
    604 for(int j=0; j<block_size; ++j)
    \n+
    605 bits.set(j, getBit(i,j));
    \n+
    606 return bits;
    \n+
    607 }
    \n+
    608
    \n+
    609 typename std::vector<bool>::reference getBit(size_type i, size_type j) {
    \n+
    610 DUNE_ASSERT_BOUNDS(j < block_size);
    \n+\n+
    612 return BlocklessBaseClass::operator[](i*block_size+j);
    \n+
    613 }
    \n+
    614
    \n+
    615 typename std::vector<bool>::const_reference getBit(size_type i, size_type j) const {
    \n+
    616 DUNE_ASSERT_BOUNDS(j < block_size);
    \n+\n+
    618 return BlocklessBaseClass::operator[](i*block_size+j);
    \n+
    619 }
    \n+
    620
    \n+
    621 friend class BitSetVectorReference<block_size,Allocator>;
    \n+
    622 friend class BitSetVectorConstReference<block_size,Allocator>;
    \n+
    623 };
    \n+
    \n+
    624
    \n+
    625} // namespace Dune
    \n+
    626
    \n+
    627#endif
    \n+
    Implements a generic iterator class for writing stl conformant iterators.
    \n+
    Macro for wrapping boundary checks.
    \n+
    A few common exception classes.
    \n+
    #define DUNE_ASSERT_BOUNDS(cond)
    If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do nothing.
    Definition boundschecking.hh:30
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    Simple range between a begin and an end iterator.
    Definition iteratorrange.hh:22
    \n-
    iterator begin() const
    Returns an iterator pointing to the begin of the range.
    Definition iteratorrange.hh:46
    \n-
    Iterator const_iterator
    The iterator belonging to this range.
    Definition iteratorrange.hh:33
    \n-
    iterator end() const
    Returns an iterator pointing past the end of the range.
    Definition iteratorrange.hh:52
    \n-
    IteratorRange()
    Default constructor, relies on iterators being default-constructible.
    Definition iteratorrange.hh:42
    \n-
    Iterator iterator
    The iterator belonging to this range.
    Definition iteratorrange.hh:27
    \n-
    IteratorRange(const Iterator &begin, const Iterator &end)
    Constructs an iterator range on [begin,end).
    Definition iteratorrange.hh:36
    \n+
    void assign(T &dst, const T &src, bool mask)
    masked Simd assignment (scalar version)
    Definition simd.hh:447
    \n+
    A dynamic array of blocks of booleans.
    Definition bitsetvector.hh:441
    \n+
    const_reference operator[](int i) const
    Return const reference to i-th block.
    Definition bitsetvector.hh:557
    \n+
    iterator begin()
    Returns a iterator pointing to the beginning of the vector.
    Definition bitsetvector.hh:478
    \n+
    BitSetVectorConstReference< block_size, Allocator > * const_pointer
    Const pointer to a small block of bits.
    Definition bitsetvector.hh:462
    \n+
    const_iterator end() const
    Returns a const_iterator pointing to the end of the vector.
    Definition bitsetvector.hh:493
    \n+
    BitSetVectorReference< block_size, Allocator > reference
    Reference to a small block of bits.
    Definition bitsetvector.hh:453
    \n+
    size_type countmasked(int j) const
    Returns the number of set bits, while each block is masked with 1<<i.
    Definition bitsetvector.hh:581
    \n+
    BitSetVectorConstReference< block_size, Allocator > const_reference
    Const reference to a small block of bits.
    Definition bitsetvector.hh:456
    \n+
    iterator end()
    Returns an iterator pointing to the end of the vector.
    Definition bitsetvector.hh:488
    \n+
    size_type count() const
    Returns the number of bits that are set.
    Definition bitsetvector.hh:575
    \n+
    BitSetVector()
    Default constructor.
    Definition bitsetvector.hh:498
    \n+
    void setAll()
    Sets all entries to true
    Definition bitsetvector.hh:541
    \n+
    Dune::GenericIterator< const BitSetVector< block_size, Allocator >, const value_type, const_reference, std::ptrdiff_t, ForwardIteratorFacade > const_iterator
    Definition bitsetvector.hh:474
    \n+
    std::bitset< block_size > value_type
    Type of the values stored by the container.
    Definition bitsetvector.hh:450
    \n+
    reference back()
    Return reference to last block.
    Definition bitsetvector.hh:563
    \n+
    BitSetVector(const BlocklessBaseClass &blocklessBitField)
    Construction from an unblocked bitfield.
    Definition bitsetvector.hh:503
    \n+
    friend std::ostream & operator<<(std::ostream &s, const BitSetVector &v)
    Send bitfield to an output stream.
    Definition bitsetvector.hh:591
    \n+
    const_reference back() const
    Return const reference to last block.
    Definition bitsetvector.hh:569
    \n+
    void clear()
    Erases all of the elements.
    Definition bitsetvector.hh:523
    \n+
    BitSetVectorReference< block_size, Allocator > * pointer
    Pointer to a small block of bits.
    Definition bitsetvector.hh:459
    \n+
    reference operator[](int i)
    Return reference to i-th block.
    Definition bitsetvector.hh:551
    \n+
    size_type size() const
    Return the number of blocks.
    Definition bitsetvector.hh:535
    \n+
    std::vector< bool, Allocator >::size_type size_type
    size type
    Definition bitsetvector.hh:465
    \n+
    BitSetVector(int n, bool v)
    Constructor which initializes the field with true or false.
    Definition bitsetvector.hh:518
    \n+
    const_iterator begin() const
    Returns a const_iterator pointing to the beginning of the vector.
    Definition bitsetvector.hh:483
    \n+
    Dune::GenericIterator< BitSetVector< block_size, Allocator >, value_type, reference, std::ptrdiff_t, ForwardIteratorFacade > iterator
    Definition bitsetvector.hh:473
    \n+
    void resize(int n, bool v=bool())
    Resize field.
    Definition bitsetvector.hh:529
    \n+
    Allocator allocator_type
    The type of the allocator.
    Definition bitsetvector.hh:468
    \n+
    BitSetVector(int n)
    Definition bitsetvector.hh:513
    \n+
    void unsetAll()
    Sets all entries to false
    Definition bitsetvector.hh:546
    \n+
    A proxy class that acts as a mutable reference to a single bitset in a BitSetVector.
    Definition bitsetvector.hh:222
    \n+
    bool test(size_type n) const
    Returns true if bit n is set.
    Definition bitsetvector.hh:124
    \n+
    BitSetVectorReference & operator=(const BitSetVectorConstReference &b)
    Assignment from BitSetVectorConstReference.
    Definition bitsetvector.hh:266
    \n+
    reference operator[](size_type i)
    Return reference to the i-th bit.
    Definition bitsetvector.hh:393
    \n+
    BitSetVectorReference & reset(size_type n)
    Clears bit n.
    Definition bitsetvector.hh:376
    \n+
    BitSetVectorReference & operator<<=(size_type n)
    Left shift.
    Definition bitsetvector.hh:330
    \n+
    Dune::BitSetVector< block_size, Alloc > BitSetVector
    Definition bitsetvector.hh:225
    \n+
    std::vector< bool, Alloc >::const_reference const_reference
    A proxy class that acts as a const reference to a single bit.
    Definition bitsetvector.hh:243
    \n+
    BitSetVectorReference & operator=(const BitSetVectorReference &b)
    Assignment from BitSetVectorReference.
    Definition bitsetvector.hh:274
    \n+
    reference getBit(size_type i)
    Definition bitsetvector.hh:403
    \n+
    BitSetVectorReference & operator&=(const BitSetVectorConstReference &x)
    Bitwise and (for BitSetVectorConstReference and BitSetVectorReference)
    Definition bitsetvector.hh:290
    \n+
    BitSetVectorReference(BitSetVector &blockBitField_, int block_number_)
    Definition bitsetvector.hh:230
    \n+
    size_t size_type
    size_type typedef (an unsigned integral type)
    Definition bitsetvector.hh:247
    \n+
    BitSetVectorReference & operator=(const bitset &b)
    Assignment from bitset.
    Definition bitsetvector.hh:258
    \n+
    Dune::BitSetVectorConstReference< block_size, Alloc > BitSetVectorConstReference
    Definition bitsetvector.hh:228
    \n+
    BitSetVectorReference & reset()
    Clears every bit.
    Definition bitsetvector.hh:362
    \n+
    BitSetVector & blockBitField
    Definition bitsetvector.hh:399
    \n+
    BitSetVectorReference & operator|=(const BitSetVectorConstReference &x)
    Bitwise inclusive or (for BitSetVectorConstReference and BitSetVectorReference)
    Definition bitsetvector.hh:306
    \n+
    BitSetVectorReference & set(size_type n, int val=1)
    Sets bit n if val is nonzero, and clears bit n if val is zero.
    Definition bitsetvector.hh:369
    \n+
    std::bitset< block_size > bitset
    Definition bitsetvector.hh:236
    \n+
    BitSetVectorReference & operator^=(const bitset &x)
    Bitwise exclusive or (for bitset).
    Definition bitsetvector.hh:314
    \n+
    std::vector< bool, Alloc >::reference reference
    Definition bitsetvector.hh:241
    \n+
    BitSetVectorReference & operator|=(const bitset &x)
    Bitwise inclusive or (for bitset)
    Definition bitsetvector.hh:298
    \n+
    BitSetVectorReference & operator>>=(size_type n)
    Right shift.
    Definition bitsetvector.hh:338
    \n+
    BitSetVectorReference & operator^=(const BitSetVectorConstReference &x)
    Bitwise exclusive or (for BitSetVectorConstReference and BitSetVectorReference)
    Definition bitsetvector.hh:322
    \n+
    BitSetVectorReference & flip(size_type n)
    Flips bit n.
    Definition bitsetvector.hh:383
    \n+
    BitSetVectorReference & flip()
    Flips the value of every bit.
    Definition bitsetvector.hh:354
    \n+
    BitSetVectorReference & set()
    Sets every bit.
    Definition bitsetvector.hh:346
    \n+
    BitSetVectorReference & operator&=(const bitset &x)
    Bitwise and (for bitset).
    Definition bitsetvector.hh:282
    \n+
    BitSetVectorReference & operator=(bool b)
    Assignment from bool, sets each bit in the bitset to b.
    Definition bitsetvector.hh:250
    \n+
    A proxy class that acts as a const reference to a single bitset in a BitSetVector.
    Definition bitsetvector.hh:38
    \n+
    bool operator==(const bitset &bs) const
    Equality of reference and std::bitset.
    Definition bitsetvector.hh:142
    \n+
    bool test(size_type n) const
    Returns true if bit n is set.
    Definition bitsetvector.hh:124
    \n+
    const_reference operator[](size_type i) const
    Return reference to the i-th bit.
    Definition bitsetvector.hh:130
    \n+
    bitset operator<<(size_type n) const
    Returns a copy of *this shifted left by n bits.
    Definition bitsetvector.hh:64
    \n+
    BitSetVectorConstReference(const BitSetVector &blockBitField_, int block_number_)
    Definition bitsetvector.hh:44
    \n+
    const BitSetVector & blockBitField
    Definition bitsetvector.hh:181
    \n+
    bitset operator>>(size_type n) const
    Returns a copy of *this shifted right by n bits.
    Definition bitsetvector.hh:72
    \n+
    const_reference getBit(size_type i) const
    Definition bitsetvector.hh:184
    \n+
    bool operator!=(const bitset &bs) const
    Inequality of reference and std::bitset.
    Definition bitsetvector.hh:154
    \n+
    bool equals(const BS &bs) const
    Definition bitsetvector.hh:190
    \n+
    Dune::BitSetVector< block_size, Alloc > BitSetVector
    Definition bitsetvector.hh:41
    \n+
    std::bitset< block_size > bitset
    Definition bitsetvector.hh:56
    \n+
    bool all() const
    Returns true if all bits are set.
    Definition bitsetvector.hh:115
    \n+
    size_t size_type
    Definition bitsetvector.hh:61
    \n+
    bitset operator~() const
    Returns a copy of *this with all of its bits flipped.
    Definition bitsetvector.hh:80
    \n+
    std::vector< bool, Alloc >::const_reference reference
    Definition bitsetvector.hh:59
    \n+
    size_type size() const
    Returns block_size.
    Definition bitsetvector.hh:88
    \n+
    size_type count() const
    Returns the number of bits that are set.
    Definition bitsetvector.hh:94
    \n+
    bool none() const
    Returns true if no bits are set.
    Definition bitsetvector.hh:109
    \n+
    bool any() const
    Returns true if any bits are set.
    Definition bitsetvector.hh:103
    \n+
    int block_number
    Definition bitsetvector.hh:182
    \n+
    std::vector< bool, Alloc >::const_reference const_reference
    Definition bitsetvector.hh:60
    \n+
    BitSetVectorConstReference & operator=(const BitSetVectorConstReference &b)=delete
    disable assignment operator
    \n+
    friend std::ostream & operator<<(std::ostream &s, const BitSetVectorConstReference &v)
    Definition bitsetvector.hh:171
    \n+
    BitSetVectorConstReference< block_size, Alloc > type
    Definition bitsetvector.hh:415
    \n+
    BitSetVectorConstReference< block_size, Alloc > type
    Definition bitsetvector.hh:421
    \n+
    BitSetVectorReference< block_size, Alloc > type
    Definition bitsetvector.hh:427
    \n+
    BitSetVectorReference< block_size, Alloc > type
    Definition bitsetvector.hh:433
    \n+
    Default exception class for range errors.
    Definition exceptions.hh:254
    \n+
    Get the 'const' version of a reference to a mutable object.
    Definition genericiterator.hh:87
    \n+
    get the 'mutable' version of a reference to a const object
    Definition genericiterator.hh:116
    \n+
    Generic class for stl-conforming iterators for container classes with operator[].
    Definition genericiterator.hh:153
    \n+
    Base class for stl conformant forward iterators.
    Definition iteratorfacades.hh:142
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,90 +1,903 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-iteratorrange.hh\n+bitsetvector.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_ITERATORRANGE_HH\n-6#define DUNE_COMMON_ITERATORRANGE_HH\n+5#ifndef DUNE_BLOCK_BITFIELD_HH\n+6#define DUNE_BLOCK_BITFIELD_HH\n 7\n-8namespace _\bD_\bu_\bn_\be {\n-9\n-11\n-20 template\n-_\b2_\b1 class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be\n-22 {\n-23\n-24 public:\n+12#include \n+13#include \n+14#include \n+15#include \n+16\n+17#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh>\n+18#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bg_\be_\bn_\be_\br_\bi_\bc_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b._\bh_\bh>\n+19#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+20\n+21namespace _\bD_\bu_\bn_\be {\n+22\n+23 template class BitSetVector;\n+24 template class BitSetVectorReference;\n 25\n-_\b2_\b7 typedef Iterator _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-28\n-30\n-_\b3_\b3 typedef Iterator _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-34\n-_\b3_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be(const Iterator& _\bb_\be_\bg_\bi_\bn, const Iterator& _\be_\bn_\bd)\n-37 : _begin(_\bb_\be_\bg_\bi_\bn)\n-38 , _end(_\be_\bn_\bd)\n-39 {}\n+36 template \n+_\b3_\b7 class _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+38 {\n+39 protected:\n 40\n-_\b4_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be()\n-43 {}\n-44\n-_\b4_\b6 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const\n+_\b4_\b1 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b> _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br;\n+42 friend class _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br;\n+43\n+_\b4_\b4 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be(const _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br& blockBitField_, int\n+block_number_) :\n+45 _\bb_\bl_\bo_\bc_\bk_\bB_\bi_\bt_\bF_\bi_\be_\bl_\bd(blockBitField_),\n+46 _\bb_\bl_\bo_\bc_\bk_\b__\bn_\bu_\bm_\bb_\be_\br(block_number_)\n 47 {\n-48 return _begin;\n+48 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(blockBitField_._\bs_\bi_\bz_\be() > static_cast\n+(block_number_));\n 49 }\n 50\n-_\b5_\b2 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const\n-53 {\n-54 return _end;\n-55 }\n-56\n-57 private:\n-58\n-59 Iterator _begin;\n-60 Iterator _end;\n-61\n-62 };\n-63\n-64}\n-65\n-66#endif // DUNE_COMMON_ITERATORRANGE_HH\n+_\b5_\b2 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be & b)\n+= delete;\n+53\n+54 public:\n+55\n+_\b5_\b6 typedef std::bitset _\bb_\bi_\bt_\bs_\be_\bt;\n+57\n+58 // bitset interface typedefs\n+_\b5_\b9 typedef typename std::vector::const_reference _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+_\b6_\b0 typedef typename std::vector::const_reference _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+_\b6_\b1 typedef size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+62\n+_\b6_\b4 _\bb_\bi_\bt_\bs_\be_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be n) const\n+65 {\n+66 _\bb_\bi_\bt_\bs_\be_\bt b = *this;\n+67 b <<= n;\n+68 return b;\n+69 }\n+70\n+_\b7_\b2 _\bb_\bi_\bt_\bs_\be_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be n) const\n+73 {\n+74 _\bb_\bi_\bt_\bs_\be_\bt b = *this;\n+75 b >>= n;\n+76 return b;\n+77 }\n+78\n+_\b8_\b0 _\bb_\bi_\bt_\bs_\be_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b~() const\n+81 {\n+82 _\bb_\bi_\bt_\bs_\be_\bt b = *this;\n+83 b.flip();\n+84 return b;\n+85 }\n+86\n+_\b8_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const\n+89 {\n+90 return block_size;\n+91 }\n+92\n+_\b9_\b4 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bu_\bn_\bt() const\n+95 {\n+96 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be n = 0;\n+97 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b1_\b9_\b0 bool _\be_\bq_\bu_\ba_\bl_\bs(const BS & bs) const\n+191 {\n+192 bool eq = true;\n+193 for(int i=0; i;\n+206 };\n+207\n+220 template \n+_\b2_\b2_\b1 class _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be : public\n+_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+222 {\n+223 protected:\n+224\n+_\b2_\b2_\b5 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b> _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br;\n+226 friend class _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br;\n+227\n+_\b2_\b2_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\b>\n+_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+229\n+_\b2_\b3_\b0 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be(_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br& blockBitField_, int block_number_) :\n+231 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be(blockBitField_, block_number_),\n+232 _\bb_\bl_\bo_\bc_\bk_\bB_\bi_\bt_\bF_\bi_\be_\bl_\bd(blockBitField_)\n+233 {}\n+234\n+235 public:\n+_\b2_\b3_\b6 typedef std::bitset _\bb_\bi_\bt_\bs_\be_\bt;\n+237\n+_\b2_\b4_\b1 typedef typename std::vector::reference _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+_\b2_\b4_\b3 typedef typename std::vector::const_reference _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+245\n+_\b2_\b4_\b7 typedef size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+248\n+_\b2_\b5_\b0 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(bool b)\n+251 {\n+252 for(int i=0; i_\b>_\b=(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be n)\n+339 {\n+340 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\bb_\bl_\bo_\bc_\bk_\b__\bn_\bu_\bm_\bb_\be_\br,i);\n+406 }\n+407 };\n+408\n+412 template\n+_\b4_\b1_\b3 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be< _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be >\n+414 {\n+_\b4_\b1_\b5 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\b> _\bt_\by_\bp_\be;\n+416 };\n+417\n+418 template\n+_\b4_\b1_\b9 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be< _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be >\n+420 {\n+_\b4_\b2_\b1 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\b> _\bt_\by_\bp_\be;\n+422 };\n+423\n+424 template\n+_\b4_\b2_\b5 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be< _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be >\n+426 {\n+_\b4_\b2_\b7 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\b> _\bt_\by_\bp_\be;\n+428 };\n+429\n+430 template\n+_\b4_\b3_\b1 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be< _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be >\n+432 {\n+_\b4_\b3_\b3 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\b> _\bt_\by_\bp_\be;\n+434 };\n+435\n+439 template >\n+_\b4_\b4_\b0 class _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br : private std::vector\n+441 {\n+443 typedef std::vector BlocklessBaseClass;\n+444\n+445 public:\n+448\n+_\b4_\b5_\b0 typedef std::bitset _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n+451\n+_\b4_\b5_\b3 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b> _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+454\n+_\b4_\b5_\b6 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b> _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+457\n+_\b4_\b5_\b9 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>* _\bp_\bo_\bi_\bn_\bt_\be_\br;\n+460\n+_\b4_\b6_\b2 typedef _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>* _\bc_\bo_\bn_\bs_\bt_\b__\bp_\bo_\bi_\bn_\bt_\be_\br;\n+463\n+_\b4_\b6_\b5 typedef typename std::vector::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+466\n+_\b4_\b6_\b8 typedef Allocator _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+470\n+_\b4_\b7_\b3 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>,\n+_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be, _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be, std::ptrdiff_t, _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be> _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b4_\b7_\b4 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>,\n+const _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be, _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be, std::ptrdiff_t, _\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be>\n+_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+476\n+_\b4_\b7_\b8 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(){\n+479 return _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(*this, 0);\n+480 }\n+481\n+_\b4_\b8_\b3 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const {\n+484 return _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br(*this, 0);\n+485 }\n+486\n+_\b4_\b8_\b8 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(){\n+489 return _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(*this, _\bs_\bi_\bz_\be());\n+490 }\n+491\n+_\b4_\b9_\b3 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const {\n+494 return _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br(*this, _\bs_\bi_\bz_\be());\n+495 }\n+496\n+_\b4_\b9_\b8 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br() :\n+499 BlocklessBaseClass()\n+500 {}\n+501\n+_\b5_\b0_\b3 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br(const BlocklessBaseClass& blocklessBitField) :\n+504 BlocklessBaseClass(blocklessBitField)\n+505 {\n+506 if (blocklessBitField.size()%block_size != 0)\n+507 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bR_\ba_\bn_\bg_\be_\bE_\br_\br_\bo_\br, \"Vector size is not a multiple of the block size!\");\n+508 }\n+509\n+_\b5_\b1_\b3 explicit _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br(int n) :\n+514 BlocklessBaseClass(n*block_size)\n+515 {}\n+516\n+_\b5_\b1_\b8 _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br(int n, bool v) :\n+519 BlocklessBaseClass(n*block_size,v)\n+520 {}\n+521\n+_\b5_\b2_\b3 void _\bc_\bl_\be_\ba_\br()\n+524 {\n+525 BlocklessBaseClass::clear();\n+526 }\n+527\n+_\b5_\b2_\b9 void _\br_\be_\bs_\bi_\bz_\be(int n, bool v = bool())\n+530 {\n+531 BlocklessBaseClass::resize(n*block_size, v);\n+532 }\n+533\n+_\b5_\b3_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const\n+536 {\n+537 return BlocklessBaseClass::size()/block_size;\n+538 }\n+539\n+_\b5_\b4_\b1 void _\bs_\be_\bt_\bA_\bl_\bl() {\n+542 this->_\ba_\bs_\bs_\bi_\bg_\bn(BlocklessBaseClass::size(), true);\n+543 }\n+544\n+_\b5_\b4_\b6 void _\bu_\bn_\bs_\be_\bt_\bA_\bl_\bl() {\n+547 this->_\ba_\bs_\bs_\bi_\bg_\bn(BlocklessBaseClass::size(), false);\n+548 }\n+549\n+_\b5_\b5_\b1 _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](int i)\n+552 {\n+553 return _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be(*this, i);\n+554 }\n+555\n+_\b5_\b5_\b7 _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](int i) const\n+558 {\n+559 return _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be(*this, i);\n+560 }\n+561\n+_\b5_\b6_\b3 _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bb_\ba_\bc_\bk()\n+564 {\n+565 return _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be(*this, _\bs_\bi_\bz_\be()-1);\n+566 }\n+567\n+_\b5_\b6_\b9 _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bb_\ba_\bc_\bk() const\n+570 {\n+571 return _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be(*this, _\bs_\bi_\bz_\be()-1);\n+572 }\n+573\n+_\b5_\b7_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bu_\bn_\bt() const\n+576 {\n+577 return std::count(BlocklessBaseClass::begin(), BlocklessBaseClass::end(),\n+true);\n+578 }\n+579\n+_\b5_\b8_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bu_\bn_\bt_\bm_\ba_\bs_\bk_\be_\bd(int j) const\n+582 {\n+583 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be n = 0;\n+584 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be blocks = _\bs_\bi_\bz_\be();\n+585 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i::reference getBit(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) {\n+610 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(j < block_size);\n+611 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(i < _\bs_\bi_\bz_\be());\n+612 return BlocklessBaseClass::operator[](i*block_size+j);\n+613 }\n+614\n+_\b6_\b1_\b5 typename std::vector::const_reference getBit(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+j) const {\n+616 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(j < block_size);\n+617 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(i < _\bs_\bi_\bz_\be());\n+618 return BlocklessBaseClass::operator[](i*block_size+j);\n+619 }\n+620\n+621 friend class _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+622 friend class _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+623 };\n+624\n+625} // namespace Dune\n+626\n+627#endif\n+_\bg_\be_\bn_\be_\br_\bi_\bc_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b._\bh_\bh\n+Implements a generic iterator class for writing stl conformant iterators.\n+_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh\n+Macro for wrapping boundary checks.\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS\n+#define DUNE_ASSERT_BOUNDS(cond)\n+If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do\n+nothing.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn boundschecking.hh:30\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be\n-Simple range between a begin and an end iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-iterator begin() const\n-Returns an iterator pointing to the begin of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator const_iterator\n-The iterator belonging to this range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b:_\b:_\be_\bn_\bd\n-iterator end() const\n-Returns an iterator pointing past the end of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be\n-IteratorRange()\n-Default constructor, relies on iterators being default-constructible.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator iterator\n-The iterator belonging to this range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bR_\ba_\bn_\bg_\be\n-IteratorRange(const Iterator &begin, const Iterator &end)\n-Constructs an iterator range on [begin,end).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorrange.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bs_\bs_\bi_\bg_\bn\n+void assign(T &dst, const T &src, bool mask)\n+masked Simd assignment (scalar version)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd.hh:447\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+A dynamic array of blocks of booleans.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:441\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const_reference operator[](int i) const\n+Return const reference to i-th block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:557\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+Returns a iterator pointing to the beginning of the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:478\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bp_\bo_\bi_\bn_\bt_\be_\br\n+BitSetVectorConstReference< block_size, Allocator > * const_pointer\n+Const pointer to a small block of bits.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:462\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+Returns a const_iterator pointing to the end of the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+BitSetVectorReference< block_size, Allocator > reference\n+Reference to a small block of bits.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:453\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bm_\ba_\bs_\bk_\be_\bd\n+size_type countmasked(int j) const\n+Returns the number of set bits, while each block is masked with 1< const_reference\n+Const reference to a small block of bits.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+Returns an iterator pointing to the end of the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bu_\bn_\bt\n+size_type count() const\n+Returns the number of bits that are set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:575\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+BitSetVector()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:498\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\be_\bt_\bA_\bl_\bl\n+void setAll()\n+Sets all entries to true\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:541\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+Dune::GenericIterator< const BitSetVector< block_size, Allocator >, const\n+value_type, const_reference, std::ptrdiff_t, ForwardIteratorFacade >\n+const_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:474\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+std::bitset< block_size > value_type\n+Type of the values stored by the container.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:450\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk\n+reference back()\n+Return reference to last block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:563\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+BitSetVector(const BlocklessBaseClass &blocklessBitField)\n+Construction from an unblocked bitfield.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+friend std::ostream & operator<<(std::ostream &s, const BitSetVector &v)\n+Send bitfield to an output stream.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:591\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk\n+const_reference back() const\n+Return const reference to last block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:569\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bl_\be_\ba_\br\n+void clear()\n+Erases all of the elements.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:523\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n+BitSetVectorReference< block_size, Allocator > * pointer\n+Pointer to a small block of bits.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:459\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+reference operator[](int i)\n+Return reference to i-th block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:551\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n+size_type size() const\n+Return the number of blocks.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:535\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+std::vector< bool, Allocator >::size_type size_type\n+size type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:465\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+BitSetVector(int n, bool v)\n+Constructor which initializes the field with true or false.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:518\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+Returns a const_iterator pointing to the beginning of the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+Dune::GenericIterator< BitSetVector< block_size, Allocator >, value_type,\n+reference, std::ptrdiff_t, ForwardIteratorFacade > iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:473\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(int n, bool v=bool())\n+Resize field.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:529\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+Allocator allocator_type\n+The type of the allocator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:468\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+BitSetVector(int n)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:513\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bu_\bn_\bs_\be_\bt_\bA_\bl_\bl\n+void unsetAll()\n+Sets all entries to false\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:546\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+A proxy class that acts as a mutable reference to a single bitset in a\n+BitSetVector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bt_\be_\bs_\bt\n+bool test(size_type n) const\n+Returns true if bit n is set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:124\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BitSetVectorReference & operator=(const BitSetVectorConstReference &b)\n+Assignment from BitSetVectorConstReference.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+reference operator[](size_type i)\n+Return reference to the i-th bit.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:393\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\br_\be_\bs_\be_\bt\n+BitSetVectorReference & reset(size_type n)\n+Clears bit n.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:376\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b=\n+BitSetVectorReference & operator<<=(size_type n)\n+Left shift.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:330\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+Dune::BitSetVector< block_size, Alloc > BitSetVector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:225\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+std::vector< bool, Alloc >::const_reference const_reference\n+A proxy class that acts as a const reference to a single bit.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:243\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BitSetVectorReference & operator=(const BitSetVectorReference &b)\n+Assignment from BitSetVectorReference.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:274\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bg_\be_\bt_\bB_\bi_\bt\n+reference getBit(size_type i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:403\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b&_\b=\n+BitSetVectorReference & operator&=(const BitSetVectorConstReference &x)\n+Bitwise and (for BitSetVectorConstReference and BitSetVectorReference)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:290\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+BitSetVectorReference(BitSetVector &blockBitField_, int block_number_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+size_t size_type\n+size_type typedef (an unsigned integral type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:247\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BitSetVectorReference & operator=(const bitset &b)\n+Assignment from bitset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:258\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+Dune::BitSetVectorConstReference< block_size, Alloc >\n+BitSetVectorConstReference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:228\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\br_\be_\bs_\be_\bt\n+BitSetVectorReference & reset()\n+Clears every bit.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:362\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bB_\bi_\bt_\bF_\bi_\be_\bl_\bd\n+BitSetVector & blockBitField\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:399\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b|_\b=\n+BitSetVectorReference & operator|=(const BitSetVectorConstReference &x)\n+Bitwise inclusive or (for BitSetVectorConstReference and BitSetVectorReference)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:306\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bs_\be_\bt\n+BitSetVectorReference & set(size_type n, int val=1)\n+Sets bit n if val is nonzero, and clears bit n if val is zero.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:369\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bb_\bi_\bt_\bs_\be_\bt\n+std::bitset< block_size > bitset\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:236\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b^_\b=\n+BitSetVectorReference & operator^=(const bitset &x)\n+Bitwise exclusive or (for bitset).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:314\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+std::vector< bool, Alloc >::reference reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b|_\b=\n+BitSetVectorReference & operator|=(const bitset &x)\n+Bitwise inclusive or (for bitset)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:298\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>_\b=\n+BitSetVectorReference & operator>>=(size_type n)\n+Right shift.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:338\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b^_\b=\n+BitSetVectorReference & operator^=(const BitSetVectorConstReference &x)\n+Bitwise exclusive or (for BitSetVectorConstReference and BitSetVectorReference)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bf_\bl_\bi_\bp\n+BitSetVectorReference & flip(size_type n)\n+Flips bit n.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:383\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bf_\bl_\bi_\bp\n+BitSetVectorReference & flip()\n+Flips the value of every bit.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:354\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bs_\be_\bt\n+BitSetVectorReference & set()\n+Sets every bit.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:346\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b&_\b=\n+BitSetVectorReference & operator&=(const bitset &x)\n+Bitwise and (for bitset).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BitSetVectorReference & operator=(bool b)\n+Assignment from bool, sets each bit in the bitset to b.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:250\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+A proxy class that acts as a const reference to a single bitset in a\n+BitSetVector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const bitset &bs) const\n+Equality of reference and std::bitset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bt_\be_\bs_\bt\n+bool test(size_type n) const\n+Returns true if bit n is set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:124\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const_reference operator[](size_type i) const\n+Return reference to the i-th bit.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:130\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+bitset operator<<(size_type n) const\n+Returns a copy of *this shifted left by n bits.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+BitSetVectorConstReference(const BitSetVector &blockBitField_, int\n+block_number_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bB_\bi_\bt_\bF_\bi_\be_\bl_\bd\n+const BitSetVector & blockBitField\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+bitset operator>>(size_type n) const\n+Returns a copy of *this shifted right by n bits.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bg_\be_\bt_\bB_\bi_\bt\n+const_reference getBit(size_type i) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const bitset &bs) const\n+Inequality of reference and std::bitset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const BS &bs) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br\n+Dune::BitSetVector< block_size, Alloc > BitSetVector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bb_\bi_\bt_\bs_\be_\bt\n+std::bitset< block_size > bitset\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\ba_\bl_\bl\n+bool all() const\n+Returns true if all bits are set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:115\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+size_t size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b~\n+bitset operator~() const\n+Returns a copy of *this with all of its bits flipped.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+std::vector< bool, Alloc >::const_reference reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bs_\bi_\bz_\be\n+size_type size() const\n+Returns block_size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt\n+size_type count() const\n+Returns the number of bits that are set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bn_\bo_\bn_\be\n+bool none() const\n+Returns true if no bits are set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\ba_\bn_\by\n+bool any() const\n+Returns true if any bits are set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bn_\bu_\bm_\bb_\be_\br\n+int block_number\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+std::vector< bool, Alloc >::const_reference const_reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BitSetVectorConstReference & operator=(const BitSetVectorConstReference\n+&b)=delete\n+disable assignment operator\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+friend std::ostream & operator<<(std::ostream &s, const\n+BitSetVectorConstReference &v)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:171\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+BitSetVectorConstReference< block_size, Alloc > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:415\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+BitSetVectorConstReference< block_size, Alloc > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:421\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+BitSetVectorReference< block_size, Alloc > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:427\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bB_\bi_\bt_\bS_\be_\bt_\bV_\be_\bc_\bt_\bo_\br_\bC_\bo_\bn_\bs_\bt_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>_\b _\b>_\b:_\b:\n+_\bt_\by_\bp_\be\n+BitSetVectorReference< block_size, Alloc > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bitsetvector.hh:433\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bg_\be_\bE_\br_\br_\bo_\br\n+Default exception class for range errors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+Get the 'const' version of a reference to a mutable object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+get the 'mutable' version of a reference to a const object\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Generic class for stl-conforming iterators for container classes with operator\n+[].\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bw_\ba_\br_\bd_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n+Base class for stl conformant forward iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:142\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00023.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00023.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: keywords.hh File Reference\n+dune-common: hybridutilities.hh File Reference\n \n \n \n \n \n \n \n@@ -70,36 +70,118 @@\n
    \n \n
    \n
    \n
    \n
    \n-Macros
    \n-
    keywords.hh File Reference
    \n+Classes |\n+Namespaces |\n+Functions |\n+Variables
    \n+
    hybridutilities.hh File Reference
    \n \n
    \n-\n-

    Definitions of several macros that conditionally make C++ syntax available. \n-More...

    \n-\n+
    #include <tuple>
    \n+#include <utility>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/typeutilities.hh>
    \n+#include <dune/common/fvector.hh>
    \n+#include <dune/common/indices.hh>
    \n+#include <dune/common/rangeutilities.hh>
    \n+
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+

    \n-Macros

    #define DUNE_INLINE_VARIABLE
     Preprocessor macro used for marking variables inline on supported compilers.
     
    #define DUNE_GENERALIZED_CONSTEXPR
     Preprocessor macro used for marking code as constexpr under the relaxed rules of C++14 if supported by the compiler.
     

    \n+Classes

    class  Dune::Hybrid::HybridFunctor< Functor >
     Adapter of a hybrid functor that maintains results hybrid. More...
     
    \n+\n+\n+\n+\n+\n+\n+

    \n+Namespaces

    namespace  Dune
     Dune namespace.
     
    namespace  Dune::Hybrid
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Functions

    template<class T >
    constexpr auto Dune::Hybrid::size (const T &t)
     Size query.
     
    template<class Container , class Index >
    constexpr decltype(auto) Dune::Hybrid::elementAt (Container &&c, Index &&i)
     Get element at given position from container.
     
    template<class Begin , class End >
    constexpr auto Dune::Hybrid::integralRange (const Begin &begin, const End &end)
     Create an integral range.
     
    template<class End >
    constexpr auto Dune::Hybrid::integralRange (const End &end)
     Create an integral range starting from 0.
     
    template<class Range , class F >
    constexpr void Dune::Hybrid::forEach (Range &&range, F &&f)
     Range based for loop.
     
    template<class Range , class T , class F >
    constexpr T Dune::Hybrid::accumulate (Range &&range, T value, F &&f)
     Accumulate values.
     
    template<class Condition , class IfFunc , class ElseFunc >
    decltype(auto) Dune::Hybrid::ifElse (const Condition &condition, IfFunc &&ifFunc, ElseFunc &&elseFunc)
     A conditional expression.
     
    template<class Condition , class IfFunc >
    void Dune::Hybrid::ifElse (const Condition &condition, IfFunc &&ifFunc)
     A conditional expression.
     
    template<class Functor >
    constexpr HybridFunctor< Functor > Dune::Hybrid::hybridFunctor (const Functor &)
     Returns an HybridFunctor adaptor.
     
    template<class T1 , class T2 >
    constexpr auto Dune::Hybrid::equals (T1 &&t1, T2 &&t2)
     Equality comparison.
     
    template<class Cases , class Value , class Branches , class ElseBranch >
    constexpr decltype(auto) Dune::Hybrid::switchCases (const Cases &cases, const Value &value, Branches &&branches, ElseBranch &&elseBranch)
     Switch statement.
     
    template<class Cases , class Value , class Branches >
    constexpr void Dune::Hybrid::switchCases (const Cases &cases, const Value &value, Branches &&branches)
     Switch statement.
     
    template<class T , class Value , class Branches >
    constexpr void Dune::Hybrid::switchCases (IntegralRange< T > range, const Value &value, Branches &&branches)
     Switch statement.
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Variables

    constexpr auto Dune::Hybrid::max = hybridFunctor(Impl::Max{})
     Function object that returns the greater of the given values.
     
    constexpr auto Dune::Hybrid::min = hybridFunctor(Impl::Min{})
     Function object that returns the smaller of the given values.
     
    constexpr auto Dune::Hybrid::plus = hybridFunctor(std::plus<>{})
     Function object for performing addition.
     
    constexpr auto Dune::Hybrid::minus = hybridFunctor(std::minus<>{})
     Function object for performing subtraction.
     
    constexpr auto Dune::Hybrid::equal_to = hybridFunctor(std::equal_to<>{})
     Function object for performing equality comparison.
     
    \n-

    Detailed Description

    \n-

    Definitions of several macros that conditionally make C++ syntax available.

    \n-

    This header contains several macros that enable C++ features depending on your compiler. Most of these features are optional and provide additional functionality like making code constexpr.

    \n-
    \n+\n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,28 +1,113 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bM_\ba_\bc_\br_\bo_\bs\n-keywords.hh File Reference\n-_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bU_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs \u00bb _\bC_\b+_\b+_\b _\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b _\ba_\bn_\bd_\b _\bb_\ba_\bc_\bk_\bp_\bo_\br_\bt_\bs\n-Definitions of several macros that conditionally make C++ syntax available.\n-_\bM_\bo_\br_\be_\b._\b._\b.\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n+hybridutilities.hh File Reference\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\br_\ba_\bn_\bg_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bI_\bN_\bL_\bI_\bN_\bE_\b__\bV_\bA_\bR_\bI_\bA_\bB_\bL_\bE\n-\u00a0 Preprocessor macro used for marking variables inline on supported\n- compilers.\n-\u00a0\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bN_\bE_\bR_\bA_\bL_\bI_\bZ_\bE_\bD_\b__\bC_\bO_\bN_\bS_\bT_\bE_\bX_\bP_\bR\n-\u00a0 Preprocessor macro used for marking code as constexpr under the\n- relaxed rules of C++14 if supported by the compiler.\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Definitions of several macros that conditionally make C++ syntax available.\n-This header contains several macros that enable C++ features depending on your\n-compiler. Most of these features are optional and provide additional\n-functionality like making code constexpr.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\b _\bF_\bu_\bn_\bc_\bt_\bo_\br_\b _\b>\n+\u00a0 Adapter of a hybrid functor that maintains results hybrid. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n+\u00a0 _\bD_\bu_\bn_\be namespace.\n+\u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd\n+\u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bi_\bz_\be (const T &t)\n+\u00a0 Size query.\n+\u00a0\n+template\n+ constexpr decltype(auto)\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt (Container &&c,\n+ Index &&i)\n+\u00a0 Get element at given position from\n+ container.\n+\u00a0\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be (const Begin\n+ &begin, const End &end)\n+\u00a0 Create an integral range.\n+\u00a0\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be (const End\n+ &end)\n+\u00a0 Create an integral range starting from 0.\n+\u00a0\n+template\n+ constexpr void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bf_\bo_\br_\bE_\ba_\bc_\bh (Range &&_\br_\ba_\bn_\bg_\be, F\n+ &&f)\n+\u00a0 Range based for loop.\n+\u00a0\n+template\n+ constexpr T\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be (Range &&_\br_\ba_\bn_\bg_\be, T\n+ value, F &&f)\n+\u00a0 Accumulate values.\n+\u00a0\n+template\n+ decltype(auto)\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bf_\bE_\bl_\bs_\be (const Condition\n+ &condition, IfFunc &&ifFunc, ElseFunc\n+ &&elseFunc)\n+\u00a0 A conditional expression.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bf_\bE_\bl_\bs_\be (const Condition\n+ &condition, IfFunc &&ifFunc)\n+\u00a0 A conditional expression.\n+\u00a0\n+template\n+constexpr _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br< Functor >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br (const Functor\n+ &)\n+\u00a0 Returns an _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br adaptor.\n+\u00a0\n+template\n+ constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs (T1 &&t1, T2 &&t2)\n+\u00a0 Equality comparison.\n+\u00a0\n+template\n+ constexpr decltype(auto)\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs (const Cases\n+ &cases, const Value &value, Branches\n+ &&branches, ElseBranch &&elseBranch)\n+\u00a0 Switch statement.\n+\u00a0\n+template\n+ constexpr void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs (const Cases\n+ &cases, const Value &value, Branches\n+ &&branches)\n+\u00a0 Switch statement.\n+\u00a0\n+template\n+ constexpr void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs (_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be< T\n+ > _\br_\ba_\bn_\bg_\be, const Value &value, Branches\n+ &&branches)\n+\u00a0 Switch statement.\n+\u00a0\n+V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n+constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\ba_\bx = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Max{})\n+\u00a0 Function object that returns the greater of the given values.\n+\u00a0\n+constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Min{})\n+\u00a0 Function object that returns the smaller of the given values.\n+\u00a0\n+constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bp_\bl_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::plus<>{})\n+\u00a0 Function object for performing addition.\n+\u00a0\n+constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::minus<>{})\n+\u00a0 Function object for performing subtraction.\n+\u00a0\n+constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\b__\bt_\bo = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::equal_to<>{})\n+\u00a0 Function object for performing equality comparison.\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00023_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00023_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: keywords.hh Source File\n+dune-common: hybridutilities.hh Source File\n \n \n \n \n \n \n \n@@ -74,41 +74,462 @@\n \n
    \n \n
    \n \n
    \n-
    keywords.hh
    \n+
    hybridutilities.hh
    \n
    \n
    \n-Go to the documentation of this file.
    1// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n-
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3#ifndef DUNE_COMMON_KEYWORDS_HH
    \n-
    4#define DUNE_COMMON_KEYWORDS_HH
    \n-
    5
    \n-
    6#warning This header is deprecated and will be removed after Dune 2.10. All key words are supported by C++ 17.
    \n+Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n+
    2// vi: set et ts=4 sw=2 sts=2:
    \n+
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n+
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n+
    5#ifndef DUNE_COMMON_HYBRIDUTILITIES_HH
    \n+
    6#define DUNE_COMMON_HYBRIDUTILITIES_HH
    \n
    7
    \n-
    20#if __cpp_inline_variables >= 201606
    \n-
    21#define DUNE_INLINE_VARIABLE inline
    \n-
    22#else
    \n-
    24
    \n-
    27#define DUNE_INLINE_VARIABLE
    \n-
    28#endif
    \n-
    29
    \n-
    30
    \n-
    31#if __cpp_constexpr >= 201304
    \n-
    32#define DUNE_GENERALIZED_CONSTEXPR constexpr
    \n-
    33#else
    \n-
    35
    \n-
    38#define DUNE_GENERALIZED_CONSTEXPR
    \n-
    39#endif
    \n-
    40
    \n-
    41
    \n-
    42#endif // DUNE_COMMON_KEYWORDS_HH
    \n+
    8#include <tuple>
    \n+
    9#include <utility>
    \n+
    10
    \n+\n+\n+\n+\n+\n+
    16
    \n+
    17
    \n+
    18
    \n+
    19namespace Dune {
    \n+
    \n+
    20namespace Hybrid {
    \n+
    21
    \n+
    22namespace Impl {
    \n+
    23
    \n+
    24 // Try if std::tuple_size is implemented for class
    \n+
    25 template<class T>
    \n+
    26 constexpr auto size(const T&, const PriorityTag<2>&)
    \n+
    27 -> decltype(std::integral_constant<std::size_t,std::tuple_size<T>::value>())
    \n+
    28 {
    \n+
    29 return {};
    \n+
    30 }
    \n+
    31
    \n+
    32 // Try if there's a static constexpr size() method
    \n+
    33 template<class T>
    \n+
    34 constexpr auto size(const T&, const PriorityTag<1>&)
    \n+
    35 -> decltype(std::integral_constant<std::size_t,T::size()>())
    \n+
    36 {
    \n+
    37 return {};
    \n+
    38 }
    \n+
    39
    \n+
    40 // As a last resort try if there's a non-static size()
    \n+
    41 template<class T>
    \n+
    42 constexpr auto size(const T& t, const PriorityTag<0>&)
    \n+
    43 {
    \n+
    44 return t.size();
    \n+
    45 }
    \n+
    46
    \n+
    47} // namespace Impl
    \n+
    48
    \n+
    49
    \n+
    50
    \n+
    72template<class T>
    \n+
    \n+
    73constexpr auto size(const T& t)
    \n+
    74{
    \n+
    75 return Impl::size(t, PriorityTag<42>());
    \n+
    76}
    \n+
    \n+
    77
    \n+
    78
    \n+
    79
    \n+
    80namespace Impl {
    \n+
    81
    \n+
    82 template<class Container, class Index,
    \n+
    83 std::enable_if_t<IsTuple<std::decay_t<Container>>::value, int> = 0>
    \n+
    84 constexpr decltype(auto) elementAt(Container&& c, Index&&, PriorityTag<2>)
    \n+
    85 {
    \n+
    86 return std::get<std::decay_t<Index>::value>(c);
    \n+
    87 }
    \n+
    88
    \n+
    89 template<class T, T... t, class Index>
    \n+
    90 constexpr decltype(auto) elementAt(std::integer_sequence<T, t...> c, Index, PriorityTag<1>)
    \n+
    91 {
    \n+
    92 return Dune::integerSequenceEntry(c, std::integral_constant<std::size_t, Index::value>());
    \n+
    93 }
    \n+
    94
    \n+
    95 template<class Container, class Index>
    \n+
    96 constexpr decltype(auto) elementAt(Container&& c, Index&& i, PriorityTag<0>)
    \n+
    97 {
    \n+
    98 return c[i];
    \n+
    99 }
    \n+
    100
    \n+
    101} // namespace Impl
    \n+
    102
    \n+
    103
    \n+
    104
    \n+
    125template<class Container, class Index>
    \n+
    \n+
    126constexpr decltype(auto) elementAt(Container&& c, Index&& i)
    \n+
    127{
    \n+
    128 return Impl::elementAt(std::forward<Container>(c), std::forward<Index>(i), PriorityTag<42>());
    \n+
    129}
    \n+
    \n+
    130
    \n+
    131
    \n+
    132
    \n+
    133namespace Impl {
    \n+
    134
    \n+
    135 template<class Begin, class End,
    \n+
    136 std::enable_if_t<IsIntegralConstant<Begin>::value and IsIntegralConstant<End>::value, int> = 0>
    \n+
    137 constexpr auto integralRange(const Begin& /*begin*/, const End& /*end*/, const PriorityTag<1>&)
    \n+
    138 {
    \n+
    139 static_assert(Begin::value <= End::value, "You cannot create an integralRange where end<begin");
    \n+\n+
    141 }
    \n+
    142
    \n+
    143 template<class Begin, class End>
    \n+
    144 constexpr auto integralRange(const Begin& begin, const End& end, const PriorityTag<0>&)
    \n+
    145 {
    \n+
    146 assert(begin<=end && "You cannot create an integralRange where end<begin");
    \n+
    147 return Dune::IntegralRange<End>(begin, end);
    \n+
    148 }
    \n+
    149
    \n+
    150} // namespace Impl
    \n+
    151
    \n+
    152
    \n+
    153
    \n+
    171template<class Begin, class End>
    \n+
    \n+
    172constexpr auto integralRange(const Begin& begin, const End& end)
    \n+
    173{
    \n+
    174 return Impl::integralRange(begin, end, PriorityTag<42>());
    \n+
    175}
    \n+
    \n+
    176
    \n+
    190template<class End>
    \n+
    \n+
    191constexpr auto integralRange(const End& end)
    \n+
    192{
    \n+
    193 return Impl::integralRange(Dune::Indices::_0, end, PriorityTag<42>());
    \n+
    194}
    \n+
    \n+
    195
    \n+
    196
    \n+
    197
    \n+
    198namespace Impl {
    \n+
    199
    \n+
    200 template<class T>
    \n+
    201 constexpr void evaluateFoldExpression(std::initializer_list<T>&&)
    \n+
    202 {}
    \n+
    203
    \n+
    204 template<class Range, class F, class Index, Index... i>
    \n+
    205 constexpr void forEachIndex(Range&& range, F&& f, std::integer_sequence<Index, i...>)
    \n+
    206 {
    \n+
    207 evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
    \n+
    208 }
    \n+
    209
    \n+
    210 template<class F, class Index, Index... i>
    \n+
    211 constexpr void forEach(std::integer_sequence<Index, i...> /*range*/, F&& f, PriorityTag<2>)
    \n+
    212 {
    \n+
    213 evaluateFoldExpression<int>({(f(std::integral_constant<Index,i>()), 0)...});
    \n+
    214 }
    \n+
    215
    \n+
    216
    \n+
    217 template<class Range, class F,
    \n+
    218 std::enable_if_t<IsIntegralConstant<decltype(Hybrid::size(std::declval<Range>()))>::value, int> = 0>
    \n+
    219 constexpr void forEach(Range&& range, F&& f, PriorityTag<1>)
    \n+
    220 {
    \n+
    221 auto size = Hybrid::size(range);
    \n+
    222 auto indices = std::make_index_sequence<size>();
    \n+
    223 (forEachIndex)(std::forward<Range>(range), std::forward<F>(f), indices);
    \n+
    224 }
    \n+
    225
    \n+
    226 template<class Range, class F>
    \n+
    227 constexpr void forEach(Range&& range, F&& f, PriorityTag<0>)
    \n+
    228 {
    \n+
    229 for(auto&& e : range)
    \n+
    230 f(e);
    \n+
    231 }
    \n+
    232
    \n+
    233} // namespace Impl
    \n+
    234
    \n+
    235
    \n+
    236
    \n+
    255template<class Range, class F>
    \n+
    \n+
    256constexpr void forEach(Range&& range, F&& f)
    \n+
    257{
    \n+
    258 Impl::forEach(std::forward<Range>(range), std::forward<F>(f), PriorityTag<42>());
    \n+
    259}
    \n+
    \n+
    260
    \n+
    261
    \n+
    262
    \n+
    278template<class Range, class T, class F>
    \n+
    \n+
    279constexpr T accumulate(Range&& range, T value, F&& f)
    \n+
    280{
    \n+
    281 forEach(std::forward<Range>(range), [&](auto&& entry) {
    \n+
    282 value = f(value, entry);
    \n+
    283 });
    \n+
    284 return value;
    \n+
    285}
    \n+
    \n+
    286
    \n+
    287
    \n+
    288
    \n+
    289namespace Impl {
    \n+
    290
    \n+
    291 struct Id {
    \n+
    292 template<class T>
    \n+
    293 constexpr T operator()(T&& x) const {
    \n+
    294 return std::forward<T>(x);
    \n+
    295 }
    \n+
    296 };
    \n+
    297
    \n+
    298 template<class IfFunc, class ElseFunc>
    \n+
    299 constexpr decltype(auto) ifElse(std::true_type, IfFunc&& ifFunc, ElseFunc&& /*elseFunc*/)
    \n+
    300 {
    \n+
    301 return ifFunc(Id{});
    \n+
    302 }
    \n+
    303
    \n+
    304 template<class IfFunc, class ElseFunc>
    \n+
    305 constexpr decltype(auto) ifElse(std::false_type, IfFunc&& /*ifFunc*/, ElseFunc&& elseFunc)
    \n+
    306 {
    \n+
    307 return elseFunc(Id{});
    \n+
    308 }
    \n+
    309
    \n+
    310 template<class IfFunc, class ElseFunc>
    \n+
    311 decltype(auto) ifElse(const bool& condition, IfFunc&& ifFunc, ElseFunc&& elseFunc)
    \n+
    312 {
    \n+
    313 if (condition)
    \n+
    314 return ifFunc(Id{});
    \n+
    315 else
    \n+
    316 return elseFunc(Id{});
    \n+
    317 }
    \n+
    318
    \n+
    319} // namespace Impl
    \n+
    320
    \n+
    321
    \n+
    322
    \n+
    343template<class Condition, class IfFunc, class ElseFunc>
    \n+
    \n+
    344decltype(auto) ifElse(const Condition& condition, IfFunc&& ifFunc, ElseFunc&& elseFunc)
    \n+
    345{
    \n+
    346 return Impl::ifElse(condition, std::forward<IfFunc>(ifFunc), std::forward<ElseFunc>(elseFunc));
    \n+
    347}
    \n+
    \n+
    348
    \n+
    356template<class Condition, class IfFunc>
    \n+
    \n+
    357void ifElse(const Condition& condition, IfFunc&& ifFunc)
    \n+
    358{
    \n+
    359 ifElse(condition, std::forward<IfFunc>(ifFunc), [](auto&&) {});
    \n+
    360}
    \n+
    \n+
    361
    \n+
    362
    \n+
    363
    \n+
    364namespace Impl {
    \n+
    365
    \n+
    366 struct Max {
    \n+
    367 template<class... Args>
    \n+
    368 constexpr decltype(auto) operator()(Args&&... args) const
    \n+
    369 {
    \n+
    370 using T = std::common_type_t<Args...>;
    \n+
    371 return std::max({T(args)...});
    \n+
    372 }
    \n+
    373 };
    \n+
    374
    \n+
    375 struct Min {
    \n+
    376 template<class... Args>
    \n+
    377 constexpr decltype(auto) operator()(Args&&... args) const
    \n+
    378 {
    \n+
    379 using T = std::common_type_t<Args...>;
    \n+
    380 return std::min({T(args)...});
    \n+
    381 }
    \n+
    382 };
    \n+
    383
    \n+
    384} // namespace Impl
    \n+
    385
    \n+
    386
    \n+
    417template<class Functor>
    \n+
    \n+\n+
    419
    \n+
    420 static_assert(std::is_default_constructible_v<Functor>,
    \n+
    421 "Operator in integral expressions shall be constexpr default constructible");
    \n+
    422
    \n+
    423 inline static constexpr Functor _functor = Functor{};
    \n+
    424
    \n+
    425public:
    \n+
    426
    \n+
    436 template<class... Args>
    \n+
    \n+
    437 constexpr decltype(auto) operator()(const Args&... args) const
    \n+
    438 {
    \n+
    439 if constexpr (std::conjunction_v<IsCompileTimeConstant<Args>...>)
    \n+
    440 {
    \n+
    441 constexpr auto result = _functor(Args::value...);
    \n+
    442 // apply functor on integral constant arguments and return an integral constant of the result
    \n+
    443 // this is guaranteed to be evaluated at compile-time
    \n+
    444 return std::integral_constant<std::remove_cv_t<decltype(result)>,result>{};
    \n+
    445 } else {
    \n+
    446 // apply functor directly on arguments and return the result of the functor
    \n+
    447 // (integral constants are likely to be casted to underlying type)
    \n+
    448 // this not is guaranteed to be evaluated at compile-time although is possible if expression is constexpr
    \n+
    449 return _functor(args...);
    \n+
    450 }
    \n+
    451 }
    \n+
    \n+
    452};
    \n+
    \n+
    453
    \n+
    458template<class Functor>
    \n+
    \n+
    459constexpr HybridFunctor<Functor> hybridFunctor(const Functor&)
    \n+
    460{
    \n+
    461 return {};
    \n+
    462}
    \n+
    \n+
    463
    \n+
    484inline constexpr auto max = hybridFunctor(Impl::Max{});
    \n+
    485
    \n+
    506inline constexpr auto min = hybridFunctor(Impl::Min{});
    \n+
    507
    \n+
    528inline constexpr auto plus = hybridFunctor(std::plus<>{});
    \n+
    529
    \n+
    550inline constexpr auto minus = hybridFunctor(std::minus<>{});
    \n+
    551
    \n+
    572inline constexpr auto equal_to = hybridFunctor(std::equal_to<>{});
    \n+
    573
    \n+
    574
    \n+
    586template<class T1, class T2>
    \n+
    \n+
    587[[deprecated("Use Hybrid::equal_to instead!")]] constexpr auto equals(T1&& t1, T2&& t2){
    \n+
    588 return equal_to(std::forward<T1>(t1), std::forward<T2>(t2));
    \n+
    589}
    \n+
    \n+
    590
    \n+
    591
    \n+
    592namespace Impl {
    \n+
    593
    \n+
    594 // This overload is selected if the passed value is already a compile time constant.
    \n+
    595 template<class Result, class T, T t0, T... tt, class ValueType, ValueType value, class Branches, class ElseBranch>
    \n+
    596 constexpr Result switchCases(std::integer_sequence<T, t0, tt...>, const std::integral_constant<ValueType, value>& /*value*/, Branches&& branches, ElseBranch&& elseBranch)
    \n+
    597 {
    \n+
    598 // In case we pass a value known at compile time, we no longer have to do
    \n+
    599 // a dynamic to static dispatch via recursion. The only thing that's left
    \n+
    600 // is to check if the value is contained in the passed range.
    \n+
    601 // If this is true, we have to pass it to the branches callback
    \n+
    602 // as an appropriate integral_constant type. Otherwise we have to
    \n+
    603 // execute the else callback.
    \n+
    604 if constexpr (((t0 == value) || ... || (tt == value)))
    \n+
    605 return branches(std::integral_constant<T, value>{});
    \n+
    606 else
    \n+
    607 return elseBranch();
    \n+
    608 }
    \n+
    609
    \n+
    610 // This overload is selected if the passed value is dynamic.
    \n+
    611 template<class Result, class T, class Value, class Branches, class ElseBranch>
    \n+
    612 constexpr Result switchCases(std::integer_sequence<T>, const Value& /*value*/, Branches&& /*branches*/, ElseBranch&& elseBranch)
    \n+
    613 {
    \n+
    614 return elseBranch();
    \n+
    615 }
    \n+
    616
    \n+
    617 template<class Result, class T, T t0, T... tt, class Value, class Branches, class ElseBranch>
    \n+
    618 constexpr Result switchCases(std::integer_sequence<T, t0, tt...>, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n+
    619 {
    \n+
    620 if (t0 == value)
    \n+
    621 return branches(std::integral_constant<T, t0>());
    \n+
    622 else
    \n+
    623 return Impl::switchCases<Result>(std::integer_sequence<T, tt...>(), value, branches, elseBranch);
    \n+
    624 }
    \n+
    625
    \n+
    626 // This overload is selected if the range of cases is an IntegralRange
    \n+
    627 template <class Result, class T, class Value, class Branches, class ElseBranch>
    \n+
    628 constexpr Result switchCases(IntegralRange<T> range, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n+
    629 {
    \n+
    630 return range.contains(value) ? branches(T(value)) : elseBranch();
    \n+
    631 }
    \n+
    632
    \n+
    633 // This overload is selected if the range of cases is a StaticIntegralRange
    \n+
    634 template <class Result, class T, T to, T from, class Value, class Branches, class ElseBranch>
    \n+
    635 constexpr Result switchCases(StaticIntegralRange<T, to, from> range, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n+
    636 {
    \n+
    637 using seq = typename decltype(range)::integer_sequence;
    \n+
    638 return Impl::switchCases<Result>(seq{}, value, branches, elseBranch);
    \n+
    639 }
    \n+
    640
    \n+
    641} // namespace Impl
    \n+
    642
    \n+
    643
    \n+
    644
    \n+
    672template<class Cases, class Value, class Branches, class ElseBranch>
    \n+
    \n+
    673constexpr decltype(auto) switchCases(const Cases& cases, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n+
    674{
    \n+
    675 return Impl::switchCases<decltype(elseBranch())>(cases, value, std::forward<Branches>(branches), std::forward<ElseBranch>(elseBranch));
    \n+
    676}
    \n+
    \n+
    677
    \n+
    697template<class Cases, class Value, class Branches>
    \n+
    \n+
    698constexpr void switchCases(const Cases& cases, const Value& value, Branches&& branches)
    \n+
    699{
    \n+
    700 Impl::switchCases<void>(cases, value, std::forward<Branches>(branches),
    \n+
    701 []{ assert(false && "value not found in range"); });
    \n+
    702}
    \n+
    \n+
    703
    \n+
    722template <class T, class Value, class Branches>
    \n+
    \n+
    723constexpr void switchCases(IntegralRange<T> range, const Value& value, Branches&& branches)
    \n+
    724{
    \n+
    725 assert(range.contains(value) && "value not found in range");
    \n+
    726 branches(T(value));
    \n+
    727}
    \n+
    \n+
    728
    \n+
    729} // namespace Hybrid
    \n+
    \n+
    730} // namespace Dune
    \n+
    731
    \n+
    732
    \n+
    733#endif // #ifndef DUNE_COMMON_HYBRIDUTILITIES_HH
    \n+
    Traits for type conversions and type information.
    \n+
    Utilities for reduction like operations on ranges.
    \n+\n+
    Utilities for type computations, constraining overloads, ...
    \n+
    Implements a vector constructed from a given type representing a field and a compile-time given size.
    \n+
    constexpr index_constant< 0 > _0
    Compile time index with value 0.
    Definition indices.hh:52
    \n+
    static StaticIntegralRange< T, to, from > range(std::integral_constant< T, from >, std::integral_constant< T, to >) noexcept
    Definition rangeutilities.hh:312
    \n+
    constexpr auto size(const T &t)
    Size query.
    Definition hybridutilities.hh:73
    \n+
    constexpr auto minus
    Function object for performing subtraction.
    Definition hybridutilities.hh:550
    \n+
    constexpr auto equals(T1 &&t1, T2 &&t2)
    Equality comparison.
    Definition hybridutilities.hh:587
    \n+
    constexpr void forEach(Range &&range, F &&f)
    Range based for loop.
    Definition hybridutilities.hh:256
    \n+
    constexpr auto equal_to
    Function object for performing equality comparison.
    Definition hybridutilities.hh:572
    \n+
    constexpr decltype(auto) switchCases(const Cases &cases, const Value &value, Branches &&branches, ElseBranch &&elseBranch)
    Switch statement.
    Definition hybridutilities.hh:673
    \n+
    constexpr auto max
    Function object that returns the greater of the given values.
    Definition hybridutilities.hh:484
    \n+
    constexpr auto plus
    Function object for performing addition.
    Definition hybridutilities.hh:528
    \n+
    constexpr auto min
    Function object that returns the smaller of the given values.
    Definition hybridutilities.hh:506
    \n+
    decltype(auto) ifElse(const Condition &condition, IfFunc &&ifFunc, ElseFunc &&elseFunc)
    A conditional expression.
    Definition hybridutilities.hh:344
    \n+
    constexpr auto integralRange(const Begin &begin, const End &end)
    Create an integral range.
    Definition hybridutilities.hh:172
    \n+
    constexpr decltype(auto) elementAt(Container &&c, Index &&i)
    Get element at given position from container.
    Definition hybridutilities.hh:126
    \n+
    constexpr T accumulate(Range &&range, T value, F &&f)
    Accumulate values.
    Definition hybridutilities.hh:279
    \n+
    constexpr auto integerSequenceEntry(std::integer_sequence< T, t... >, std::integral_constant< std::size_t, index > i)
    Get entry of std::integer_sequence.
    Definition typetraits.hh:492
    \n+
    Dune namespace.
    Definition alignedallocator.hh:13
    \n+
    constexpr HybridFunctor< Functor > hybridFunctor(const Functor &)
    Returns an HybridFunctor adaptor.
    Definition hybridutilities.hh:459
    \n+
    Definition binaryfunctions.hh:34
    \n+
    Adapter of a hybrid functor that maintains results hybrid.
    Definition hybridutilities.hh:418
    \n+
    dynamic integer range for use in range-based for loops
    Definition rangeutilities.hh:177
    \n+
    static integer range for use in range-based for loops
    Definition rangeutilities.hh:230
    \n+
    Check if T is an std::integral_constant<I, i>
    Definition typetraits.hh:384
    \n+
    Helper class for tagging priorities.
    Definition typeutilities.hh:73
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,36 +1,535 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-keywords.hh\n+hybridutilities.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-1// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n+1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+2// vi: set et ts=4 sw=2 sts=2:\n+3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n-2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#ifndef DUNE_COMMON_KEYWORDS_HH\n-4#define DUNE_COMMON_KEYWORDS_HH\n-5\n-6#warning This header is deprecated and will be removed after Dune 2.10. All\n-key words are supported by C++ 17.\n+4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n+5#ifndef DUNE_COMMON_HYBRIDUTILITIES_HH\n+6#define DUNE_COMMON_HYBRIDUTILITIES_HH\n 7\n-20#if __cpp_inline_variables >= 201606\n-21#define DUNE_INLINE_VARIABLE inline\n-22#else\n-24\n-_\b2_\b7#define DUNE_INLINE_VARIABLE\n-28#endif\n-29\n-30\n-31#if __cpp_constexpr >= 201304\n-32#define DUNE_GENERALIZED_CONSTEXPR constexpr\n-33#else\n-35\n-_\b3_\b8#define DUNE_GENERALIZED_CONSTEXPR\n-39#endif\n-40\n-41\n-42#endif // DUNE_COMMON_KEYWORDS_HH\n+8#include \n+9#include \n+10\n+11#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n+13#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+14#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n+15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\br_\ba_\bn_\bg_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n+16\n+17\n+18\n+19namespace _\bD_\bu_\bn_\be {\n+_\b2_\b0namespace Hybrid {\n+21\n+22namespace Impl {\n+23\n+24 // Try if std::tuple_size is implemented for class\n+25 template\n+26 constexpr auto size(const T&, const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b2_\b>&)\n+27 -> decltype(std::integral_constant::value>())\n+28 {\n+29 return {};\n+30 }\n+31\n+32 // Try if there's a static constexpr size() method\n+33 template\n+34 constexpr auto size(const T&, const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b1_\b>&)\n+35 -> decltype(std::integral_constant())\n+36 {\n+37 return {};\n+38 }\n+39\n+40 // As a last resort try if there's a non-static size()\n+41 template\n+42 constexpr auto size(const T& t, const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b0_\b>&)\n+43 {\n+44 return t.size();\n+45 }\n+46\n+47} // namespace Impl\n+48\n+49\n+50\n+72template\n+_\b7_\b3constexpr auto _\bs_\bi_\bz_\be(const T& t)\n+74{\n+75 return Impl::size(t, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n+76}\n+77\n+78\n+79\n+80namespace Impl {\n+81\n+82 template>::value, int> = 0>\n+84 constexpr decltype(auto) elementAt(Container&& c, Index&&, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b2_\b>)\n+85 {\n+86 return std::get::value>(c);\n+87 }\n+88\n+89 template\n+90 constexpr decltype(auto) elementAt(std::integer_sequence c, Index,\n+PriorityTag<1>)\n+91 {\n+92 return _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by(c, std::integral_constant());\n+93 }\n+94\n+95 template\n+96 constexpr decltype(auto) elementAt(Container&& c, Index&& i, PriorityTag<0>)\n+97 {\n+98 return c[i];\n+99 }\n+100\n+101} // namespace Impl\n+102\n+103\n+104\n+125template\n+_\b1_\b2_\b6constexpr decltype(auto) _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(Container&& c, Index&& i)\n+127{\n+128 return Impl::elementAt(std::forward(c), std::forward(i),\n+_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n+129}\n+130\n+131\n+132\n+133namespace Impl {\n+134\n+135 template::value and\n+_\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt_\b<_\bE_\bn_\bd_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be, int> = 0>\n+137 constexpr auto integralRange(const Begin& /*begin*/, const End& /*end*/,\n+const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b1_\b>&)\n+138 {\n+139 static_assert(Begin::value <= End::value, \"You cannot create an\n+integralRange where end();\n+141 }\n+142\n+143 template\n+144 constexpr auto integralRange(const Begin& begin, const End& end, const\n+PriorityTag<0>&)\n+145 {\n+146 assert(begin<=end && \"You cannot create an integralRange where end(begin, end);\n+148 }\n+149\n+150} // namespace Impl\n+151\n+152\n+153\n+171template\n+_\b1_\b7_\b2constexpr auto _\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be(const Begin& begin, const End& end)\n+173{\n+174 return Impl::integralRange(begin, end, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n+175}\n+176\n+190template\n+_\b1_\b9_\b1constexpr auto _\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be(const End& end)\n+192{\n+193 return Impl::integralRange(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\b__\b0, end, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n+194}\n+195\n+196\n+197\n+198namespace Impl {\n+199\n+200 template\n+201 constexpr void evaluateFoldExpression(std::initializer_list&&)\n+202 {}\n+203\n+204 template\n+205 constexpr void forEachIndex(Range&& _\br_\ba_\bn_\bg_\be, F&& f, std::\n+integer_sequence)\n+206 {\n+207 evaluateFoldExpression({(f(_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\br_\ba_\bn_\bg_\be, std::\n+integral_constant())), 0)...});\n+208 }\n+209\n+210 template\n+211 constexpr void forEach(std::integer_sequence /*range*/, F&& f,\n+PriorityTag<2>)\n+212 {\n+213 evaluateFoldExpression({(f(std::integral_constant()),\n+0)...});\n+214 }\n+215\n+216\n+217 template()))>::value, int> = 0>\n+219 constexpr void forEach(Range&& _\br_\ba_\bn_\bg_\be, F&& f, PriorityTag<1>)\n+220 {\n+221 auto size = _\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bi_\bz_\be(_\br_\ba_\bn_\bg_\be);\n+222 auto indices = std::make_index_sequence();\n+223 (forEachIndex)(std::forward(_\br_\ba_\bn_\bg_\be), std::forward(f), indices);\n+224 }\n+225\n+226 template\n+227 constexpr void forEach(Range&& _\br_\ba_\bn_\bg_\be, F&& f, PriorityTag<0>)\n+228 {\n+229 for(auto&& e : _\br_\ba_\bn_\bg_\be)\n+230 f(e);\n+231 }\n+232\n+233} // namespace Impl\n+234\n+235\n+236\n+255template\n+_\b2_\b5_\b6constexpr void _\bf_\bo_\br_\bE_\ba_\bc_\bh(Range&& _\br_\ba_\bn_\bg_\be, F&& f)\n+257{\n+258 Impl::forEach(std::forward(_\br_\ba_\bn_\bg_\be), std::forward(f),\n+_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n+259}\n+260\n+261\n+262\n+278template\n+_\b2_\b7_\b9constexpr T _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be(Range&& _\br_\ba_\bn_\bg_\be, T value, F&& f)\n+280{\n+281 _\bf_\bo_\br_\bE_\ba_\bc_\bh(std::forward(_\br_\ba_\bn_\bg_\be), [&](auto&& entry) {\n+282 value = f(value, entry);\n+283 });\n+284 return value;\n+285}\n+286\n+287\n+288\n+289namespace Impl {\n+290\n+291 struct Id {\n+292 template\n+293 constexpr T operator()(T&& x) const {\n+294 return std::forward(x);\n+295 }\n+296 };\n+297\n+298 template\n+299 constexpr decltype(auto) ifElse(std::true_type, IfFunc&& ifFunc, ElseFunc&&\n+/*elseFunc*/)\n+300 {\n+301 return ifFunc(Id{});\n+302 }\n+303\n+304 template\n+305 constexpr decltype(auto) ifElse(std::false_type, IfFunc&& /*ifFunc*/,\n+ElseFunc&& elseFunc)\n+306 {\n+307 return elseFunc(Id{});\n+308 }\n+309\n+310 template\n+311 decltype(auto) ifElse(const bool& condition, IfFunc&& ifFunc, ElseFunc&&\n+elseFunc)\n+312 {\n+313 if (condition)\n+314 return ifFunc(Id{});\n+315 else\n+316 return elseFunc(Id{});\n+317 }\n+318\n+319} // namespace Impl\n+320\n+321\n+322\n+343template\n+_\b3_\b4_\b4decltype(auto) _\bi_\bf_\bE_\bl_\bs_\be(const Condition& condition, IfFunc&& ifFunc,\n+ElseFunc&& elseFunc)\n+345{\n+346 return Impl::ifElse(condition, std::forward(ifFunc), std::\n+forward(elseFunc));\n+347}\n+348\n+356template\n+_\b3_\b5_\b7void _\bi_\bf_\bE_\bl_\bs_\be(const Condition& condition, IfFunc&& ifFunc)\n+358{\n+359 _\bi_\bf_\bE_\bl_\bs_\be(condition, std::forward(ifFunc), [](auto&&) {});\n+360}\n+361\n+362\n+363\n+364namespace Impl {\n+365\n+366 struct _\bM_\ba_\bx {\n+367 template\n+368 constexpr decltype(auto) operator()(Args&&... args) const\n+369 {\n+370 using T = std::common_type_t;\n+371 return std::max({T(args)...});\n+372 }\n+373 };\n+374\n+375 struct Min {\n+376 template\n+377 constexpr decltype(auto) operator()(Args&&... args) const\n+378 {\n+379 using T = std::common_type_t;\n+380 return std::min({T(args)...});\n+381 }\n+382 };\n+383\n+384} // namespace Impl\n+385\n+386\n+417template\n+_\b4_\b1_\b8class _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br {\n+419\n+420 static_assert(std::is_default_constructible_v,\n+421 \"Operator in integral expressions shall be constexpr default\n+constructible\");\n+422\n+423 inline static constexpr Functor _functor = Functor{};\n+424\n+425public:\n+426\n+436 template\n+_\b4_\b3_\b7 constexpr decltype(auto) operator()(const Args&... args) const\n+438 {\n+439 if constexpr (std::conjunction_v...>)\n+440 {\n+441 constexpr auto result = _functor(Args::value...);\n+442 // apply functor on integral constant arguments and return an integral\n+constant of the result\n+443 // this is guaranteed to be evaluated at compile-time\n+444 return std::integral_constant,result>{};\n+445 } else {\n+446 // apply functor directly on arguments and return the result of the functor\n+447 // (integral constants are likely to be casted to underlying type)\n+448 // this not is guaranteed to be evaluated at compile-time although is\n+possible if expression is constexpr\n+449 return _functor(args...);\n+450 }\n+451 }\n+452};\n+453\n+458template\n+_\b4_\b5_\b9constexpr _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b> _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(const Functor&)\n+460{\n+461 return {};\n+462}\n+463\n+_\b4_\b8_\b4inline constexpr auto _\bm_\ba_\bx = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Max{});\n+485\n+_\b5_\b0_\b6inline constexpr auto _\bm_\bi_\bn = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Min{});\n+507\n+_\b5_\b2_\b8inline constexpr auto _\bp_\bl_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::plus<>{});\n+529\n+_\b5_\b5_\b0inline constexpr auto _\bm_\bi_\bn_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::minus<>{});\n+551\n+_\b5_\b7_\b2inline constexpr auto _\be_\bq_\bu_\ba_\bl_\b__\bt_\bo = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::equal_to<>{});\n+573\n+574\n+586template\n+_\b5_\b8_\b7[[deprecated(\"Use Hybrid::equal_to instead!\")]] constexpr auto _\be_\bq_\bu_\ba_\bl_\bs(T1&&\n+t1, T2&& t2){\n+588 return _\be_\bq_\bu_\ba_\bl_\b__\bt_\bo(std::forward(t1), std::forward(t2));\n+589}\n+590\n+591\n+592namespace Impl {\n+593\n+594 // This overload is selected if the passed value is already a compile time\n+constant.\n+595 template\n+596 constexpr Result switchCases(std::integer_sequence, const\n+std::integral_constant& /*value*/, Branches&& branches,\n+ElseBranch&& elseBranch)\n+597 {\n+598 // In case we pass a value known at compile time, we no longer have to do\n+599 // a dynamic to static dispatch via recursion. The only thing that's left\n+600 // is to check if the value is contained in the passed range.\n+601 // If this is true, we have to pass it to the branches callback\n+602 // as an appropriate integral_constant type. Otherwise we have to\n+603 // execute the else callback.\n+604 if constexpr (((t0 == value) || ... || (tt == value)))\n+605 return branches(std::integral_constant{});\n+606 else\n+607 return elseBranch();\n+608 }\n+609\n+610 // This overload is selected if the passed value is dynamic.\n+611 template\n+612 constexpr Result switchCases(std::integer_sequence, const Value& /\n+*value*/, Branches&& /*branches*/, ElseBranch&& elseBranch)\n+613 {\n+614 return elseBranch();\n+615 }\n+616\n+617 template\n+618 constexpr Result switchCases(std::integer_sequence, const\n+Value& value, Branches&& branches, ElseBranch&& elseBranch)\n+619 {\n+620 if (t0 == value)\n+621 return branches(std::integral_constant());\n+622 else\n+623 return Impl::switchCases(std::integer_sequence(), value,\n+branches, elseBranch);\n+624 }\n+625\n+626 // This overload is selected if the range of cases is an IntegralRange\n+627 template \n+628 constexpr Result switchCases(IntegralRange _\br_\ba_\bn_\bg_\be, const Value& value,\n+Branches&& branches, ElseBranch&& elseBranch)\n+629 {\n+630 return _\br_\ba_\bn_\bg_\be.contains(value) ? branches(T(value)) : elseBranch();\n+631 }\n+632\n+633 // This overload is selected if the range of cases is a StaticIntegralRange\n+634 template \n+635 constexpr Result switchCases(StaticIntegralRange _\br_\ba_\bn_\bg_\be, const\n+Value& value, Branches&& branches, ElseBranch&& elseBranch)\n+636 {\n+637 using seq = typename decltype(_\br_\ba_\bn_\bg_\be)::integer_sequence;\n+638 return Impl::switchCases(seq{}, value, branches, elseBranch);\n+639 }\n+640\n+641} // namespace Impl\n+642\n+643\n+644\n+672template\n+_\b6_\b7_\b3constexpr decltype(auto) _\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs(const Cases& cases, const Value& value,\n+Branches&& branches, ElseBranch&& elseBranch)\n+674{\n+675 return Impl::switchCases(cases, value, std::\n+forward(branches), std::forward(elseBranch));\n+676}\n+677\n+697template\n+_\b6_\b9_\b8constexpr void _\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs(const Cases& cases, const Value& value,\n+Branches&& branches)\n+699{\n+700 Impl::switchCases(cases, value, std::forward(branches),\n+701 []{ assert(false && \"value not found in range\"); });\n+702}\n+703\n+722template \n+_\b7_\b2_\b3constexpr void _\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs(_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be_\b<_\bT_\b> _\br_\ba_\bn_\bg_\be, const Value& value,\n+Branches&& branches)\n+724{\n+725 assert(_\br_\ba_\bn_\bg_\be.contains(value) && \"value not found in range\");\n+726 branches(T(value));\n+727}\n+728\n+729} // namespace Hybrid\n+730} // namespace Dune\n+731\n+732\n+733#endif // #ifndef DUNE_COMMON_HYBRIDUTILITIES_HH\n+_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n+Traits for type conversions and type information.\n+_\br_\ba_\bn_\bg_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh\n+Utilities for reduction like operations on ranges.\n+_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh\n+_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh\n+Utilities for type computations, constraining overloads, ...\n+_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+Implements a vector constructed from a given type representing a field and a\n+compile-time given size.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\b__\b0\n+constexpr index_constant< 0 > _0\n+Compile time index with value 0.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indices.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\ba_\bn_\bg_\be\n+static StaticIntegralRange< T, to, from > range(std::integral_constant< T, from\n+>, std::integral_constant< T, to >) noexcept\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn rangeutilities.hh:312\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bi_\bz_\be\n+constexpr auto size(const T &t)\n+Size query.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn_\bu_\bs\n+constexpr auto minus\n+Function object for performing subtraction.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:550\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+constexpr auto equals(T1 &&t1, T2 &&t2)\n+Equality comparison.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:587\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bf_\bo_\br_\bE_\ba_\bc_\bh\n+constexpr void forEach(Range &&range, F &&f)\n+Range based for loop.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:256\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\b__\bt_\bo\n+constexpr auto equal_to\n+Function object for performing equality comparison.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:572\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs\n+constexpr decltype(auto) switchCases(const Cases &cases, const Value &value,\n+Branches &&branches, ElseBranch &&elseBranch)\n+Switch statement.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:673\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\ba_\bx\n+constexpr auto max\n+Function object that returns the greater of the given values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bp_\bl_\bu_\bs\n+constexpr auto plus\n+Function object for performing addition.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:528\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn\n+constexpr auto min\n+Function object that returns the smaller of the given values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bf_\bE_\bl_\bs_\be\n+decltype(auto) ifElse(const Condition &condition, IfFunc &&ifFunc, ElseFunc\n+&&elseFunc)\n+A conditional expression.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:344\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be\n+constexpr auto integralRange(const Begin &begin, const End &end)\n+Create an integral range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n+constexpr decltype(auto) elementAt(Container &&c, Index &&i)\n+Get element at given position from container.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n+constexpr T accumulate(Range &&range, T value, F &&f)\n+Accumulate values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:279\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by\n+constexpr auto integerSequenceEntry(std::integer_sequence< T, t... >, std::\n+integral_constant< std::size_t, index > i)\n+Get entry of std::integer_sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:492\n+_\bD_\bu_\bn_\be\n+Dune namespace.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n+constexpr HybridFunctor< Functor > hybridFunctor(const Functor &)\n+Returns an HybridFunctor adaptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:459\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn binaryfunctions.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n+Adapter of a hybrid functor that maintains results hybrid.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:418\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be\n+dynamic integer range for use in range-based for loops\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn rangeutilities.hh:177\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\ba_\bt_\bi_\bc_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be\n+static integer range for use in range-based for loops\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn rangeutilities.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt\n+Check if T is an std::integral_constant\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:384\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg\n+Helper class for tagging priorities.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typeutilities.hh:73\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00026.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00026.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: classname.hh File Reference\n+dune-common: referencehelper.hh File Reference\n \n \n \n \n \n \n \n@@ -71,48 +71,59 @@\n \n
    \n \n
    \n \n-
    classname.hh File Reference
    \n+Typedefs |\n+Functions |\n+Variables
    \n+
    referencehelper.hh File Reference
    \n \n
    \n-\n-

    A free function to provide the demangled class name of a given object or type as a string. \n-More...

    \n-
    #include <cstdlib>
    \n-#include <memory>
    \n-#include <string>
    \n-#include <typeinfo>
    \n-#include <type_traits>
    \n+
    #include <type_traits>
    \n+#include <functional>
    \n
    \n

    Go to the source code of this file.

    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n+\n+\n+\n+\n+\n+

    \n+Typedefs

    template<class T >
    using Dune::ResolveRef_t = std::remove_reference_t< decltype(Dune::resolveRef(std::declval< T & >()))>
     Type trait to resolve std::reference_wrapper.
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n Functions

    template<class T >
    std::string Dune::className ()
     Provide the demangled class name of a type T as a string.
     
    template<class T >
    std::string Dune::className (T &&v)
     Provide the demangled class name of a given object as a string.
     
    template<class T >
    constexpr T & Dune::resolveRef (T &gf) noexcept
     Helper function to resolve std::reference_wrapper.
     
    template<class T >
    const auto & Dune::resolveRef (T &&gf)=delete
     
    template<class T >
    constexpr T & Dune::resolveRef (std::reference_wrapper< T > gf) noexcept
     Helper function to resolve std::reference_wrapper.
     
    \n+\n+\n+\n+\n+\n

    \n+Variables

    template<class T >
    constexpr bool Dune::IsReferenceWrapper_v = Impl::IsReferenceWrapper<T>::value
     Helper to detect if given type is a std::reference_wrapper.
     
    \n-

    Detailed Description

    \n-

    A free function to provide the demangled class name of a given object or type as a string.

    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,34 +1,40 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-classname.hh File Reference\n-A free function to provide the demangled class name of a given object or type\n-as a string. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n+referencehelper.hh File Reference\n #include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf_\b__\bt = std::remove_reference_t< decltype(_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf\n+ (std::declval< T & >()))>\n+\u00a0 Type trait to resolve std::reference_wrapper.\n+\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n template\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be ()\n-\u00a0 Provide the demangled class name of a type T as a string.\n+constexpr T &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf (T &gf) noexcept\n+\u00a0 Helper function to resolve std::reference_wrapper.\n+\u00a0\n+template\n+ const auto &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf (T &&gf)=delete\n+\u00a0\n+template\n+constexpr T &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf (std::reference_wrapper< T > gf) noexcept\n+\u00a0 Helper function to resolve std::reference_wrapper.\n \u00a0\n+V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n template\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be (T &&v)\n-\u00a0 Provide the demangled class name of a given object as a string.\n+constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\bW_\br_\ba_\bp_\bp_\be_\br_\b__\bv = Impl::IsReferenceWrapper::value\n+\u00a0 Helper to detect if given type is a std::reference_wrapper.\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-A free function to provide the demangled class name of a given object or type\n-as a string.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00026_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00026_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: classname.hh Source File\n+dune-common: referencehelper.hh Source File\n \n \n \n \n \n \n \n@@ -74,95 +74,92 @@\n \n
    \n \n
    \n \n
    \n-
    classname.hh
    \n+
    referencehelper.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_CLASSNAME_HH
    \n-
    6#define DUNE_CLASSNAME_HH
    \n+
    5#ifndef DUNE_COMMON_REFERENCE_HELPER_HH
    \n+
    6#define DUNE_COMMON_REFERENCE_HELPER_HH
    \n
    7
    \n-
    13#include <cstdlib>
    \n-
    14#include <memory>
    \n-
    15#include <string>
    \n-
    16#include <typeinfo>
    \n-
    17#include <type_traits>
    \n-
    18
    \n-
    19#if __has_include(<cxxabi.h>) && !DISABLE_CXA_DEMANGLE
    \n-
    20#define HAVE_CXA_DEMANGLE 1
    \n-
    21#include <cxxabi.h>
    \n-
    22#endif // #if HAVE_CXA_DEMANGLE
    \n-
    23
    \n-
    24namespace Dune {
    \n+
    8#include <type_traits>
    \n+
    9#include <functional>
    \n+
    10
    \n+
    11
    \n+
    12
    \n+
    13namespace Dune {
    \n+
    14
    \n+
    15namespace Impl {
    \n+
    16
    \n+
    17 template<class T>
    \n+
    18 class IsReferenceWrapper : public std::false_type {};
    \n+
    19
    \n+
    20 template<class T>
    \n+
    21 class IsReferenceWrapper<std::reference_wrapper<T>> : public std::true_type {};
    \n+
    22
    \n+
    23 template<class T>
    \n+
    24 class IsReferenceWrapper<const std::reference_wrapper<T>> : public std::true_type {};
    \n
    25
    \n-
    26 namespace Impl {
    \n+
    26} // namespace Dune::Impl
    \n
    27
    \n-
    28 inline std::string demangle(std::string name)
    \n-
    29 {
    \n-
    30#if HAVE_CXA_DEMANGLE
    \n-
    31 int status;
    \n-
    32 std::unique_ptr<char, void(*)(void*)>
    \n-
    33 demangled(abi::__cxa_demangle(name.c_str(), nullptr, nullptr, &status),
    \n-
    34 std::free);
    \n-
    35 if( demangled )
    \n-
    36 name = demangled.get();
    \n-
    37#endif // #if HAVE_CXA_DEMANGLE
    \n-
    38 return name;
    \n-
    39 }
    \n-
    40 }
    \n-
    41
    \n-
    43 /*
    \n-
    44 * \\ingroup CxxUtilities
    \n-
    45 */
    \n-
    46 template <class T>
    \n+
    28
    \n+
    34template<class T>
    \n+
    35constexpr bool IsReferenceWrapper_v = Impl::IsReferenceWrapper<T>::value;
    \n+
    36
    \n+
    37
    \n+
    46template<class T>
    \n
    \n-
    47 std::string className ()
    \n-
    48 {
    \n-
    49 typedef typename std::remove_reference<T>::type TR;
    \n-
    50 std::string className = Impl::demangle( typeid( TR ).name() );
    \n-
    51 if (std::is_const<TR>::value)
    \n-
    52 className += " const";
    \n-
    53 if (std::is_volatile<TR>::value)
    \n-
    54 className += " volatile";
    \n-
    55 if (std::is_lvalue_reference<T>::value)
    \n-
    56 className += "&";
    \n-
    57 else if (std::is_rvalue_reference<T>::value)
    \n-
    58 className += "&&";
    \n-
    59 return className;
    \n-
    60 }
    \n-
    \n+
    47constexpr T& resolveRef(T& gf) noexcept
    \n+
    48{
    \n+
    49 return gf;
    \n+
    50}
    \n+
    \n+
    51
    \n+
    52
    \n+
    53// There's no overload for non std::reference_wrapper r-values,
    \n+
    54// because this may lead to undefined behavior whenever the
    \n+
    55// return value is stored.
    \n+
    56// Notice that deleting the overload is not necessary, but
    \n+
    57// helps to document that it is missing on purpose. It also
    \n+
    58// leads to nicer error messages.
    \n+
    59template<class T>
    \n+
    60const auto& resolveRef(T&& gf) = delete;
    \n
    61
    \n-
    63 /*
    \n-
    64 * \\ingroup CxxUtilities
    \n-
    65 */
    \n-
    66 template <class T>
    \n-
    \n-
    67 std::string className ( T&& v)
    \n-
    68 {
    \n-
    69 typedef typename std::remove_reference<T>::type TR;
    \n-
    70 std::string className = Impl::demangle( typeid(v).name() );
    \n-
    71 if (std::is_const<TR>::value)
    \n-
    72 className += " const";
    \n-
    73 if (std::is_volatile<TR>::value)
    \n-
    74 className += " volatile";
    \n-
    75 return className;
    \n-
    76 }
    \n-
    \n-
    77} // namespace Dune
    \n-
    78
    \n-
    79#endif // DUNE_CLASSNAME_HH
    \n+
    62
    \n+
    81template<class T>
    \n+
    \n+
    82constexpr T& resolveRef(std::reference_wrapper<T> gf) noexcept
    \n+
    83{
    \n+
    84 return gf.get();
    \n+
    85}
    \n+
    \n+
    86
    \n+
    87
    \n+
    88
    \n+
    99template<class T>
    \n+
    100using ResolveRef_t = std::remove_reference_t<decltype(Dune::resolveRef(std::declval<T&>()))>;
    \n+
    101
    \n+
    102
    \n+
    103} // namespace Dune
    \n+
    104
    \n+
    105
    \n+
    106
    \n+
    107#endif // DUNE_COMMON_REFERENCE_HELPER_HH
    \n+
    constexpr bool IsReferenceWrapper_v
    Helper to detect if given type is a std::reference_wrapper.
    Definition referencehelper.hh:35
    \n+
    constexpr T & resolveRef(T &gf) noexcept
    Helper function to resolve std::reference_wrapper.
    Definition referencehelper.hh:47
    \n+
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    std::string className()
    Provide the demangled class name of a type T as a string.
    Definition classname.hh:47
    \n+
    std::remove_reference_t< decltype(Dune::resolveRef(std::declval< T & >()))> ResolveRef_t
    Type trait to resolve std::reference_wrapper.
    Definition referencehelper.hh:100
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,90 +1,98 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-classname.hh\n+referencehelper.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_CLASSNAME_HH\n-6#define DUNE_CLASSNAME_HH\n+5#ifndef DUNE_COMMON_REFERENCE_HELPER_HH\n+6#define DUNE_COMMON_REFERENCE_HELPER_HH\n 7\n-13#include \n-14#include \n-15#include \n-16#include \n-17#include \n-18\n-19#if __has_include() && !DISABLE_CXA_DEMANGLE\n-20#define HAVE_CXA_DEMANGLE 1\n-21#include \n-22#endif // #if HAVE_CXA_DEMANGLE\n-23\n-24namespace _\bD_\bu_\bn_\be {\n+8#include \n+9#include \n+10\n+11\n+12\n+13namespace _\bD_\bu_\bn_\be {\n+14\n+15namespace Impl {\n+16\n+17 template\n+18 class IsReferenceWrapper : public std::false_type {};\n+19\n+20 template\n+21 class IsReferenceWrapper<_\bs_\bt_\bd::reference_wrapper> : public std::true_type\n+{};\n+22\n+23 template\n+24 class IsReferenceWrapper> : public std::\n+true_type {};\n 25\n-26 namespace Impl {\n+26} // namespace Dune::Impl\n 27\n-28 inline std::string demangle(std::string name)\n-29 {\n-30#if HAVE_CXA_DEMANGLE\n-31 int status;\n-32 std::unique_ptr\n-33 demangled(abi::__cxa_demangle(name.c_str(), nullptr, nullptr, &status),\n-34 std::free);\n-35 if( demangled )\n-36 name = demangled.get();\n-37#endif // #if HAVE_CXA_DEMANGLE\n-38 return name;\n-39 }\n-40 }\n-41\n-43 /*\n-44 * \\ingroup CxxUtilities\n-45 */\n-46 template \n-_\b4_\b7 std::string _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be ()\n-48 {\n-49 typedef typename std::remove_reference::type TR;\n-50 std::string _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be = Impl::demangle( typeid( TR ).name() );\n-51 if (std::is_const::value)\n-52 _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be += \" const\";\n-53 if (std::is_volatile::value)\n-54 _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be += \" volatile\";\n-55 if (std::is_lvalue_reference::value)\n-56 _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be += \"&\";\n-57 else if (std::is_rvalue_reference::value)\n-58 _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be += \"&&\";\n-59 return _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be;\n-60 }\n+28\n+34template\n+_\b3_\b5constexpr bool _\bI_\bs_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\bW_\br_\ba_\bp_\bp_\be_\br_\b__\bv = Impl::IsReferenceWrapper::value;\n+36\n+37\n+46template\n+_\b4_\b7constexpr T& _\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf(T& gf) noexcept\n+48{\n+49 return gf;\n+50}\n+51\n+52\n+53// There's no overload for non std::reference_wrapper r-values,\n+54// because this may lead to undefined behavior whenever the\n+55// return value is stored.\n+56// Notice that deleting the overload is not necessary, but\n+57// helps to document that it is missing on purpose. It also\n+58// leads to nicer error messages.\n+59template\n+_\b6_\b0const auto& _\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf(T&& gf) = delete;\n 61\n-63 /*\n-64 * \\ingroup CxxUtilities\n-65 */\n-66 template \n-_\b6_\b7 std::string _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be ( T&& v)\n-68 {\n-69 typedef typename std::remove_reference::type TR;\n-70 std::string _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be = Impl::demangle( typeid(v).name() );\n-71 if (std::is_const::value)\n-72 _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be += \" const\";\n-73 if (std::is_volatile::value)\n-74 _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be += \" volatile\";\n-75 return _\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be;\n-76 }\n-77} // namespace Dune\n-78\n-79#endif // DUNE_CLASSNAME_HH\n+62\n+81template\n+_\b8_\b2constexpr T& _\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf(std::reference_wrapper gf) noexcept\n+83{\n+84 return gf.get();\n+85}\n+86\n+87\n+88\n+99template\n+_\b1_\b0_\b0using _\bR_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf_\b__\bt = std::remove_reference_t()))>;\n+101\n+102\n+103} // namespace Dune\n+104\n+105\n+106\n+107#endif // DUNE_COMMON_REFERENCE_HELPER_HH\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\bW_\br_\ba_\bp_\bp_\be_\br_\b__\bv\n+constexpr bool IsReferenceWrapper_v\n+Helper to detect if given type is a std::reference_wrapper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn referencehelper.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf\n+constexpr T & resolveRef(T &gf) noexcept\n+Helper function to resolve std::reference_wrapper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn referencehelper.hh:47\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bl_\ba_\bs_\bs_\bN_\ba_\bm_\be\n-std::string className()\n-Provide the demangled class name of a type T as a string.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn classname.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bo_\bl_\bv_\be_\bR_\be_\bf_\b__\bt\n+std::remove_reference_t< decltype(Dune::resolveRef(std::declval< T & >()))>\n+ResolveRef_t\n+Type trait to resolve std::reference_wrapper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn referencehelper.hh:100\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00029.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00029.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: path.hh File Reference\n+dune-common: communicator.hh File Reference\n \n \n \n \n \n \n \n@@ -65,61 +65,73 @@\n \n \n \n \n \n \n \n
    \n \n-
    path.hh File Reference
    \n+Classes |\n+Namespaces
    \n+ \n \n
    \n \n-

    Utilities for handling filesystem paths. \n+

    Provides utility classes for syncing distributed data via MPI communication. \n More...

    \n-
    #include <string>
    \n+
    #include <cassert>
    \n+#include <cstddef>
    \n+#include <iostream>
    \n+#include <map>
    \n+#include <type_traits>
    \n+#include <utility>
    \n+#include <mpi.h>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/parallel/interface.hh>
    \n+#include <dune/common/parallel/remoteindices.hh>
    \n+#include <dune/common/stdstreams.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::SizeOne
     Flag for marking indexed data structures where data at each index is of the same size. More...
     
    struct  Dune::VariableSize
     Flag for marking indexed data structures where the data at each index may be a variable multiple of another type. More...
     
    struct  Dune::CommPolicy< V >
     Default policy used for communicating an indexed type. More...
     
    struct  Dune::CommPolicy< V >::CommPolicy< VariableBlockVector< FieldVector< K, n >, A > >
     
    class  Dune::CommPolicy< V >::CommunicationError
     Error thrown if there was a problem with the communication. More...
     
    struct  Dune::CommPolicy< V >::CopyGatherScatter< T >
     GatherScatter default implementation that just copies data. More...
     
    class  Dune::BufferedCommunicator
     A communicator that uses buffers to gather and scatter the data to be send or received. More...
     
    \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    std::string Dune::concatPaths (const std::string &base, const std::string &p)
     concatenate two paths
     
    std::string Dune::processPath (const std::string &p)
     sanitize a path for further processing
     
    bool Dune::pathIndicatesDirectory (const std::string &p)
     check whether the given path indicates that it is a directory
     
    std::string Dune::prettyPath (const std::string &p, bool isDirectory)
     pretty print path
     
    std::string Dune::prettyPath (const std::string &p)
     pretty print path
     
    std::string Dune::relativePath (const std::string &newbase, const std::string &p)
     compute a relative path between two paths
     
    \n

    Detailed Description

    \n-

    Utilities for handling filesystem paths.

    \n-
    Author
    J\u00f6 Fahlke jorri.nosp@m.t@jo.nosp@m.rrit..nosp@m.de
    \n+

    Provides utility classes for syncing distributed data via MPI communication.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,42 +1,59 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-path.hh File Reference\n-_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bU_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs \u00bb _\bF_\bi_\bl_\be_\bs_\by_\bs_\bt_\be_\bm_\b _\bP_\ba_\bt_\bh_\bs\n-Utilities for handling filesystem paths. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+communicator.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bp_\bu_\bt_\bi_\bn_\bg_\b _\bb_\ba_\bs_\be_\bd_\b _\bo_\bn_\b _\bI_\bn_\bd_\be_\bx_\bs_\be_\bt_\bs\n+Provides utility classes for syncing distributed data via MPI communication.\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\br_\be_\bm_\bo_\bt_\be_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bz_\be_\bO_\bn_\be\n+\u00a0 Flag for marking indexed data structures where data at each index is\n+ of the same size. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be\n+\u00a0 Flag for marking indexed data structures where the data at each index\n+ may be a variable multiple of another type. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\b _\b>\n+\u00a0 Default policy used for communicating an indexed type. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\b _\b>_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<\n+ _\bK_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\b _\b>_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bE_\br_\br_\bo_\br\n+\u00a0 Error thrown if there was a problem with the communication. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\b _\b>_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 GatherScatter default implementation that just copies data. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+\u00a0 A communicator that uses buffers to gather and scatter the data to be\n+ send or received. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bc_\ba_\bt_\bP_\ba_\bt_\bh_\bs (const std::string &base, const std::string &p)\n-\u00a0 concatenate two paths\n-\u00a0\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bo_\bc_\be_\bs_\bs_\bP_\ba_\bt_\bh (const std::string &p)\n-\u00a0 sanitize a path for further processing\n-\u00a0\n- bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\ba_\bt_\bh_\bI_\bn_\bd_\bi_\bc_\ba_\bt_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bo_\br_\by (const std::string &p)\n-\u00a0 check whether the given path indicates that it is a directory\n-\u00a0\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\be_\bt_\bt_\by_\bP_\ba_\bt_\bh (const std::string &p, bool isDirectory)\n-\u00a0 pretty print path\n-\u00a0\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\be_\bt_\bt_\by_\bP_\ba_\bt_\bh (const std::string &p)\n-\u00a0 pretty print path\n-\u00a0\n-std::string\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bP_\ba_\bt_\bh (const std::string &newbase, const std::string\n- &p)\n-\u00a0 compute a relative path between two paths\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Utilities for handling filesystem paths.\n+Provides utility classes for syncing distributed data via MPI communication.\n Author\n- J\u00c3\u00b6 Fahlke _\bj_\bo_\br_\br_\bi_\b._\bn_\bo_\bs_\bp_\b@_\bm_\b._\bt_\b@_\bj_\bo_\b._\bn_\bo_\bs_\bp_\b@_\bm_\b._\br_\br_\bi_\bt_\b._\b._\bn_\bo_\bs_\bp_\b@_\bm_\b._\bd_\be\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00029_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00029_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: path.hh Source File\n+dune-common: communicator.hh Source File\n \n \n \n \n \n \n \n@@ -70,58 +70,1040 @@\n
    \n
    \n \n \n \n \n \n
    \n-
    path.hh
    \n+
    communicator.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_PATH_HH
    \n-
    6#define DUNE_COMMON_PATH_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_COMMUNICATOR_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_COMMUNICATOR_HH
    \n
    7
    \n-
    8#include <string>
    \n+
    8#if HAVE_MPI
    \n
    9
    \n-
    10namespace Dune {
    \n+
    10#include <cassert>
    \n+
    11#include <cstddef>
    \n+
    12#include <iostream>
    \n+
    13#include <map>
    \n+
    14#include <type_traits>
    \n+
    15#include <utility>
    \n+
    16
    \n+
    17#include <mpi.h>
    \n+
    18
    \n+\n+\n+\n+\n
    23
    \n-
    51 std::string concatPaths(const std::string& base, const std::string& p);
    \n-
    52
    \n-
    54
    \n-
    98 std::string processPath(const std::string& p);
    \n-
    99
    \n-
    101
    \n-
    109 bool pathIndicatesDirectory(const std::string& p);
    \n-
    110
    \n-
    112
    \n-
    151 std::string prettyPath(const std::string& p, bool isDirectory);
    \n-
    152
    \n+
    24namespace Dune
    \n+
    25{
    \n+
    \n+
    109 struct SizeOne
    \n+
    110 {};
    \n+
    \n+
    111
    \n+
    \n+\n+
    118 {};
    \n+
    \n+
    119
    \n+
    120
    \n+
    126 template<class V>
    \n+
    \n+\n+
    128 {
    \n+
    140 typedef V Type;
    \n+
    141
    \n+
    147 typedef typename V::value_type IndexedType;
    \n+
    148
    \n+\n
    154
    \n-
    160 std::string prettyPath(const std::string& p);
    \n-
    161
    \n-
    163
    \n-
    179 std::string relativePath(const std::string& newbase, const std::string& p);
    \n-
    180
    \n-
    182}
    \n+
    163 static const void* getAddress(const V& v, int index);
    \n+
    164
    \n+
    170 static int getSize(const V&, int index);
    \n+
    171 };
    \n+
    172
    \n+
    173 template<class K, int n> class FieldVector;
    \n+
    174
    \n+
    175 template<class B, class A> class VariableBlockVector;
    \n+
    176
    \n+
    177 template<class K, class A, int n>
    \n+
    \n+\n+
    179 {
    \n+\n+
    181
    \n+
    182 typedef typename Type::B IndexedType;
    \n
    183
    \n-
    184#endif // DUNE_COMMON_PATH_HH
    \n-
    std::string processPath(const std::string &p)
    sanitize a path for further processing
    Definition path.cc:37
    \n-
    bool pathIndicatesDirectory(const std::string &p)
    check whether the given path indicates that it is a directory
    Definition path.cc:111
    \n-
    std::string prettyPath(const std::string &p, bool isDirectory)
    pretty print path
    Definition path.cc:122
    \n-
    std::string relativePath(const std::string &newbase, const std::string &p)
    compute a relative path between two paths
    Definition path.cc:149
    \n-
    std::string concatPaths(const std::string &base, const std::string &p)
    concatenate two paths
    Definition path.cc:28
    \n+\n+
    185
    \n+
    186 static const void* getAddress(const Type& v, int i);
    \n+
    187
    \n+
    188 static int getSize(const Type& v, int i);
    \n+
    189 };
    \n+
    \n+
    190
    \n+
    \n+\n+
    195 {};
    \n+
    \n+
    196
    \n+
    200 template<class T>
    \n+
    \n+\n+
    202 {
    \n+\n+
    204
    \n+
    205 static const IndexedType& gather(const T& vec, std::size_t i);
    \n+
    206
    \n+
    207 static void scatter(T& vec, const IndexedType& v, std::size_t i);
    \n+
    208
    \n+
    209 };
    \n+
    \n+
    210
    \n+
    222 template<typename T>
    \n+
    223 class DatatypeCommunicator : public InterfaceBuilder
    \n+
    224 {
    \n+
    225 public:
    \n+
    226
    \n+
    230 typedef T ParallelIndexSet;
    \n+
    231
    \n+\n+
    236
    \n+
    240 typedef typename RemoteIndices::GlobalIndex GlobalIndex;
    \n+
    241
    \n+
    245 typedef typename RemoteIndices::Attribute Attribute;
    \n+
    246
    \n+
    250 typedef typename RemoteIndices::LocalIndex LocalIndex;
    \n+
    251
    \n+
    255 DatatypeCommunicator();
    \n+
    256
    \n+
    260 ~DatatypeCommunicator();
    \n+
    261
    \n+
    288 template<class T1, class T2, class V>
    \n+
    289 void build(const RemoteIndices& remoteIndices, const T1& sourceFlags, V& sendData, const T2& destFlags, V& receiveData);
    \n+
    290
    \n+
    294 void forward();
    \n+
    295
    \n+
    299 void backward();
    \n+
    300
    \n+
    304 void free();
    \n+
    305 private:
    \n+
    309 constexpr static int commTag_ = 234;
    \n+
    310
    \n+
    314 const RemoteIndices* remoteIndices_;
    \n+
    315
    \n+
    316 typedef std::map<int,std::pair<MPI_Datatype,MPI_Datatype> >
    \n+
    317 MessageTypeMap;
    \n+
    318
    \n+
    322 MessageTypeMap messageTypes;
    \n+
    323
    \n+
    327 void* data_;
    \n+
    328
    \n+
    329 MPI_Request* requests_[2];
    \n+
    330
    \n+
    334 bool created_;
    \n+
    335
    \n+
    339 template<class V, bool FORWARD>
    \n+
    340 void createRequests(V& sendData, V& receiveData);
    \n+
    341
    \n+
    345 template<class T1, class T2, class V, bool send>
    \n+
    346 void createDataTypes(const T1& source, const T2& destination, V& data);
    \n+
    347
    \n+
    351 void sendRecv(MPI_Request* req);
    \n+
    352
    \n+
    356 struct IndexedTypeInformation
    \n+
    357 {
    \n+
    363 void build(int i)
    \n+
    364 {
    \n+
    365 length = new int[i];
    \n+
    366 displ = new MPI_Aint[i];
    \n+
    367 size = i;
    \n+
    368 }
    \n+
    369
    \n+
    373 void free()
    \n+
    374 {
    \n+
    375 delete[] length;
    \n+
    376 delete[] displ;
    \n+
    377 }
    \n+
    379 int* length;
    \n+
    381 MPI_Aint* displ;
    \n+
    387 int elements;
    \n+
    391 int size;
    \n+
    392 };
    \n+
    393
    \n+
    399 template<class V>
    \n+
    400 struct MPIDatatypeInformation
    \n+
    401 {
    \n+
    406 MPIDatatypeInformation(const V& data) : data_(data)
    \n+
    407 {}
    \n+
    408
    \n+
    414 void reserve(int proc, int size)
    \n+
    415 {
    \n+
    416 information_[proc].build(size);
    \n+
    417 }
    \n+
    424 void add(int proc, int local)
    \n+
    425 {
    \n+
    426 IndexedTypeInformation& info=information_[proc];
    \n+
    427 assert((info.elements)<info.size);
    \n+
    428 MPI_Get_address( const_cast<void*>(CommPolicy<V>::getAddress(data_, local)),
    \n+
    429 info.displ+info.elements);
    \n+
    430 info.length[info.elements]=CommPolicy<V>::getSize(data_, local);
    \n+
    431 info.elements++;
    \n+
    432 }
    \n+
    433
    \n+
    438 std::map<int,IndexedTypeInformation> information_;
    \n+
    442 const V& data_;
    \n+
    443
    \n+
    444 };
    \n+
    445
    \n+
    446 };
    \n+
    \n+
    447
    \n+
    \n+\n+
    458 {
    \n+
    459
    \n+
    460 public:
    \n+\n+
    465
    \n+
    472 template<class Data, class Interface>
    \n+
    473 typename std::enable_if<std::is_same<SizeOne,typename CommPolicy<Data>::IndexedTypeFlag>::value, void>::type
    \n+
    474 build(const Interface& interface);
    \n+
    475
    \n+
    483 template<class Data, class Interface>
    \n+
    484 void build(const Data& source, const Data& target, const Interface& interface);
    \n+
    485
    \n+
    514 template<class GatherScatter, class Data>
    \n+
    515 void forward(const Data& source, Data& dest);
    \n+
    516
    \n+
    545 template<class GatherScatter, class Data>
    \n+
    546 void backward(Data& source, const Data& dest);
    \n+
    547
    \n+
    573 template<class GatherScatter, class Data>
    \n+
    574 void forward(Data& data);
    \n+
    575
    \n+
    601 template<class GatherScatter, class Data>
    \n+
    602 void backward(Data& data);
    \n+
    603
    \n+
    607 void free();
    \n+
    608
    \n+\n+
    613
    \n+
    614 private:
    \n+
    615
    \n+
    619 typedef std::map<int,std::pair<InterfaceInformation,InterfaceInformation> >
    \n+
    620 InterfaceMap;
    \n+
    621
    \n+
    622
    \n+
    626 template<class Data, typename IndexedTypeFlag>
    \n+
    627 struct MessageSizeCalculator
    \n+
    628 {};
    \n+
    629
    \n+
    634 template<class Data>
    \n+
    635 struct MessageSizeCalculator<Data,SizeOne>
    \n+
    636 {
    \n+
    643 inline int operator()(const InterfaceInformation& info) const;
    \n+
    652 inline int operator()(const Data& data, const InterfaceInformation& info) const;
    \n+
    653 };
    \n+
    654
    \n+
    659 template<class Data>
    \n+
    660 struct MessageSizeCalculator<Data,VariableSize>
    \n+
    661 {
    \n+
    670 inline int operator()(const Data& data, const InterfaceInformation& info) const;
    \n+
    671 };
    \n+
    672
    \n+
    676 template<class Data, class GatherScatter, bool send, typename IndexedTypeFlag>
    \n+
    677 struct MessageGatherer
    \n+
    678 {};
    \n+
    679
    \n+
    684 template<class Data, class GatherScatter, bool send>
    \n+
    685 struct MessageGatherer<Data,GatherScatter,send,SizeOne>
    \n+
    686 {
    \n+
    688 typedef typename CommPolicy<Data>::IndexedType Type;
    \n+
    689
    \n+
    694 typedef GatherScatter Gatherer;
    \n+
    695
    \n+
    701 constexpr static bool forward = send;
    \n+
    702
    \n+
    710 inline void operator()(const InterfaceMap& interface, const Data& data, Type* buffer, size_t bufferSize) const;
    \n+
    711 };
    \n+
    712
    \n+
    717 template<class Data, class GatherScatter, bool send>
    \n+
    718 struct MessageGatherer<Data,GatherScatter,send,VariableSize>
    \n+
    719 {
    \n+
    721 typedef typename CommPolicy<Data>::IndexedType Type;
    \n+
    722
    \n+
    727 typedef GatherScatter Gatherer;
    \n+
    728
    \n+
    734 constexpr static bool forward = send;
    \n+
    735
    \n+
    743 inline void operator()(const InterfaceMap& interface, const Data& data, Type* buffer, size_t bufferSize) const;
    \n+
    744 };
    \n+
    745
    \n+
    749 template<class Data, class GatherScatter, bool send, typename IndexedTypeFlag>
    \n+
    750 struct MessageScatterer
    \n+
    751 {};
    \n+
    752
    \n+
    757 template<class Data, class GatherScatter, bool send>
    \n+
    758 struct MessageScatterer<Data,GatherScatter,send,SizeOne>
    \n+
    759 {
    \n+
    761 typedef typename CommPolicy<Data>::IndexedType Type;
    \n+
    762
    \n+
    767 typedef GatherScatter Scatterer;
    \n+
    768
    \n+
    774 constexpr static bool forward = send;
    \n+
    775
    \n+
    783 inline void operator()(const InterfaceMap& interface, Data& data, Type* buffer, const int& proc) const;
    \n+
    784 };
    \n+
    789 template<class Data, class GatherScatter, bool send>
    \n+
    790 struct MessageScatterer<Data,GatherScatter,send,VariableSize>
    \n+
    791 {
    \n+
    793 typedef typename CommPolicy<Data>::IndexedType Type;
    \n+
    794
    \n+
    799 typedef GatherScatter Scatterer;
    \n+
    800
    \n+
    806 constexpr static bool forward = send;
    \n+
    807
    \n+
    815 inline void operator()(const InterfaceMap& interface, Data& data, Type* buffer, const int& proc) const;
    \n+
    816 };
    \n+
    817
    \n+
    821 struct MessageInformation
    \n+
    822 {
    \n+
    824 MessageInformation()
    \n+
    825 : start_(0), size_(0)
    \n+
    826 {}
    \n+
    827
    \n+
    835 MessageInformation(size_t start, size_t size)
    \n+
    836 : start_(start), size_(size)
    \n+
    837 {}
    \n+
    841 size_t start_;
    \n+
    845 size_t size_;
    \n+
    846 };
    \n+
    847
    \n+
    854 typedef std::map<int,std::pair<MessageInformation,MessageInformation> >
    \n+
    855 InformationMap;
    \n+
    859 InformationMap messageInformation_;
    \n+
    863 char* buffers_[2];
    \n+
    867 size_t bufferSize_[2];
    \n+
    868
    \n+
    872 constexpr static int commTag_ = 0;
    \n+
    873
    \n+
    877 std::map<int,std::pair<InterfaceInformation,InterfaceInformation> > interfaces_;
    \n+
    878
    \n+
    879 MPI_Comm communicator_;
    \n+
    880
    \n+
    884 template<class GatherScatter, bool FORWARD, class Data>
    \n+
    885 void sendRecv(const Data& source, Data& target);
    \n+
    886
    \n+
    887 };
    \n+
    \n+
    888
    \n+
    889#ifndef DOXYGEN
    \n+
    890
    \n+
    891 template<class V>
    \n+
    892 inline const void* CommPolicy<V>::getAddress(const V& v, int index)
    \n+
    893 {
    \n+
    894 return &(v[index]);
    \n+
    895 }
    \n+
    896
    \n+
    897 template<class V>
    \n+
    898 inline int CommPolicy<V>::getSize([[maybe_unused]] const V& v, [[maybe_unused]] int index)
    \n+
    899 {
    \n+
    900 return 1;
    \n+
    901 }
    \n+
    902
    \n+
    903 template<class K, class A, int n>
    \n+
    904 inline const void* CommPolicy<VariableBlockVector<FieldVector<K, n>, A> >::getAddress(const Type& v, int index)
    \n+
    905 {
    \n+
    906 return &(v[index][0]);
    \n+
    907 }
    \n+
    908
    \n+
    909 template<class K, class A, int n>
    \n+
    910 inline int CommPolicy<VariableBlockVector<FieldVector<K, n>, A> >::getSize(const Type& v, int index)
    \n+
    911 {
    \n+
    912 return v[index].getsize();
    \n+
    913 }
    \n+
    914
    \n+
    915 template<class T>
    \n+
    916 inline const typename CopyGatherScatter<T>::IndexedType& CopyGatherScatter<T>::gather(const T & vec, std::size_t i)
    \n+
    917 {
    \n+
    918 return vec[i];
    \n+
    919 }
    \n+
    920
    \n+
    921 template<class T>
    \n+
    922 inline void CopyGatherScatter<T>::scatter(T& vec, const IndexedType& v, std::size_t i)
    \n+
    923 {
    \n+
    924 vec[i]=v;
    \n+
    925 }
    \n+
    926
    \n+
    927 template<typename T>
    \n+
    928 DatatypeCommunicator<T>::DatatypeCommunicator()
    \n+
    929 : remoteIndices_(0), created_(false)
    \n+
    930 {
    \n+
    931 requests_[0]=0;
    \n+
    932 requests_[1]=0;
    \n+
    933 }
    \n+
    934
    \n+
    935
    \n+
    936
    \n+
    937 template<typename T>
    \n+
    938 DatatypeCommunicator<T>::~DatatypeCommunicator()
    \n+
    939 {
    \n+
    940 free();
    \n+
    941 }
    \n+
    942
    \n+
    943 template<typename T>
    \n+
    944 template<class T1, class T2, class V>
    \n+
    945 inline void DatatypeCommunicator<T>::build(const RemoteIndices& remoteIndices,
    \n+
    946 const T1& source, V& sendData,
    \n+
    947 const T2& destination, V& receiveData)
    \n+
    948 {
    \n+
    949 remoteIndices_ = &remoteIndices;
    \n+
    950 free();
    \n+
    951 createDataTypes<T1,T2,V,false>(source,destination, receiveData);
    \n+
    952 createDataTypes<T1,T2,V,true>(source,destination, sendData);
    \n+
    953 createRequests<V,true>(sendData, receiveData);
    \n+
    954 createRequests<V,false>(receiveData, sendData);
    \n+
    955 created_=true;
    \n+
    956 }
    \n+
    957
    \n+
    958 template<typename T>
    \n+
    959 void DatatypeCommunicator<T>::free()
    \n+
    960 {
    \n+
    961 if(created_) {
    \n+
    962 delete[] requests_[0];
    \n+
    963 delete[] requests_[1];
    \n+
    964 typedef MessageTypeMap::iterator iterator;
    \n+
    965 typedef MessageTypeMap::const_iterator const_iterator;
    \n+
    966
    \n+
    967 const const_iterator end=messageTypes.end();
    \n+
    968
    \n+
    969 for(iterator process = messageTypes.begin(); process != end; ++process) {
    \n+
    970 MPI_Datatype *type = &(process->second.first);
    \n+
    971 int finalized=0;
    \n+
    972 MPI_Finalized(&finalized);
    \n+
    973 if(*type!=MPI_DATATYPE_NULL && !finalized)
    \n+
    974 MPI_Type_free(type);
    \n+
    975 type = &(process->second.second);
    \n+
    976 if(*type!=MPI_DATATYPE_NULL && !finalized)
    \n+
    977 MPI_Type_free(type);
    \n+
    978 }
    \n+
    979 messageTypes.clear();
    \n+
    980 created_=false;
    \n+
    981 }
    \n+
    982
    \n+
    983 }
    \n+
    984
    \n+
    985 template<typename T>
    \n+
    986 template<class T1, class T2, class V, bool send>
    \n+
    987 void DatatypeCommunicator<T>::createDataTypes(const T1& sourceFlags, const T2& destFlags, V& data)
    \n+
    988 {
    \n+
    989
    \n+
    990 MPIDatatypeInformation<V> dataInfo(data);
    \n+
    991 this->template buildInterface<RemoteIndices,T1,T2,MPIDatatypeInformation<V>,send>(*remoteIndices_,sourceFlags, destFlags, dataInfo);
    \n+
    992
    \n+
    993 typedef typename RemoteIndices::RemoteIndexMap::const_iterator const_iterator;
    \n+
    994 const const_iterator end=this->remoteIndices_->end();
    \n+
    995
    \n+
    996 // Allocate MPI_Datatypes and deallocate memory for the type construction.
    \n+
    997 for(const_iterator process=this->remoteIndices_->begin(); process != end; ++process) {
    \n+
    998 IndexedTypeInformation& info=dataInfo.information_[process->first];
    \n+
    999 // Shift the displacement
    \n+
    1000 MPI_Aint base;
    \n+
    1001 MPI_Get_address(const_cast<void *>(CommPolicy<V>::getAddress(data, 0)), &base);
    \n+
    1002
    \n+
    1003 for(int i=0; i< info.elements; i++) {
    \n+
    1004 info.displ[i]-=base;
    \n+
    1005 }
    \n+
    1006
    \n+
    1007 // Create data type
    \n+
    1008 MPI_Datatype* type = &( send ? messageTypes[process->first].first : messageTypes[process->first].second);
    \n+
    1009 MPI_Type_create_hindexed(info.elements, info.length, info.displ,
    \n+
    1010 MPITraits<typename CommPolicy<V>::IndexedType>::getType(), type);
    \n+
    1011 MPI_Type_commit(type);
    \n+
    1012 // Deallocate memory
    \n+
    1013 info.free();
    \n+
    1014 }
    \n+
    1015 }
    \n+
    1016
    \n+
    1017 template<typename T>
    \n+
    1018 template<class V, bool createForward>
    \n+
    1019 void DatatypeCommunicator<T>::createRequests(V& sendData, V& receiveData)
    \n+
    1020 {
    \n+
    1021 typedef std::map<int,std::pair<MPI_Datatype,MPI_Datatype> >::const_iterator MapIterator;
    \n+
    1022 int rank;
    \n+
    1023 static int index = createForward ? 1 : 0;
    \n+
    1024 int noMessages = messageTypes.size();
    \n+
    1025 // allocate request handles
    \n+
    1026 requests_[index] = new MPI_Request[2*noMessages];
    \n+
    1027 const MapIterator end = messageTypes.end();
    \n+
    1028 int request=0;
    \n+
    1029 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    \n+
    1030
    \n+
    1031 // Set up the requests for receiving first
    \n+
    1032 for(MapIterator process = messageTypes.begin(); process != end;
    \n+
    1033 ++process, ++request) {
    \n+
    1034 MPI_Datatype type = createForward ? process->second.second : process->second.first;
    \n+
    1035 void* address = const_cast<void*>(CommPolicy<V>::getAddress(receiveData,0));
    \n+
    1036 MPI_Recv_init(address, 1, type, process->first, commTag_, this->remoteIndices_->communicator(), requests_[index]+request);
    \n+
    1037 }
    \n+
    1038
    \n+
    1039 // And now the send requests
    \n+
    1040
    \n+
    1041 for(MapIterator process = messageTypes.begin(); process != end;
    \n+
    1042 ++process, ++request) {
    \n+
    1043 MPI_Datatype type = createForward ? process->second.first : process->second.second;
    \n+
    1044 void* address = const_cast<void*>(CommPolicy<V>::getAddress(sendData, 0));
    \n+
    1045 MPI_Ssend_init(address, 1, type, process->first, commTag_, this->remoteIndices_->communicator(), requests_[index]+request);
    \n+
    1046 }
    \n+
    1047 }
    \n+
    1048
    \n+
    1049 template<typename T>
    \n+
    1050 void DatatypeCommunicator<T>::forward()
    \n+
    1051 {
    \n+
    1052 sendRecv(requests_[1]);
    \n+
    1053 }
    \n+
    1054
    \n+
    1055 template<typename T>
    \n+
    1056 void DatatypeCommunicator<T>::backward()
    \n+
    1057 {
    \n+
    1058 sendRecv(requests_[0]);
    \n+
    1059 }
    \n+
    1060
    \n+
    1061 template<typename T>
    \n+
    1062 void DatatypeCommunicator<T>::sendRecv(MPI_Request* requests)
    \n+
    1063 {
    \n+
    1064 int noMessages = messageTypes.size();
    \n+
    1065 // Start the receive calls first
    \n+
    1066 MPI_Startall(noMessages, requests);
    \n+
    1067 // Now the send calls
    \n+
    1068 MPI_Startall(noMessages, requests+noMessages);
    \n+
    1069
    \n+
    1070 // Wait for completion of the communication send first then receive
    \n+
    1071 MPI_Status* status=new MPI_Status[2*noMessages];
    \n+
    1072 for(int i=0; i<2*noMessages; i++)
    \n+
    1073 status[i].MPI_ERROR=MPI_SUCCESS;
    \n+
    1074
    \n+
    1075 int send = MPI_Waitall(noMessages, requests+noMessages, status+noMessages);
    \n+
    1076 int receive = MPI_Waitall(noMessages, requests, status);
    \n+
    1077
    \n+
    1078 // Error checks
    \n+
    1079 int success=1, globalSuccess=0;
    \n+
    1080 if(send==MPI_ERR_IN_STATUS) {
    \n+
    1081 int rank;
    \n+
    1082 MPI_Comm_rank(this->remoteIndices_->communicator(), &rank);
    \n+
    1083 std::cerr<<rank<<": Error in sending :"<<std::endl;
    \n+
    1084 // Search for the error
    \n+
    1085 for(int i=noMessages; i< 2*noMessages; i++)
    \n+
    1086 if(status[i].MPI_ERROR!=MPI_SUCCESS) {
    \n+
    1087 char message[300];
    \n+
    1088 int messageLength;
    \n+
    1089 MPI_Error_string(status[i].MPI_ERROR, message, &messageLength);
    \n+
    1090 std::cerr<<" source="<<status[i].MPI_SOURCE<<" message: ";
    \n+
    1091 for(int j = 0; j < messageLength; j++)
    \n+
    1092 std::cout << message[j];
    \n+
    1093 }
    \n+
    1094 std::cerr<<std::endl;
    \n+
    1095 success=0;
    \n+
    1096 }
    \n+
    1097
    \n+
    1098 if(receive==MPI_ERR_IN_STATUS) {
    \n+
    1099 int rank;
    \n+
    1100 MPI_Comm_rank(this->remoteIndices_->communicator(), &rank);
    \n+
    1101 std::cerr<<rank<<": Error in receiving!"<<std::endl;
    \n+
    1102 // Search for the error
    \n+
    1103 for(int i=0; i< noMessages; i++)
    \n+
    1104 if(status[i].MPI_ERROR!=MPI_SUCCESS) {
    \n+
    1105 char message[300];
    \n+
    1106 int messageLength;
    \n+
    1107 MPI_Error_string(status[i].MPI_ERROR, message, &messageLength);
    \n+
    1108 std::cerr<<" source="<<status[i].MPI_SOURCE<<" message: ";
    \n+
    1109 for(int j = 0; j < messageLength; j++)
    \n+
    1110 std::cerr << message[j];
    \n+
    1111 }
    \n+
    1112 std::cerr<<std::endl;
    \n+
    1113 success=0;
    \n+
    1114 }
    \n+
    1115
    \n+
    1116 MPI_Allreduce(&success, &globalSuccess, 1, MPI_INT, MPI_MIN, this->remoteIndices_->communicator());
    \n+
    1117
    \n+
    1118 delete[] status;
    \n+
    1119
    \n+
    1120 if(!globalSuccess)
    \n+
    1121 DUNE_THROW(CommunicationError, "A communication error occurred!");
    \n+
    1122
    \n+
    1123 }
    \n+
    1124
    \n+\n+
    1126 {
    \n+
    1127 buffers_[0]=0;
    \n+
    1128 buffers_[1]=0;
    \n+
    1129 bufferSize_[0]=0;
    \n+
    1130 bufferSize_[1]=0;
    \n+
    1131 }
    \n+
    1132
    \n+
    1133 template<class Data, class Interface>
    \n+
    1134 typename std::enable_if<std::is_same<SizeOne, typename CommPolicy<Data>::IndexedTypeFlag>::value, void>::type
    \n+
    1135 BufferedCommunicator::build(const Interface& interface)
    \n+
    1136 {
    \n+
    1137 interfaces_=interface.interfaces();
    \n+
    1138 communicator_=interface.communicator();
    \n+
    1139 typedef typename std::map<int,std::pair<InterfaceInformation,InterfaceInformation> >
    \n+
    1140 ::const_iterator const_iterator;
    \n+
    1141 typedef typename CommPolicy<Data>::IndexedTypeFlag Flag;
    \n+
    1142 const const_iterator end = interfaces_.end();
    \n+
    1143 int lrank;
    \n+
    1144 MPI_Comm_rank(communicator_, &lrank);
    \n+
    1145
    \n+
    1146 bufferSize_[0]=0;
    \n+
    1147 bufferSize_[1]=0;
    \n+
    1148
    \n+
    1149 for(const_iterator interfacePair = interfaces_.begin();
    \n+
    1150 interfacePair != end; ++interfacePair) {
    \n+
    1151 int noSend = MessageSizeCalculator<Data,Flag>() (interfacePair->second.first);
    \n+
    1152 int noRecv = MessageSizeCalculator<Data,Flag>() (interfacePair->second.second);
    \n+
    1153 if (noSend + noRecv > 0)
    \n+
    1154 messageInformation_.insert(std::make_pair(interfacePair->first,
    \n+
    1155 std::make_pair(MessageInformation(bufferSize_[0],
    \n+
    1156 noSend*sizeof(typename CommPolicy<Data>::IndexedType)),
    \n+
    1157 MessageInformation(bufferSize_[1],
    \n+
    1158 noRecv*sizeof(typename CommPolicy<Data>::IndexedType)))));
    \n+
    1159 bufferSize_[0] += noSend;
    \n+
    1160 bufferSize_[1] += noRecv;
    \n+
    1161 }
    \n+
    1162
    \n+
    1163 // allocate the buffers
    \n+
    1164 bufferSize_[0] *= sizeof(typename CommPolicy<Data>::IndexedType);
    \n+
    1165 bufferSize_[1] *= sizeof(typename CommPolicy<Data>::IndexedType);
    \n+
    1166
    \n+
    1167 buffers_[0] = new char[bufferSize_[0]];
    \n+
    1168 buffers_[1] = new char[bufferSize_[1]];
    \n+
    1169 }
    \n+
    1170
    \n+
    1171 template<class Data, class Interface>
    \n+
    1172 void BufferedCommunicator::build(const Data& source, const Data& dest, const Interface& interface)
    \n+
    1173 {
    \n+
    1174
    \n+
    1175 interfaces_=interface.interfaces();
    \n+
    1176 communicator_=interface.communicator();
    \n+
    1177 typedef typename std::map<int,std::pair<InterfaceInformation,InterfaceInformation> >
    \n+
    1178 ::const_iterator const_iterator;
    \n+
    1179 typedef typename CommPolicy<Data>::IndexedTypeFlag Flag;
    \n+
    1180 const const_iterator end = interfaces_.end();
    \n+
    1181
    \n+
    1182 bufferSize_[0]=0;
    \n+
    1183 bufferSize_[1]=0;
    \n+
    1184
    \n+
    1185 for(const_iterator interfacePair = interfaces_.begin();
    \n+
    1186 interfacePair != end; ++interfacePair) {
    \n+
    1187 int noSend = MessageSizeCalculator<Data,Flag>() (source, interfacePair->second.first);
    \n+
    1188 int noRecv = MessageSizeCalculator<Data,Flag>() (dest, interfacePair->second.second);
    \n+
    1189 if (noSend + noRecv > 0)
    \n+
    1190 messageInformation_.insert(std::make_pair(interfacePair->first,
    \n+
    1191 std::make_pair(MessageInformation(bufferSize_[0],
    \n+
    1192 noSend*sizeof(typename CommPolicy<Data>::IndexedType)),
    \n+
    1193 MessageInformation(bufferSize_[1],
    \n+
    1194 noRecv*sizeof(typename CommPolicy<Data>::IndexedType)))));
    \n+
    1195 bufferSize_[0] += noSend;
    \n+
    1196 bufferSize_[1] += noRecv;
    \n+
    1197 }
    \n+
    1198
    \n+
    1199 bufferSize_[0] *= sizeof(typename CommPolicy<Data>::IndexedType);
    \n+
    1200 bufferSize_[1] *= sizeof(typename CommPolicy<Data>::IndexedType);
    \n+
    1201 // allocate the buffers
    \n+
    1202 buffers_[0] = new char[bufferSize_[0]];
    \n+
    1203 buffers_[1] = new char[bufferSize_[1]];
    \n+
    1204 }
    \n+
    1205
    \n+
    1206 inline void BufferedCommunicator::free()
    \n+
    1207 {
    \n+
    1208 messageInformation_.clear();
    \n+
    1209 if(buffers_[0])
    \n+
    1210 delete[] buffers_[0];
    \n+
    1211
    \n+
    1212 if(buffers_[1])
    \n+
    1213 delete[] buffers_[1];
    \n+
    1214 buffers_[0]=buffers_[1]=0;
    \n+
    1215 }
    \n+
    1216
    \n+\n+
    1218 {
    \n+
    1219 free();
    \n+
    1220 }
    \n+
    1221
    \n+
    1222 template<class Data>
    \n+
    1223 inline int BufferedCommunicator::MessageSizeCalculator<Data,SizeOne>::operator()
    \n+
    1224 (const InterfaceInformation& info) const
    \n+
    1225 {
    \n+
    1226 return info.size();
    \n+
    1227 }
    \n+
    1228
    \n+
    1229
    \n+
    1230 template<class Data>
    \n+
    1231 inline int BufferedCommunicator::MessageSizeCalculator<Data,SizeOne>::operator()
    \n+
    1232 (const Data&, const InterfaceInformation& info) const
    \n+
    1233 {
    \n+
    1234 return operator()(info);
    \n+
    1235 }
    \n+
    1236
    \n+
    1237
    \n+
    1238 template<class Data>
    \n+
    1239 inline int BufferedCommunicator::MessageSizeCalculator<Data, VariableSize>::operator()
    \n+
    1240 (const Data& data, const InterfaceInformation& info) const
    \n+
    1241 {
    \n+
    1242 int entries=0;
    \n+
    1243
    \n+
    1244 for(size_t i=0; i < info.size(); i++)
    \n+
    1245 entries += CommPolicy<Data>::getSize(data,info[i]);
    \n+
    1246
    \n+
    1247 return entries;
    \n+
    1248 }
    \n+
    1249
    \n+
    1250
    \n+
    1251 template<class Data, class GatherScatter, bool FORWARD>
    \n+
    1252 inline void BufferedCommunicator::MessageGatherer<Data,GatherScatter,FORWARD,VariableSize>::operator()(const InterfaceMap& interfaces,const Data& data, Type* buffer, [[maybe_unused]] size_t bufferSize) const
    \n+
    1253 {
    \n+
    1254 typedef typename InterfaceMap::const_iterator
    \n+
    1255 const_iterator;
    \n+
    1256
    \n+
    1257 int rank;
    \n+
    1258 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    \n+
    1259 const const_iterator end = interfaces.end();
    \n+
    1260 size_t index=0;
    \n+
    1261
    \n+
    1262 for(const_iterator interfacePair = interfaces.begin();
    \n+
    1263 interfacePair != end; ++interfacePair) {
    \n+
    1264 int size = forward ? interfacePair->second.first.size() :
    \n+
    1265 interfacePair->second.second.size();
    \n+
    1266
    \n+
    1267 for(int i=0; i < size; i++) {
    \n+
    1268 int local = forward ? interfacePair->second.first[i] :
    \n+
    1269 interfacePair->second.second[i];
    \n+
    1270 for(std::size_t j=0; j < CommPolicy<Data>::getSize(data, local); j++, index++) {
    \n+
    1271
    \n+
    1272#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1273 assert(bufferSize>=(index+1)*sizeof(typename CommPolicy<Data>::IndexedType));
    \n+
    1274#endif
    \n+
    1275 buffer[index]=GatherScatter::gather(data, local, j);
    \n+
    1276 }
    \n+
    1277
    \n+
    1278 }
    \n+
    1279 }
    \n+
    1280
    \n+
    1281 }
    \n+
    1282
    \n+
    1283
    \n+
    1284 template<class Data, class GatherScatter, bool FORWARD>
    \n+
    1285 inline void BufferedCommunicator::MessageGatherer<Data,GatherScatter,FORWARD,SizeOne>::operator()(
    \n+
    1286 const InterfaceMap& interfaces, const Data& data, Type* buffer, [[maybe_unused]] size_t bufferSize) const
    \n+
    1287 {
    \n+
    1288 typedef typename InterfaceMap::const_iterator
    \n+
    1289 const_iterator;
    \n+
    1290 const const_iterator end = interfaces.end();
    \n+
    1291 size_t index = 0;
    \n+
    1292
    \n+
    1293 int rank;
    \n+
    1294 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    \n+
    1295
    \n+
    1296 for(const_iterator interfacePair = interfaces.begin();
    \n+
    1297 interfacePair != end; ++interfacePair) {
    \n+
    1298 size_t size = FORWARD ? interfacePair->second.first.size() :
    \n+
    1299 interfacePair->second.second.size();
    \n+
    1300
    \n+
    1301 for(size_t i=0; i < size; i++) {
    \n+
    1302
    \n+
    1303#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1304 assert(bufferSize>=(index+1)*sizeof(typename CommPolicy<Data>::IndexedType));
    \n+
    1305#endif
    \n+
    1306
    \n+
    1307 buffer[index++] = GatherScatter::gather(data, FORWARD ? interfacePair->second.first[i] :
    \n+
    1308 interfacePair->second.second[i]);
    \n+
    1309 }
    \n+
    1310 }
    \n+
    1311
    \n+
    1312 }
    \n+
    1313
    \n+
    1314
    \n+
    1315 template<class Data, class GatherScatter, bool FORWARD>
    \n+
    1316 inline void BufferedCommunicator::MessageScatterer<Data,GatherScatter,FORWARD,VariableSize>::operator()(const InterfaceMap& interfaces, Data& data, Type* buffer, const int& proc) const
    \n+
    1317 {
    \n+
    1318 typedef typename InterfaceMap::value_type::second_type::first_type Information;
    \n+
    1319 const typename InterfaceMap::const_iterator infoPair = interfaces.find(proc);
    \n+
    1320
    \n+
    1321 assert(infoPair!=interfaces.end());
    \n+
    1322
    \n+
    1323 const Information& info = FORWARD ? infoPair->second.second :
    \n+
    1324 infoPair->second.first;
    \n+
    1325
    \n+
    1326 for(size_t i=0, index=0; i < info.size(); i++) {
    \n+
    1327 for(size_t j=0; j < CommPolicy<Data>::getSize(data, info[i]); j++)
    \n+
    1328 GatherScatter::scatter(data, buffer[index++], info[i], j);
    \n+
    1329 }
    \n+
    1330 }
    \n+
    1331
    \n+
    1332
    \n+
    1333 template<class Data, class GatherScatter, bool FORWARD>
    \n+
    1334 inline void BufferedCommunicator::MessageScatterer<Data,GatherScatter,FORWARD,SizeOne>::operator()(const InterfaceMap& interfaces, Data& data, Type* buffer, const int& proc) const
    \n+
    1335 {
    \n+
    1336 typedef typename InterfaceMap::value_type::second_type::first_type Information;
    \n+
    1337 const typename InterfaceMap::const_iterator infoPair = interfaces.find(proc);
    \n+
    1338
    \n+
    1339 assert(infoPair!=interfaces.end());
    \n+
    1340
    \n+
    1341 const Information& info = FORWARD ? infoPair->second.second :
    \n+
    1342 infoPair->second.first;
    \n+
    1343
    \n+
    1344 for(size_t i=0; i < info.size(); i++) {
    \n+
    1345 GatherScatter::scatter(data, buffer[i], info[i]);
    \n+
    1346 }
    \n+
    1347 }
    \n+
    1348
    \n+
    1349
    \n+
    1350 template<class GatherScatter,class Data>
    \n+
    1351 void BufferedCommunicator::forward(Data& data)
    \n+
    1352 {
    \n+
    1353 this->template sendRecv<GatherScatter,true>(data, data);
    \n+
    1354 }
    \n+
    1355
    \n+
    1356
    \n+
    1357 template<class GatherScatter, class Data>
    \n+
    1358 void BufferedCommunicator::backward(Data& data)
    \n+
    1359 {
    \n+
    1360 this->template sendRecv<GatherScatter,false>(data, data);
    \n+
    1361 }
    \n+
    1362
    \n+
    1363
    \n+
    1364 template<class GatherScatter, class Data>
    \n+
    1365 void BufferedCommunicator::forward(const Data& source, Data& dest)
    \n+
    1366 {
    \n+
    1367 this->template sendRecv<GatherScatter,true>(source, dest);
    \n+
    1368 }
    \n+
    1369
    \n+
    1370
    \n+
    1371 template<class GatherScatter, class Data>
    \n+
    1372 void BufferedCommunicator::backward(Data& source, const Data& dest)
    \n+
    1373 {
    \n+
    1374 this->template sendRecv<GatherScatter,false>(dest, source);
    \n+
    1375 }
    \n+
    1376
    \n+
    1377
    \n+
    1378 template<class GatherScatter, bool FORWARD, class Data>
    \n+
    1379 void BufferedCommunicator::sendRecv(const Data& source, Data& dest)
    \n+
    1380 {
    \n+
    1381 int rank, lrank;
    \n+
    1382
    \n+
    1383 MPI_Comm_rank(MPI_COMM_WORLD,&rank);
    \n+
    1384 MPI_Comm_rank(MPI_COMM_WORLD,&lrank);
    \n+
    1385
    \n+
    1386 typedef typename CommPolicy<Data>::IndexedType Type;
    \n+
    1387 Type *sendBuffer, *recvBuffer;
    \n+
    1388 size_t sendBufferSize;
    \n+
    1389#ifndef NDEBUG
    \n+
    1390 size_t recvBufferSize;
    \n+
    1391#endif
    \n+
    1392
    \n+
    1393 if(FORWARD) {
    \n+
    1394 sendBuffer = reinterpret_cast<Type*>(buffers_[0]);
    \n+
    1395 sendBufferSize = bufferSize_[0];
    \n+
    1396 recvBuffer = reinterpret_cast<Type*>(buffers_[1]);
    \n+
    1397#ifndef NDEBUG
    \n+
    1398 recvBufferSize = bufferSize_[1];
    \n+
    1399#endif
    \n+
    1400 }else{
    \n+
    1401 sendBuffer = reinterpret_cast<Type*>(buffers_[1]);
    \n+
    1402 sendBufferSize = bufferSize_[1];
    \n+
    1403 recvBuffer = reinterpret_cast<Type*>(buffers_[0]);
    \n+
    1404#ifndef NDEBUG
    \n+
    1405 recvBufferSize = bufferSize_[0];
    \n+
    1406#endif
    \n+
    1407 }
    \n+
    1408 typedef typename CommPolicy<Data>::IndexedTypeFlag Flag;
    \n+
    1409
    \n+
    1410 MessageGatherer<Data,GatherScatter,FORWARD,Flag>() (interfaces_, source, sendBuffer, sendBufferSize);
    \n+
    1411
    \n+
    1412 MPI_Request* sendRequests = new MPI_Request[messageInformation_.size()];
    \n+
    1413 MPI_Request* recvRequests = new MPI_Request[messageInformation_.size()];
    \n+
    1414 /* Number of recvRequests that are not MPI_REQUEST_NULL */
    \n+
    1415 size_t numberOfRealRecvRequests = 0;
    \n+
    1416
    \n+
    1417 // Setup receive first
    \n+
    1418 typedef typename InformationMap::const_iterator const_iterator;
    \n+
    1419
    \n+
    1420 const const_iterator end = messageInformation_.end();
    \n+
    1421 size_t i=0;
    \n+
    1422 int* processMap = new int[messageInformation_.size()];
    \n+
    1423
    \n+
    1424 for(const_iterator info = messageInformation_.begin(); info != end; ++info, ++i) {
    \n+
    1425 processMap[i]=info->first;
    \n+
    1426 if(FORWARD) {
    \n+
    1427 assert(info->second.second.start_*sizeof(typename CommPolicy<Data>::IndexedType)+info->second.second.size_ <= recvBufferSize );
    \n+
    1428 Dune::dvverb<<rank<<": receiving "<<info->second.second.size_<<" from "<<info->first<<std::endl;
    \n+
    1429 if(info->second.second.size_) {
    \n+
    1430 MPI_Irecv(recvBuffer+info->second.second.start_, info->second.second.size_,
    \n+
    1431 MPI_BYTE, info->first, commTag_, communicator_,
    \n+
    1432 recvRequests+i);
    \n+
    1433 numberOfRealRecvRequests += 1;
    \n+
    1434 } else {
    \n+
    1435 // Nothing to receive -> set request to inactive
    \n+
    1436 recvRequests[i]=MPI_REQUEST_NULL;
    \n+
    1437 }
    \n+
    1438 }else{
    \n+
    1439 assert(info->second.first.start_*sizeof(typename CommPolicy<Data>::IndexedType)+info->second.first.size_ <= recvBufferSize );
    \n+
    1440 Dune::dvverb<<rank<<": receiving "<<info->second.first.size_<<" to "<<info->first<<std::endl;
    \n+
    1441 if(info->second.first.size_) {
    \n+
    1442 MPI_Irecv(recvBuffer+info->second.first.start_, info->second.first.size_,
    \n+
    1443 MPI_BYTE, info->first, commTag_, communicator_,
    \n+
    1444 recvRequests+i);
    \n+
    1445 numberOfRealRecvRequests += 1;
    \n+
    1446 } else {
    \n+
    1447 // Nothing to receive -> set request to inactive
    \n+
    1448 recvRequests[i]=MPI_REQUEST_NULL;
    \n+
    1449 }
    \n+
    1450 }
    \n+
    1451 }
    \n+
    1452
    \n+
    1453 // now the send requests
    \n+
    1454 i=0;
    \n+
    1455 for(const_iterator info = messageInformation_.begin(); info != end; ++info, ++i)
    \n+
    1456 if(FORWARD) {
    \n+
    1457 assert(info->second.second.start_*sizeof(typename CommPolicy<Data>::IndexedType)+info->second.second.size_ <= recvBufferSize );
    \n+
    1458 Dune::dvverb<<rank<<": sending "<<info->second.first.size_<<" to "<<info->first<<std::endl;
    \n+
    1459 assert(info->second.first.start_*sizeof(typename CommPolicy<Data>::IndexedType)+info->second.first.size_ <= sendBufferSize );
    \n+
    1460 if(info->second.first.size_)
    \n+
    1461 MPI_Issend(sendBuffer+info->second.first.start_, info->second.first.size_,
    \n+
    1462 MPI_BYTE, info->first, commTag_, communicator_,
    \n+
    1463 sendRequests+i);
    \n+
    1464 else
    \n+
    1465 // Nothing to send -> set request to inactive
    \n+
    1466 sendRequests[i]=MPI_REQUEST_NULL;
    \n+
    1467 }else{
    \n+
    1468 assert(info->second.second.start_*sizeof(typename CommPolicy<Data>::IndexedType)+info->second.second.size_ <= sendBufferSize );
    \n+
    1469 Dune::dvverb<<rank<<": sending "<<info->second.second.size_<<" to "<<info->first<<std::endl;
    \n+
    1470 if(info->second.second.size_)
    \n+
    1471 MPI_Issend(sendBuffer+info->second.second.start_, info->second.second.size_,
    \n+
    1472 MPI_BYTE, info->first, commTag_, communicator_,
    \n+
    1473 sendRequests+i);
    \n+
    1474 else
    \n+
    1475 // Nothing to send -> set request to inactive
    \n+
    1476 sendRequests[i]=MPI_REQUEST_NULL;
    \n+
    1477 }
    \n+
    1478
    \n+
    1479 // Wait for completion of receive and immediately start scatter
    \n+
    1480 i=0;
    \n+
    1481 //int success = 1;
    \n+
    1482 int finished = MPI_UNDEFINED;
    \n+
    1483 MPI_Status status; //[messageInformation_.size()];
    \n+
    1484 //MPI_Waitall(messageInformation_.size(), recvRequests, status);
    \n+
    1485
    \n+
    1486 for(i=0; i< numberOfRealRecvRequests; i++) {
    \n+
    1487 status.MPI_ERROR=MPI_SUCCESS;
    \n+
    1488 MPI_Waitany(messageInformation_.size(), recvRequests, &finished, &status);
    \n+
    1489 assert(finished != MPI_UNDEFINED);
    \n+
    1490
    \n+
    1491 if(status.MPI_ERROR==MPI_SUCCESS) {
    \n+
    1492 int& proc = processMap[finished];
    \n+
    1493 typename InformationMap::const_iterator infoIter = messageInformation_.find(proc);
    \n+
    1494 assert(infoIter != messageInformation_.end());
    \n+
    1495
    \n+
    1496 MessageInformation info = (FORWARD) ? infoIter->second.second : infoIter->second.first;
    \n+
    1497 assert(info.start_+info.size_ <= recvBufferSize);
    \n+
    1498
    \n+
    1499 MessageScatterer<Data,GatherScatter,FORWARD,Flag>() (interfaces_, dest, recvBuffer+info.start_, proc);
    \n+
    1500 }else{
    \n+
    1501 std::cerr<<rank<<": MPI_Error occurred while receiving message from "<<processMap[finished]<<std::endl;
    \n+
    1502 //success=0;
    \n+
    1503 }
    \n+
    1504 }
    \n+
    1505
    \n+
    1506 MPI_Status recvStatus;
    \n+
    1507
    \n+
    1508 // Wait for completion of sends
    \n+
    1509 for(i=0; i< messageInformation_.size(); i++)
    \n+
    1510 if(MPI_SUCCESS!=MPI_Wait(sendRequests+i, &recvStatus)) {
    \n+
    1511 std::cerr<<rank<<": MPI_Error occurred while sending message to "<<processMap[finished]<<std::endl;
    \n+
    1512 //success=0;
    \n+
    1513 }
    \n+
    1514 /*
    \n+
    1515 int globalSuccess;
    \n+
    1516 MPI_Allreduce(&success, &globalSuccess, 1, MPI_INT, MPI_MIN, interface_->communicator());
    \n+
    1517
    \n+
    1518 if(!globalSuccess)
    \n+
    1519 DUNE_THROW(CommunicationError, "A communication error occurred!");
    \n+
    1520 */
    \n+
    1521 delete[] processMap;
    \n+
    1522 delete[] sendRequests;
    \n+
    1523 delete[] recvRequests;
    \n+
    1524
    \n+
    1525 }
    \n+
    1526
    \n+
    1527#endif // DOXYGEN
    \n+
    1528
    \n+
    1530}
    \n+
    1531
    \n+
    1532#endif // HAVE_MPI
    \n+
    1533#endif // DUNE_COMMON_PARALLEL_COMMUNICATOR_HH
    \n+
    Classes describing a distributed indexset.
    \n+
    Standard Dune debug streams.
    \n+
    A few common exception classes.
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n+
    DVVerbType dvverb(std::cout)
    stream for very verbose output.
    Definition stdstreams.hh:96
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n+
    constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
    Return the size of the sequence.
    Definition integersequence.hh:75
    \n+
    Default exception class for I/O errors.
    Definition exceptions.hh:231
    \n+
    Flag for marking indexed data structures where data at each index is of the same size.
    Definition communicator.hh:110
    \n+
    Flag for marking indexed data structures where the data at each index may be a variable multiple of a...
    Definition communicator.hh:118
    \n+
    Default policy used for communicating an indexed type.
    Definition communicator.hh:128
    \n+
    V::value_type IndexedType
    The type we get at each index with operator[].
    Definition communicator.hh:147
    \n+
    static int getSize(const V &, int index)
    Get the number of primitive elements at that index.
    \n+
    SizeOne IndexedTypeFlag
    Whether the indexed type has variable size or there is always one value at each index.
    Definition communicator.hh:153
    \n+
    static const void * getAddress(const V &v, int index)
    Get the address of entry at an index.
    \n+
    V Type
    The type the policy is for.
    Definition communicator.hh:140
    \n+
    Definition communicator.hh:173
    \n+
    Definition communicator.hh:175
    \n+\n+\n+
    VariableBlockVector< FieldVector< K, n >, A > Type
    Definition communicator.hh:180
    \n+\n+\n+
    Error thrown if there was a problem with the communication.
    Definition communicator.hh:195
    \n+
    GatherScatter default implementation that just copies data.
    Definition communicator.hh:202
    \n+
    static void scatter(T &vec, const IndexedType &v, std::size_t i)
    \n+
    CommPolicy< T >::IndexedType IndexedType
    Definition communicator.hh:203
    \n+
    static const IndexedType & gather(const T &vec, std::size_t i)
    \n+
    A communicator that uses buffers to gather and scatter the data to be send or received.
    Definition communicator.hh:458
    \n+
    void backward(Data &data)
    Backward send where target and source are the same.
    \n+
    BufferedCommunicator()
    Constructor.
    \n+
    ~BufferedCommunicator()
    Destructor.
    \n+
    void forward(const Data &source, Data &dest)
    Send from source to target.
    \n+
    void free()
    Free the allocated memory (i.e. buffers and message information.
    \n+
    std::enable_if< std::is_same< SizeOne, typenameCommPolicy< Data >::IndexedTypeFlag >::value, void >::type build(const Interface &interface)
    Build the buffers and information for the communication process.
    \n+
    void backward(Data &source, const Data &dest)
    Communicate in the reverse direction, i.e. send from target to source.
    \n+
    void build(const Data &source, const Data &target, const Interface &interface)
    Build the buffers and information for the communication process.
    \n+
    void forward(Data &data)
    Forward send where target and source are the same.
    \n+
    Manager class for the mapping between local indices and globally unique indices.
    Definition indexset.hh:218
    \n+
    Base class of all classes representing a communication interface.
    Definition parallel/interface.hh:44
    \n+
    Information describing an interface.
    Definition parallel/interface.hh:110
    \n+
    Communication interface between remote and local indices.
    Definition parallel/interface.hh:218
    \n+
    An index present on the local process.
    Definition localindex.hh:35
    \n+
    The indices present on remote processes.
    Definition remoteindices.hh:190
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    The type of the global index.
    Definition remoteindices.hh:216
    \n+
    LocalIndex::Attribute Attribute
    The type of the attribute.
    Definition remoteindices.hh:227
    \n+
    ParallelIndexSet::LocalIndex LocalIndex
    The type of the local index.
    Definition remoteindices.hh:222
    \n+
    Provides classes for building the communication interface between remote indices.
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,65 +1,1206 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-path.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+communicator.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_PATH_HH\n-6#define DUNE_COMMON_PATH_HH\n+5#ifndef DUNE_COMMON_PARALLEL_COMMUNICATOR_HH\n+6#define DUNE_COMMON_PARALLEL_COMMUNICATOR_HH\n 7\n-8#include \n+8#if HAVE_MPI\n 9\n-10namespace _\bD_\bu_\bn_\be {\n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16\n+17#include \n+18\n+19#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+20#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b._\bh_\bh>\n+21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\br_\be_\bm_\bo_\bt_\be_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh>\n 23\n-51 std::string _\bc_\bo_\bn_\bc_\ba_\bt_\bP_\ba_\bt_\bh_\bs(const std::string& base, const std::string& p);\n-52\n-54\n-98 std::string _\bp_\br_\bo_\bc_\be_\bs_\bs_\bP_\ba_\bt_\bh(const std::string& p);\n-99\n-101\n-109 bool _\bp_\ba_\bt_\bh_\bI_\bn_\bd_\bi_\bc_\ba_\bt_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bo_\br_\by(const std::string& p);\n-110\n-112\n-151 std::string _\bp_\br_\be_\bt_\bt_\by_\bP_\ba_\bt_\bh(const std::string& p, bool isDirectory);\n-152\n+24namespace _\bD_\bu_\bn_\be\n+25{\n+_\b1_\b0_\b9 struct _\bS_\bi_\bz_\be_\bO_\bn_\be\n+110 {};\n+111\n+_\b1_\b1_\b7 struct _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be\n+118 {};\n+119\n+120\n+126 template\n+_\b1_\b2_\b7 struct _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by\n+128 {\n+_\b1_\b4_\b0 typedef V _\bT_\by_\bp_\be;\n+141\n+_\b1_\b4_\b7 typedef typename V::value_type _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n+148\n+_\b1_\b5_\b3 typedef _\bS_\bi_\bz_\be_\bO_\bn_\be _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n 154\n-160 std::string _\bp_\br_\be_\bt_\bt_\by_\bP_\ba_\bt_\bh(const std::string& p);\n-161\n-163\n-179 std::string _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bP_\ba_\bt_\bh(const std::string& newbase, const std::string& p);\n-180\n-182}\n+_\b1_\b6_\b3 static const void* _\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs(const V& v, int index);\n+164\n+_\b1_\b7_\b0 static int _\bg_\be_\bt_\bS_\bi_\bz_\be(const V&, int index);\n+171 };\n+172\n+_\b1_\b7_\b3 template class _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br;\n+174\n+_\b1_\b7_\b5 template class _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br;\n+176\n+177 template\n+_\b1_\b7_\b8 struct _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by<_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br, A> >\n+179 {\n+_\b1_\b8_\b0 typedef _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\b _\bn_\b>, A> _\bT_\by_\bp_\be;\n+181\n+_\b1_\b8_\b2 typedef typename Type::B _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n 183\n-184#endif // DUNE_COMMON_PATH_HH\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bo_\bc_\be_\bs_\bs_\bP_\ba_\bt_\bh\n-std::string processPath(const std::string &p)\n-sanitize a path for further processing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn path.cc:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\ba_\bt_\bh_\bI_\bn_\bd_\bi_\bc_\ba_\bt_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bo_\br_\by\n-bool pathIndicatesDirectory(const std::string &p)\n-check whether the given path indicates that it is a directory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn path.cc:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\be_\bt_\bt_\by_\bP_\ba_\bt_\bh\n-std::string prettyPath(const std::string &p, bool isDirectory)\n-pretty print path\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn path.cc:122\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bP_\ba_\bt_\bh\n-std::string relativePath(const std::string &newbase, const std::string &p)\n-compute a relative path between two paths\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn path.cc:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bc_\ba_\bt_\bP_\ba_\bt_\bh_\bs\n-std::string concatPaths(const std::string &base, const std::string &p)\n-concatenate two paths\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn path.cc:28\n+_\b1_\b8_\b4 typedef _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n+185\n+_\b1_\b8_\b6 static const void* _\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs(const _\bT_\by_\bp_\be& v, int i);\n+187\n+_\b1_\b8_\b8 static int _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be& v, int i);\n+189 };\n+190\n+_\b1_\b9_\b4 class _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bE_\br_\br_\bo_\br : public _\bI_\bO_\bE_\br_\br_\bo_\br\n+195 {};\n+196\n+200 template\n+_\b2_\b0_\b1 struct _\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+202 {\n+_\b2_\b0_\b3 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bT_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n+204\n+_\b2_\b0_\b5 static const _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be& _\bg_\ba_\bt_\bh_\be_\br(const T& vec, std::size_t i);\n+206\n+_\b2_\b0_\b7 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(T& vec, const _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be& v, std::size_t i);\n+208\n+209 };\n+210\n+222 template\n+223 class DatatypeCommunicator : public _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bB_\bu_\bi_\bl_\bd_\be_\br\n+224 {\n+225 public:\n+226\n+230 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+231\n+235 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n+236\n+240 typedef typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx GlobalIndex;\n+241\n+245 typedef typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be Attribute;\n+246\n+250 typedef typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+251\n+255 DatatypeCommunicator();\n+256\n+260 ~DatatypeCommunicator();\n+261\n+288 template\n+289 void build(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& remoteIndices, const T1& sourceFlags, V&\n+sendData, const T2& destFlags, V& receiveData);\n+290\n+294 void forward();\n+295\n+299 void backward();\n+300\n+304 void free();\n+305 private:\n+309 constexpr static int commTag_ = 234;\n+310\n+314 const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs* remoteIndices_;\n+315\n+316 typedef std::map >\n+317 MessageTypeMap;\n+318\n+322 MessageTypeMap messageTypes;\n+323\n+327 void* data_;\n+328\n+329 MPI_Request* requests_[2];\n+330\n+334 bool created_;\n+335\n+339 template\n+340 void createRequests(V& sendData, V& receiveData);\n+341\n+345 template\n+346 void createDataTypes(const T1& source, const T2& destination, V& data);\n+347\n+351 void sendRecv(MPI_Request* req);\n+352\n+356 struct IndexedTypeInformation\n+357 {\n+363 void build(int i)\n+364 {\n+365 length = new int[i];\n+366 displ = new MPI_Aint[i];\n+367 size = i;\n+368 }\n+369\n+373 void free()\n+374 {\n+375 delete[] length;\n+376 delete[] displ;\n+377 }\n+379 int* length;\n+381 MPI_Aint* displ;\n+387 int elements;\n+391 int size;\n+392 };\n+393\n+399 template\n+400 struct MPIDatatypeInformation\n+401 {\n+406 MPIDatatypeInformation(const V& data) : data_(data)\n+407 {}\n+408\n+414 void reserve(int proc, int size)\n+415 {\n+416 information_[proc].build(size);\n+417 }\n+424 void add(int proc, int local)\n+425 {\n+426 IndexedTypeInformation& info=information_[proc];\n+427 assert((info.elements)(CommPolicy::getAddress(data_,\n+local)),\n+429 info.displ+info.elements);\n+430 info.length[info.elements]=CommPolicy::getSize(data_, local);\n+431 info.elements++;\n+432 }\n+433\n+438 std::map information_;\n+442 const V& data_;\n+443\n+444 };\n+445\n+446 };\n+447\n+_\b4_\b5_\b7 class _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+458 {\n+459\n+460 public:\n+_\b4_\b6_\b4 _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br();\n+465\n+472 template\n+473 typename std::enable_if::\n+IndexedTypeFlag>::value, void>::type\n+_\b4_\b7_\b4 _\bb_\bu_\bi_\bl_\bd(const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& interface);\n+475\n+483 template\n+_\b4_\b8_\b4 void _\bb_\bu_\bi_\bl_\bd(const Data& source, const Data& target, const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be&\n+interface);\n+485\n+514 template\n+_\b5_\b1_\b5 void _\bf_\bo_\br_\bw_\ba_\br_\bd(const Data& source, Data& dest);\n+516\n+545 template\n+_\b5_\b4_\b6 void _\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd(Data& source, const Data& dest);\n+547\n+573 template\n+_\b5_\b7_\b4 void _\bf_\bo_\br_\bw_\ba_\br_\bd(Data& data);\n+575\n+601 template\n+_\b6_\b0_\b2 void _\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd(Data& data);\n+603\n+_\b6_\b0_\b7 void _\bf_\br_\be_\be();\n+608\n+_\b6_\b1_\b2 _\b~_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br();\n+613\n+614 private:\n+615\n+619 typedef std::map >\n+620 InterfaceMap;\n+621\n+622\n+626 template\n+627 struct MessageSizeCalculator\n+628 {};\n+629\n+634 template\n+635 struct MessageSizeCalculator\n+636 {\n+643 inline int operator()(const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& info) const;\n+652 inline int operator()(const Data& data, const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& info)\n+const;\n+653 };\n+654\n+659 template\n+660 struct MessageSizeCalculator\n+661 {\n+670 inline int operator()(const Data& data, const InterfaceInformation& info)\n+const;\n+671 };\n+672\n+676 template\n+677 struct MessageGatherer\n+678 {};\n+679\n+684 template\n+685 struct MessageGatherer\n+686 {\n+688 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be Type;\n+689\n+694 typedef GatherScatter Gatherer;\n+695\n+701 constexpr static bool _\bf_\bo_\br_\bw_\ba_\br_\bd = send;\n+702\n+710 inline void operator()(const InterfaceMap& interface, const Data& data,\n+Type* buffer, size_t bufferSize) const;\n+711 };\n+712\n+717 template\n+718 struct MessageGatherer\n+719 {\n+721 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be Type;\n+722\n+727 typedef GatherScatter Gatherer;\n+728\n+734 constexpr static bool _\bf_\bo_\br_\bw_\ba_\br_\bd = send;\n+735\n+743 inline void operator()(const InterfaceMap& interface, const Data& data,\n+Type* buffer, size_t bufferSize) const;\n+744 };\n+745\n+749 template\n+750 struct MessageScatterer\n+751 {};\n+752\n+757 template\n+758 struct MessageScatterer\n+759 {\n+761 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be Type;\n+762\n+767 typedef GatherScatter Scatterer;\n+768\n+774 constexpr static bool _\bf_\bo_\br_\bw_\ba_\br_\bd = send;\n+775\n+783 inline void operator()(const InterfaceMap& interface, Data& data, Type*\n+buffer, const int& proc) const;\n+784 };\n+789 template\n+790 struct MessageScatterer\n+791 {\n+793 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be Type;\n+794\n+799 typedef GatherScatter Scatterer;\n+800\n+806 constexpr static bool _\bf_\bo_\br_\bw_\ba_\br_\bd = send;\n+807\n+815 inline void operator()(const InterfaceMap& interface, Data& data, Type*\n+buffer, const int& proc) const;\n+816 };\n+817\n+821 struct MessageInformation\n+822 {\n+824 MessageInformation()\n+825 : start_(0), size_(0)\n+826 {}\n+827\n+835 MessageInformation(size_t start, size_t _\bs_\bi_\bz_\be)\n+836 : start_(start), size_(_\bs_\bi_\bz_\be)\n+837 {}\n+841 size_t start_;\n+845 size_t size_;\n+846 };\n+847\n+854 typedef std::map >\n+855 InformationMap;\n+859 InformationMap messageInformation_;\n+863 char* buffers_[2];\n+867 size_t bufferSize_[2];\n+868\n+872 constexpr static int commTag_ = 0;\n+873\n+877 std::map >\n+interfaces_;\n+878\n+879 MPI_Comm communicator_;\n+880\n+884 template\n+885 void sendRecv(const Data& source, Data& target);\n+886\n+887 };\n+888\n+889#ifndef DOXYGEN\n+890\n+891 template\n+892 inline const void* _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bV_\b>_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs(const V& v, int index)\n+893 {\n+894 return &(v[index]);\n+895 }\n+896\n+897 template\n+898 inline int _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bV_\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be([[maybe_unused]] const V& v, [\n+[maybe_unused]] int index)\n+899 {\n+900 return 1;\n+901 }\n+902\n+903 template\n+904 inline const void* CommPolicy, A> >::\n+getAddress(const Type& v, int index)\n+905 {\n+906 return &(v[index][0]);\n+907 }\n+908\n+909 template\n+910 inline int CommPolicy, A> >::getSize\n+(const Type& v, int index)\n+911 {\n+912 return v[index].getsize();\n+913 }\n+914\n+915 template\n+916 inline const typename CopyGatherScatter::IndexedType&\n+CopyGatherScatter::gather(const T & vec, std::size_t i)\n+917 {\n+918 return vec[i];\n+919 }\n+920\n+921 template\n+922 inline void CopyGatherScatter::scatter(T& vec, const IndexedType& v,\n+std::size_t i)\n+923 {\n+924 vec[i]=v;\n+925 }\n+926\n+927 template\n+928 DatatypeCommunicator::DatatypeCommunicator()\n+929 : remoteIndices_(0), created_(false)\n+930 {\n+931 requests_[0]=0;\n+932 requests_[1]=0;\n+933 }\n+934\n+935\n+936\n+937 template\n+938 DatatypeCommunicator::~DatatypeCommunicator()\n+939 {\n+940 free();\n+941 }\n+942\n+943 template\n+944 template\n+945 inline void DatatypeCommunicator::build(const RemoteIndices&\n+remoteIndices,\n+946 const T1& source, V& sendData,\n+947 const T2& destination, V& receiveData)\n+948 {\n+949 remoteIndices_ = &remoteIndices;\n+950 free();\n+951 createDataTypes(source,destination, receiveData);\n+952 createDataTypes(source,destination, sendData);\n+953 createRequests(sendData, receiveData);\n+954 createRequests(receiveData, sendData);\n+955 created_=true;\n+956 }\n+957\n+958 template\n+959 void DatatypeCommunicator::free()\n+960 {\n+961 if(created_) {\n+962 delete[] requests_[0];\n+963 delete[] requests_[1];\n+964 typedef MessageTypeMap::iterator iterator;\n+965 typedef MessageTypeMap::const_iterator const_iterator;\n+966\n+967 const const_iterator end=messageTypes.end();\n+968\n+969 for(iterator process = messageTypes.begin(); process != end; ++process) {\n+970 MPI_Datatype *type = &(process->second.first);\n+971 int finalized=0;\n+972 MPI_Finalized(&finalized);\n+973 if(*type!=MPI_DATATYPE_NULL && !finalized)\n+974 MPI_Type_free(type);\n+975 type = &(process->second.second);\n+976 if(*type!=MPI_DATATYPE_NULL && !finalized)\n+977 MPI_Type_free(type);\n+978 }\n+979 messageTypes.clear();\n+980 created_=false;\n+981 }\n+982\n+983 }\n+984\n+985 template\n+986 template\n+987 void DatatypeCommunicator::createDataTypes(const T1& sourceFlags, const\n+T2& destFlags, V& data)\n+988 {\n+989\n+990 MPIDatatypeInformation dataInfo(data);\n+991 this->template\n+buildInterface,send>\n+(*remoteIndices_,sourceFlags, destFlags, dataInfo);\n+992\n+993 typedef typename RemoteIndices::RemoteIndexMap::const_iterator\n+const_iterator;\n+994 const const_iterator end=this->remoteIndices_->end();\n+995\n+996 // Allocate MPI_Datatypes and deallocate memory for the type construction.\n+997 for(const_iterator process=this->remoteIndices_->begin(); process != end;\n+++process) {\n+998 IndexedTypeInformation& info=dataInfo.information_[process->first];\n+999 // Shift the displacement\n+1000 MPI_Aint base;\n+1001 MPI_Get_address(const_cast(_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bV_\b>_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs(data, 0)),\n+&base);\n+1002\n+1003 for(int i=0; i< info.elements; i++) {\n+1004 info.displ[i]-=base;\n+1005 }\n+1006\n+1007 // Create data type\n+1008 MPI_Datatype* type = &( send ? messageTypes[process->first].first :\n+messageTypes[process->first].second);\n+1009 MPI_Type_create_hindexed(info.elements, info.length, info.displ,\n+1010 MPITraits_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be>::getType(), type);\n+1011 MPI_Type_commit(type);\n+1012 // Deallocate memory\n+1013 info.free();\n+1014 }\n+1015 }\n+1016\n+1017 template\n+1018 template\n+1019 void DatatypeCommunicator::createRequests(V& sendData, V& receiveData)\n+1020 {\n+1021 typedef std::map >::\n+const_iterator MapIterator;\n+1022 int rank;\n+1023 static int index = createForward ? 1 : 0;\n+1024 int noMessages = messageTypes.size();\n+1025 // allocate request handles\n+1026 requests_[index] = new MPI_Request[2*noMessages];\n+1027 const MapIterator end = messageTypes.end();\n+1028 int request=0;\n+1029 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+1030\n+1031 // Set up the requests for receiving first\n+1032 for(MapIterator process = messageTypes.begin(); process != end;\n+1033 ++process, ++request) {\n+1034 MPI_Datatype type = createForward ? process->second.second : process-\n+>second.first;\n+1035 void* address = const_cast(_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bV_\b>_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs\n+(receiveData,0));\n+1036 MPI_Recv_init(address, 1, type, process->first, commTag_, this-\n+>remoteIndices_->communicator(), requests_[index]+request);\n+1037 }\n+1038\n+1039 // And now the send requests\n+1040\n+1041 for(MapIterator process = messageTypes.begin(); process != end;\n+1042 ++process, ++request) {\n+1043 MPI_Datatype type = createForward ? process->second.first : process-\n+>second.second;\n+1044 void* address = const_cast(_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bV_\b>_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs(sendData, 0));\n+1045 MPI_Ssend_init(address, 1, type, process->first, commTag_, this-\n+>remoteIndices_->communicator(), requests_[index]+request);\n+1046 }\n+1047 }\n+1048\n+1049 template\n+1050 void DatatypeCommunicator::forward()\n+1051 {\n+1052 sendRecv(requests_[1]);\n+1053 }\n+1054\n+1055 template\n+1056 void DatatypeCommunicator::backward()\n+1057 {\n+1058 sendRecv(requests_[0]);\n+1059 }\n+1060\n+1061 template\n+1062 void DatatypeCommunicator::sendRecv(MPI_Request* requests)\n+1063 {\n+1064 int noMessages = messageTypes.size();\n+1065 // Start the receive calls first\n+1066 MPI_Startall(noMessages, requests);\n+1067 // Now the send calls\n+1068 MPI_Startall(noMessages, requests+noMessages);\n+1069\n+1070 // Wait for completion of the communication send first then receive\n+1071 MPI_Status* status=new MPI_Status[2*noMessages];\n+1072 for(int i=0; i<2*noMessages; i++)\n+1073 status[i].MPI_ERROR=MPI_SUCCESS;\n+1074\n+1075 int send = MPI_Waitall(noMessages, requests+noMessages,\n+status+noMessages);\n+1076 int receive = MPI_Waitall(noMessages, requests, status);\n+1077\n+1078 // Error checks\n+1079 int success=1, globalSuccess=0;\n+1080 if(send==MPI_ERR_IN_STATUS) {\n+1081 int rank;\n+1082 MPI_Comm_rank(this->remoteIndices_->communicator(), &rank);\n+1083 std::cerr<remoteIndices_->communicator(), &rank);\n+1101 std::cerr<remoteIndices_->communicator());\n+1117\n+1118 delete[] status;\n+1119\n+1120 if(!globalSuccess)\n+1121 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(CommunicationError, \"A communication error occurred!\");\n+1122\n+1123 }\n+1124\n+1125 inline _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br()\n+1126 {\n+1127 buffers_[0]=0;\n+1128 buffers_[1]=0;\n+1129 bufferSize_[0]=0;\n+1130 bufferSize_[1]=0;\n+1131 }\n+1132\n+1133 template\n+1134 typename std::enable_if::\n+IndexedTypeFlag>::value, void>::type\n+1135 _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\bu_\bi_\bl_\bd(const Interface& interface)\n+1136 {\n+1137 interfaces_=interface.interfaces();\n+1138 communicator_=interface.communicator();\n+1139 typedef typename std::map >\n+1140 ::const_iterator const_iterator;\n+1141 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg Flag;\n+1142 const const_iterator end = interfaces_.end();\n+1143 int lrank;\n+1144 MPI_Comm_rank(communicator_, &lrank);\n+1145\n+1146 bufferSize_[0]=0;\n+1147 bufferSize_[1]=0;\n+1148\n+1149 for(const_iterator interfacePair = interfaces_.begin();\n+1150 interfacePair != end; ++interfacePair) {\n+1151 int noSend = MessageSizeCalculator() (interfacePair-\n+>second.first);\n+1152 int noRecv = MessageSizeCalculator() (interfacePair-\n+>second.second);\n+1153 if (noSend + noRecv > 0)\n+1154 messageInformation_.insert(std::make_pair(interfacePair->first,\n+1155 std::make_pair(MessageInformation(bufferSize_[0],\n+1156 noSend*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)),\n+1157 MessageInformation(bufferSize_[1],\n+1158 noRecv*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)))));\n+1159 bufferSize_[0] += noSend;\n+1160 bufferSize_[1] += noRecv;\n+1161 }\n+1162\n+1163 // allocate the buffers\n+1164 bufferSize_[0] *= sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be);\n+1165 bufferSize_[1] *= sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be);\n+1166\n+1167 buffers_[0] = new char[bufferSize_[0]];\n+1168 buffers_[1] = new char[bufferSize_[1]];\n+1169 }\n+1170\n+1171 template\n+1172 void _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\bu_\bi_\bl_\bd(const Data& source, const Data& dest,\n+const Interface& interface)\n+1173 {\n+1174\n+1175 interfaces_=interface.interfaces();\n+1176 communicator_=interface.communicator();\n+1177 typedef typename std::map >\n+1178 ::const_iterator const_iterator;\n+1179 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg Flag;\n+1180 const const_iterator end = interfaces_.end();\n+1181\n+1182 bufferSize_[0]=0;\n+1183 bufferSize_[1]=0;\n+1184\n+1185 for(const_iterator interfacePair = interfaces_.begin();\n+1186 interfacePair != end; ++interfacePair) {\n+1187 int noSend = MessageSizeCalculator() (source, interfacePair-\n+>second.first);\n+1188 int noRecv = MessageSizeCalculator() (dest, interfacePair-\n+>second.second);\n+1189 if (noSend + noRecv > 0)\n+1190 messageInformation_.insert(std::make_pair(interfacePair->first,\n+1191 std::make_pair(MessageInformation(bufferSize_[0],\n+1192 noSend*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)),\n+1193 MessageInformation(bufferSize_[1],\n+1194 noRecv*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)))));\n+1195 bufferSize_[0] += noSend;\n+1196 bufferSize_[1] += noRecv;\n+1197 }\n+1198\n+1199 bufferSize_[0] *= sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be);\n+1200 bufferSize_[1] *= sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be);\n+1201 // allocate the buffers\n+1202 buffers_[0] = new char[bufferSize_[0]];\n+1203 buffers_[1] = new char[bufferSize_[1]];\n+1204 }\n+1205\n+1206 inline void _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\br_\be_\be()\n+1207 {\n+1208 messageInformation_.clear();\n+1209 if(buffers_[0])\n+1210 delete[] buffers_[0];\n+1211\n+1212 if(buffers_[1])\n+1213 delete[] buffers_[1];\n+1214 buffers_[0]=buffers_[1]=0;\n+1215 }\n+1216\n+1217 inline _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br()\n+1218 {\n+1219 _\bf_\br_\be_\be();\n+1220 }\n+1221\n+1222 template\n+1223 inline int BufferedCommunicator::MessageSizeCalculator::\n+operator()\n+1224 (const InterfaceInformation& info) const\n+1225 {\n+1226 return info.size();\n+1227 }\n+1228\n+1229\n+1230 template\n+1231 inline int BufferedCommunicator::MessageSizeCalculator::\n+operator()\n+1232 (const Data&, const InterfaceInformation& info) const\n+1233 {\n+1234 return operator()(info);\n+1235 }\n+1236\n+1237\n+1238 template\n+1239 inline int BufferedCommunicator::MessageSizeCalculator::operator()\n+1240 (const Data& data, const InterfaceInformation& info) const\n+1241 {\n+1242 int entries=0;\n+1243\n+1244 for(size_t i=0; i < info.size(); i++)\n+1245 entries += _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be(data,info[i]);\n+1246\n+1247 return entries;\n+1248 }\n+1249\n+1250\n+1251 template\n+1252 inline void BufferedCommunicator::\n+MessageGatherer::operator()(const\n+InterfaceMap& interfaces,const Data& data, Type* buffer, [[maybe_unused]]\n+size_t bufferSize) const\n+1253 {\n+1254 typedef typename InterfaceMap::const_iterator\n+1255 const_iterator;\n+1256\n+1257 int rank;\n+1258 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+1259 const const_iterator end = interfaces.end();\n+1260 size_t index=0;\n+1261\n+1262 for(const_iterator interfacePair = interfaces.begin();\n+1263 interfacePair != end; ++interfacePair) {\n+1264 int _\bs_\bi_\bz_\be = forward ? interfacePair->second.first.size() :\n+1265 interfacePair->second.second.size();\n+1266\n+1267 for(int i=0; i < _\bs_\bi_\bz_\be; i++) {\n+1268 int local = forward ? interfacePair->second.first[i] :\n+1269 interfacePair->second.second[i];\n+1270 for(std::size_t j=0; j < CommPolicy::getSize(data, local); j++,\n+index++) {\n+1271\n+1272#ifdef DUNE_ISTL_WITH_CHECKING\n+1273 assert(bufferSize>=(index+1)*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be));\n+1274#endif\n+1275 buffer[index]=GatherScatter::gather(data, local, j);\n+1276 }\n+1277\n+1278 }\n+1279 }\n+1280\n+1281 }\n+1282\n+1283\n+1284 template\n+1285 inline void BufferedCommunicator::\n+MessageGatherer::operator()(\n+1286 const InterfaceMap& interfaces, const Data& data, Type* buffer, [\n+[maybe_unused]] size_t bufferSize) const\n+1287 {\n+1288 typedef typename InterfaceMap::const_iterator\n+1289 const_iterator;\n+1290 const const_iterator end = interfaces.end();\n+1291 size_t index = 0;\n+1292\n+1293 int rank;\n+1294 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+1295\n+1296 for(const_iterator interfacePair = interfaces.begin();\n+1297 interfacePair != end; ++interfacePair) {\n+1298 size_t _\bs_\bi_\bz_\be = FORWARD ? interfacePair->second.first.size() :\n+1299 interfacePair->second.second.size();\n+1300\n+1301 for(size_t i=0; i < _\bs_\bi_\bz_\be; i++) {\n+1302\n+1303#ifdef DUNE_ISTL_WITH_CHECKING\n+1304 assert(bufferSize>=(index+1)*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be));\n+1305#endif\n+1306\n+1307 buffer[index++] = GatherScatter::gather(data, FORWARD ? interfacePair-\n+>second.first[i] :\n+1308 interfacePair->second.second[i]);\n+1309 }\n+1310 }\n+1311\n+1312 }\n+1313\n+1314\n+1315 template\n+1316 inline void BufferedCommunicator::\n+MessageScatterer::operator()(const\n+InterfaceMap& interfaces, Data& data, Type* buffer, const int& proc) const\n+1317 {\n+1318 typedef typename InterfaceMap::value_type::second_type::first_type\n+Information;\n+1319 const typename InterfaceMap::const_iterator infoPair = interfaces.find\n+(proc);\n+1320\n+1321 assert(infoPair!=interfaces.end());\n+1322\n+1323 const Information& info = FORWARD ? infoPair->second.second :\n+1324 infoPair->second.first;\n+1325\n+1326 for(size_t i=0, index=0; i < info.size(); i++) {\n+1327 for(size_t j=0; j < CommPolicy::getSize(data, info[i]); j++)\n+1328 GatherScatter::scatter(data, buffer[index++], info[i], j);\n+1329 }\n+1330 }\n+1331\n+1332\n+1333 template\n+1334 inline void BufferedCommunicator::\n+MessageScatterer::operator()(const\n+InterfaceMap& interfaces, Data& data, Type* buffer, const int& proc) const\n+1335 {\n+1336 typedef typename InterfaceMap::value_type::second_type::first_type\n+Information;\n+1337 const typename InterfaceMap::const_iterator infoPair = interfaces.find\n+(proc);\n+1338\n+1339 assert(infoPair!=interfaces.end());\n+1340\n+1341 const Information& info = FORWARD ? infoPair->second.second :\n+1342 infoPair->second.first;\n+1343\n+1344 for(size_t i=0; i < info.size(); i++) {\n+1345 GatherScatter::scatter(data, buffer[i], info[i]);\n+1346 }\n+1347 }\n+1348\n+1349\n+1350 template\n+1351 void _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bo_\br_\bw_\ba_\br_\bd(Data& data)\n+1352 {\n+1353 this->template sendRecv(data, data);\n+1354 }\n+1355\n+1356\n+1357 template\n+1358 void _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd(Data& data)\n+1359 {\n+1360 this->template sendRecv(data, data);\n+1361 }\n+1362\n+1363\n+1364 template\n+1365 void _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bo_\br_\bw_\ba_\br_\bd(const Data& source, Data& dest)\n+1366 {\n+1367 this->template sendRecv(source, dest);\n+1368 }\n+1369\n+1370\n+1371 template\n+1372 void _\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd(Data& source, const Data& dest)\n+1373 {\n+1374 this->template sendRecv(dest, source);\n+1375 }\n+1376\n+1377\n+1378 template\n+1379 void BufferedCommunicator::sendRecv(const Data& source, Data& dest)\n+1380 {\n+1381 int rank, lrank;\n+1382\n+1383 MPI_Comm_rank(MPI_COMM_WORLD,&rank);\n+1384 MPI_Comm_rank(MPI_COMM_WORLD,&lrank);\n+1385\n+1386 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be Type;\n+1387 Type *sendBuffer, *recvBuffer;\n+1388 size_t sendBufferSize;\n+1389#ifndef NDEBUG\n+1390 size_t recvBufferSize;\n+1391#endif\n+1392\n+1393 if(FORWARD) {\n+1394 sendBuffer = reinterpret_cast(buffers_[0]);\n+1395 sendBufferSize = bufferSize_[0];\n+1396 recvBuffer = reinterpret_cast(buffers_[1]);\n+1397#ifndef NDEBUG\n+1398 recvBufferSize = bufferSize_[1];\n+1399#endif\n+1400 }else{\n+1401 sendBuffer = reinterpret_cast(buffers_[1]);\n+1402 sendBufferSize = bufferSize_[1];\n+1403 recvBuffer = reinterpret_cast(buffers_[0]);\n+1404#ifndef NDEBUG\n+1405 recvBufferSize = bufferSize_[0];\n+1406#endif\n+1407 }\n+1408 typedef typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg Flag;\n+1409\n+1410 MessageGatherer() (interfaces_, source,\n+sendBuffer, sendBufferSize);\n+1411\n+1412 MPI_Request* sendRequests = new MPI_Request[messageInformation_.size()];\n+1413 MPI_Request* recvRequests = new MPI_Request[messageInformation_.size()];\n+1414 /* Number of recvRequests that are not MPI_REQUEST_NULL */\n+1415 size_t numberOfRealRecvRequests = 0;\n+1416\n+1417 // Setup receive first\n+1418 typedef typename InformationMap::const_iterator const_iterator;\n+1419\n+1420 const const_iterator end = messageInformation_.end();\n+1421 size_t i=0;\n+1422 int* processMap = new int[messageInformation_.size()];\n+1423\n+1424 for(const_iterator info = messageInformation_.begin(); info != end;\n+++info, ++i) {\n+1425 processMap[i]=info->first;\n+1426 if(FORWARD) {\n+1427 assert(info->second.second.start_*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)+info->second.second.size_ <= recvBufferSize );\n+1428 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb<second.second.size_<<\" from\n+\"<first<second.second.size_) {\n+1430 MPI_Irecv(recvBuffer+info->second.second.start_, info-\n+>second.second.size_,\n+1431 MPI_BYTE, info->first, commTag_, communicator_,\n+1432 recvRequests+i);\n+1433 numberOfRealRecvRequests += 1;\n+1434 } else {\n+1435 // Nothing to receive -> set request to inactive\n+1436 recvRequests[i]=MPI_REQUEST_NULL;\n+1437 }\n+1438 }else{\n+1439 assert(info->second.first.start_*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)+info->second.first.size_ <= recvBufferSize );\n+1440 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb<second.first.size_<<\" to\n+\"<first<second.first.size_) {\n+1442 MPI_Irecv(recvBuffer+info->second.first.start_, info->second.first.size_,\n+1443 MPI_BYTE, info->first, commTag_, communicator_,\n+1444 recvRequests+i);\n+1445 numberOfRealRecvRequests += 1;\n+1446 } else {\n+1447 // Nothing to receive -> set request to inactive\n+1448 recvRequests[i]=MPI_REQUEST_NULL;\n+1449 }\n+1450 }\n+1451 }\n+1452\n+1453 // now the send requests\n+1454 i=0;\n+1455 for(const_iterator info = messageInformation_.begin(); info != end;\n+++info, ++i)\n+1456 if(FORWARD) {\n+1457 assert(info->second.second.start_*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)+info->second.second.size_ <= recvBufferSize );\n+1458 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb<second.first.size_<<\" to \"<first<second.first.start_*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)+info->second.first.size_ <= sendBufferSize );\n+1460 if(info->second.first.size_)\n+1461 MPI_Issend(sendBuffer+info->second.first.start_, info->second.first.size_,\n+1462 MPI_BYTE, info->first, commTag_, communicator_,\n+1463 sendRequests+i);\n+1464 else\n+1465 // Nothing to send -> set request to inactive\n+1466 sendRequests[i]=MPI_REQUEST_NULL;\n+1467 }else{\n+1468 assert(info->second.second.start_*sizeof(typename _\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bD_\ba_\bt_\ba_\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be)+info->second.second.size_ <= sendBufferSize );\n+1469 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb<second.second.size_<<\" to \"<first<second.second.size_)\n+1471 MPI_Issend(sendBuffer+info->second.second.start_, info-\n+>second.second.size_,\n+1472 MPI_BYTE, info->first, commTag_, communicator_,\n+1473 sendRequests+i);\n+1474 else\n+1475 // Nothing to send -> set request to inactive\n+1476 sendRequests[i]=MPI_REQUEST_NULL;\n+1477 }\n+1478\n+1479 // Wait for completion of receive and immediately start scatter\n+1480 i=0;\n+1481 //int success = 1;\n+1482 int finished = MPI_UNDEFINED;\n+1483 MPI_Status status; //[messageInformation_.size()];\n+1484 //MPI_Waitall(messageInformation_.size(), recvRequests, status);\n+1485\n+1486 for(i=0; i< numberOfRealRecvRequests; i++) {\n+1487 status.MPI_ERROR=MPI_SUCCESS;\n+1488 MPI_Waitany(messageInformation_.size(), recvRequests, &finished, &status);\n+1489 assert(finished != MPI_UNDEFINED);\n+1490\n+1491 if(status.MPI_ERROR==MPI_SUCCESS) {\n+1492 int& proc = processMap[finished];\n+1493 typename InformationMap::const_iterator infoIter =\n+messageInformation_.find(proc);\n+1494 assert(infoIter != messageInformation_.end());\n+1495\n+1496 MessageInformation info = (FORWARD) ? infoIter->second.second : infoIter-\n+>second.first;\n+1497 assert(info.start_+info.size_ <= recvBufferSize);\n+1498\n+1499 MessageScatterer() (interfaces_, dest,\n+recvBuffer+info.start_, proc);\n+1500 }else{\n+1501 std::cerr<communicator());\n+1517\n+1518 if(!globalSuccess)\n+1519 DUNE_THROW(CommunicationError, \"A communication error occurred!\");\n+1520 */\n+1521 delete[] processMap;\n+1522 delete[] sendRequests;\n+1523 delete[] recvRequests;\n+1524\n+1525 }\n+1526\n+1527#endif // DOXYGEN\n+1528\n+1530}\n+1531\n+1532#endif // HAVE_MPI\n+1533#endif // DUNE_COMMON_PARALLEL_COMMUNICATOR_HH\n+_\br_\be_\bm_\bo_\bt_\be_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh\n+Classes describing a distributed indexset.\n+_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh\n+Standard Dune debug streams.\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb\n+DVVerbType dvverb(std::cout)\n+stream for very verbose output.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:96\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n+_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bz_\be\n+constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::\n+integer_sequence< T, II... >)\n+Return the size of the sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bO_\bE_\br_\br_\bo_\br\n+Default exception class for I/O errors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:231\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bz_\be_\bO_\bn_\be\n+Flag for marking indexed data structures where data at each index is of the\n+same size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:110\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be\n+Flag for marking indexed data structures where the data at each index may be a\n+variable multiple of a...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by\n+Default policy used for communicating an indexed type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+V::value_type IndexedType\n+The type we get at each index with operator[].\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:147\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n+static int getSize(const V &, int index)\n+Get the number of primitive elements at that index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n+SizeOne IndexedTypeFlag\n+Whether the indexed type has variable size or there is always one value at each\n+index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs\n+static const void * getAddress(const V &v, int index)\n+Get the address of entry at an index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bT_\by_\bp_\be\n+V Type\n+The type the policy is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:173\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bS_\bi_\bz_\be\n+static int getSize(const Type &v, int i)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n+VariableSize IndexedTypeFlag\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bT_\by_\bp_\be\n+VariableBlockVector< FieldVector< K, n >, A > Type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bA_\bd_\bd_\br_\be_\bs_\bs\n+static const void * getAddress(const Type &v, int i)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+Type::B IndexedType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bE_\br_\br_\bo_\br\n+Error thrown if there was a problem with the communication.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:195\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+GatherScatter default implementation that just copies data.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:202\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(T &vec, const IndexedType &v, std::size_t i)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+CommPolicy< T >::IndexedType IndexedType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static const IndexedType & gather(const T &vec, std::size_t i)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+A communicator that uses buffers to gather and scatter the data to be send or\n+received.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communicator.hh:458\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void backward(Data &data)\n+Backward send where target and source are the same.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+BufferedCommunicator()\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+~BufferedCommunicator()\n+Destructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bo_\br_\bw_\ba_\br_\bd\n+void forward(const Data &source, Data &dest)\n+Send from source to target.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+Free the allocated memory (i.e. buffers and message information.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n+std::enable_if< std::is_same< SizeOne, typenameCommPolicy< Data >::\n+IndexedTypeFlag >::value, void >::type build(const Interface &interface)\n+Build the buffers and information for the communication process.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void backward(Data &source, const Data &dest)\n+Communicate in the reverse direction, i.e. send from target to source.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n+void build(const Data &source, const Data &target, const Interface &interface)\n+Build the buffers and information for the communication process.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\be_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bo_\br_\bw_\ba_\br_\bd\n+void forward(Data &data)\n+Forward send where target and source are the same.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Manager class for the mapping between local indices and globally unique\n+indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bB_\bu_\bi_\bl_\bd_\be_\br\n+Base class of all classes representing a communication interface.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+Information describing an interface.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:110\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+Communication interface between remote and local indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+An index present on the local process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn localindex.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+The indices present on remote processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+The type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+LocalIndex::Attribute Attribute\n+The type of the attribute.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::LocalIndex LocalIndex\n+The type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:222\n+_\bi_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b._\bh_\bh\n+Provides classes for building the communication interface between remote\n+indices.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00035.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00035.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: exceptions.cc File Reference\n+dune-common: plocalindex.hh File Reference\n \n \n \n \n \n \n \n@@ -65,31 +65,68 @@\n \n \n \n \n \n \n \n
    \n \n-
    exceptions.cc File Reference
    \n+Classes |\n+Namespaces |\n+Functions
    \n+ \n \n
    \n-\n+\n+

    Provides classes for use as the local index in ParallelIndexSet for distributed computing. \n+More...

    \n+
    #include <iostream>
    \n+#include <mpi.h>
    \n+#include <dune/common/parallel/indexset.hh>
    \n+#include <dune/common/parallel/localindex.hh>
    \n+#include <dune/common/parallel/mpitraits.hh>
    \n+
    \n+

    Go to the source code of this file.

    \n+
    \n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    class  Dune::ParallelLocalIndex< T >
     An index present on the local process with an additional attribute flag. More...
     
    struct  Dune::LocalIndexComparator< ParallelLocalIndex< T > >
     
    class  Dune::MPITraits< ParallelLocalIndex< T > >
     
    \n \n \n \n \n+

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class T >
    std::ostream & Dune::operator<< (std::ostream &os, const ParallelLocalIndex< T > &index)
     Print the local index to a stream.
     
    template<typename T >
    bool Dune::operator== (const ParallelLocalIndex< T > &p1, const ParallelLocalIndex< T > &p2)
     
    template<typename T >
    bool Dune::operator!= (const ParallelLocalIndex< T > &p1, const ParallelLocalIndex< T > &p2)
     
    \n-
    \n+

    Detailed Description

    \n+

    Provides classes for use as the local index in ParallelIndexSet for distributed computing.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,15 +1,52 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-exceptions.cc File Reference\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+plocalindex.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bp_\bu_\bt_\bi_\bn_\bg_\b _\bb_\ba_\bs_\be_\bd_\b _\bo_\bn_\b _\bI_\bn_\bd_\be_\bx_\bs_\be_\bt_\bs\n+Provides classes for use as the local index in ParallelIndexSet for distributed\n+computing. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bd_\be_\bx_\bs_\be_\bt_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bl_\bo_\bc_\ba_\bl_\bi_\bn_\bd_\be_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+_\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\b _\bT_\b _\b>\n+\u00a0 An index present on the local process with an additional attribute\n+ flag. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bC_\bo_\bm_\bp_\ba_\br_\ba_\bt_\bo_\br_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx< T\n+ > &index)\n+\u00a0 Print the local index to a stream.\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx< T > &p1, const\n+ _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx< T > &p2)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx< T > &p1, const\n+ _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx< T > &p2)\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Provides classes for use as the local index in ParallelIndexSet for distributed\n+computing.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00038.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00038.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: hash.hh File Reference\n+dune-common: remoteindices.hh File Reference\n \n \n \n \n \n \n \n@@ -65,185 +65,90 @@\n \n \n \n \n \n \n \n
    \n \n-
    hash.hh File Reference
    \n+ \n
    \n
    \n \n-

    Support for calculating hash values of objects. \n+

    Classes describing a distributed indexset. \n More...

    \n-
    #include <functional>
    \n-#include <dune/common/typetraits.hh>
    \n+
    #include <cassert>
    \n+#include <iostream>
    \n+#include <ostream>
    \n+#include <map>
    \n+#include <memory>
    \n+#include <set>
    \n+#include <tuple>
    \n+#include <utility>
    \n+#include <vector>
    \n+#include <mpi.h>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/sllist.hh>
    \n+#include <dune/common/stdstreams.hh>
    \n+#include <dune/common/parallel/indexset.hh>
    \n+#include <dune/common/parallel/mpitraits.hh>
    \n+#include <dune/common/parallel/plocalindex.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::hash< T >
     Functor for hashing objects of type T. More...
    class  Dune::MPITraits< IndexPair< TG, ParallelLocalIndex< TA > > >
     
    class  Dune::RemoteIndex< T1, T2 >
     Information about an index residing on another processor. More...
     
    class  Dune::RemoteIndices< T, A >
     The indices present on remote processes. More...
     
    class  Dune::RemoteIndexListModifier< T, A, mode >
     Modifier for adding and/or deleting remote indices from the remote index list. More...
     
    class  Dune::RemoteIndexListModifier< T, A, mode >::InvalidPosition
     
    class  Dune::CollectiveIterator< T, A >
     A collective iterator for moving over the remote indices for all processes collectively. More...
     
    class  Dune::CollectiveIterator< T, A >::iterator
     Iterator over the valid underlying iterators. More...
     
    \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Macros

    #define DUNE_DEFINE_HASH(template_args, type)
     Defines the required struct specialization to make type hashable via Dune::hash.
     
    #define DUNE_HASH_TEMPLATE_ARGS(...)
     Wrapper macro for the template arguments in DUNE_DEFINE_HASH.
     
    #define DUNE_HASH_TYPE(...)
     Wrapper macro for the type to be hashed in DUNE_DEFINE_HASH.
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<typename T >
    void Dune::hash_combine (std::size_t &seed, const T &arg)
     Calculates the hash value of arg and combines it in-place with seed.
     
    template<typename It >
    std::size_t Dune::hash_range (It first, It last)
     Hashes all elements in the range [first,last) and returns the combined hash.
     
    template<typename It >
    void Dune::hash_range (std::size_t &seed, It first, It last)
     Hashes all elements in the range [first,last) and combines the hashes in-place with seed.
     
    template<typename T1 , typename T2 >
    std::ostream & Dune::operator<< (std::ostream &os, const RemoteIndex< T1, T2 > &index)
     
    template<class T , class A >
    std::ostream & Dune::operator<< (std::ostream &os, const RemoteIndices< T, A > &indices)
     
    template<typename TG , typename TA >
    std::ostream & Dune::operator<< (std::ostream &os, const RemoteIndex< TG, TA > &index)
     
    \n

    Detailed Description

    \n-

    Support for calculating hash values of objects.

    \n-

    This file provides the functor Dune::hash to calculate hash values and some infrastructure to simplify extending Dune::hash for user-defined types, independent of the actual underlying implementation.

    \n-

    Macro Definition Documentation

    \n-\n-

    ◆ DUNE_DEFINE_HASH

    \n-\n-
    \n-
    \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n-
    #define DUNE_DEFINE_HASH( template_args,
     type 
    )
    \n-
    \n-\n-

    Defines the required struct specialization to make type hashable via Dune::hash.

    \n-

    In order to calculate the hash, operator() of the generated specialization will return the result of an unqualified call to the global function hash_value(const type&). As the call is not qualified, the function will be found using argument-dependent lookup, allowing implementors to conveniently place it inside the class body.

    \n-

    Consider the following type:

    \n-
    namespace ns {
    \n-
    template<typename A, int i>
    \n-
    class Foo
    \n-
    {
    \n-
    ...
    \n-
    };
    \n-
    }
    \n-

    In order to add support for Dune::hash, you need to extend the definition like this:

    \n-
    namespace ns {
    \n-
    template<typename A, int i>
    \n-
    class Foo
    \n-
    {
    \n-
    ...
    \n-
    // The keyword "friend" turns this into a global function that is a friend of Foo.
    \n-
    inline friend std::size_t hash_value(const Foo& arg)
    \n-
    {
    \n-
    return ...;
    \n-
    }
    \n-
    };
    \n-
    }
    \n-
    \n-
    // Define hash struct specialization
    \n-\n-
    #define DUNE_DEFINE_HASH(template_args, type)
    Defines the required struct specialization to make type hashable via Dune::hash.
    Definition hash.hh:100
    \n-
    #define DUNE_HASH_TYPE(...)
    Wrapper macro for the type to be hashed in DUNE_DEFINE_HASH.
    Definition hash.hh:117
    \n-
    #define DUNE_HASH_TEMPLATE_ARGS(...)
    Wrapper macro for the template arguments in DUNE_DEFINE_HASH.
    Definition hash.hh:109
    \n-
    Warning
    As the specialization has to be placed in the original namespace of the hash struct (e.g. std), this macro must be called from the global namespace!
    \n-
    Parameters
    \n- \n- \n- \n-
    template_argsThe template arguments required by the hash struct specialization, wrapped in a call to DUNE_HASH_TEMPLATE_ARGS. If this is a complete specialization, call DUNE_HASH_TEMPLATE_ARGS without arguments.
    typeThe exact type of the specialization, wrapped in a call to DUNE_HASH_TYPE.
    \n-
    \n-
    \n-\n-
    \n-
    \n-\n-

    ◆ DUNE_HASH_TEMPLATE_ARGS

    \n-\n-
    \n-
    \n- \n- \n- \n- \n- \n- \n- \n- \n-
    #define DUNE_HASH_TEMPLATE_ARGS( ...)
    \n-
    \n-\n-

    Wrapper macro for the template arguments in DUNE_DEFINE_HASH.

    \n-

    This macro should always be used as a wrapper for the template arguments when calling DUNE_DEFINE_HASH. It works around some preprocessor limitations when the template arguments contain commas or the list is completely empty.

    \n-\n-
    \n-
    \n-\n-

    ◆ DUNE_HASH_TYPE

    \n-\n-
    \n-
    \n- \n- \n- \n- \n- \n- \n- \n- \n-
    #define DUNE_HASH_TYPE( ...)
    \n-
    \n-\n-

    Wrapper macro for the type to be hashed in DUNE_DEFINE_HASH.

    \n-

    This macro should always be used as a wrapper for the type of the specialization when calling DUNE_DEFINE_HASH. It works around some preprocessor limitations when the type contains commas.

    \n-\n-
    \n-
    \n-
    \n+

    Classes describing a distributed indexset.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,129 +1,73 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-hash.hh File Reference\n-Support for calculating hash values of objects. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+remoteindices.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bp_\bu_\bt_\bi_\bn_\bg_\b _\bb_\ba_\bs_\be_\bd_\b _\bo_\bn_\b _\bI_\bn_\bd_\be_\bx_\bs_\be_\bt_\bs\n+Classes describing a distributed indexset. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bl_\bl_\bi_\bs_\bt_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bd_\be_\bx_\bs_\be_\bt_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bp_\bl_\bo_\bc_\ba_\bl_\bi_\bn_\bd_\be_\bx_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b<_\b _\bT_\b _\b>\n-\u00a0 Functor for hashing objects of type T. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\b _\bT_\bG_\b,_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\b _\bT_\bA_\b _\b>_\b _\b>_\b _\b>\n \u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0 _\bD_\bu_\bn_\be namespace.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+\u00a0 Information about an index residing on another processor. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n+\u00a0 The indices present on remote processes. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bm_\bo_\bd_\be_\b _\b>\n+\u00a0 Modifier for adding and/or deleting remote indices from the remote\n+ index list. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bD_\bE_\bF_\bI_\bN_\bE_\b__\bH_\bA_\bS_\bH(template_args, type)\n-\u00a0 Defines the required struct specialization to make type hashable via\n- _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bm_\bo_\bd_\be_\b _\b>_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bP_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n \u00a0\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bH_\bA_\bS_\bH_\b__\bT_\bE_\bM_\bP_\bL_\bA_\bT_\bE_\b__\bA_\bR_\bG_\bS(...)\n-\u00a0 Wrapper macro for the template arguments in DUNE_DEFINE_HASH.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n+\u00a0 A collective iterator for moving over the remote indices for all\n+ processes collectively. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bH_\bA_\bS_\bH_\b__\bT_\bY_\bP_\bE(...)\n-\u00a0 Wrapper macro for the type to be hashed in DUNE_DEFINE_HASH.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 Iterator over the valid underlying iterators. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n+\u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b__\bc_\bo_\bm_\bb_\bi_\bn_\be (std::size_t &seed, const T &arg)\n-\u00a0 Calculates the hash value of arg and combines it in-place with\n- seed.\n-\u00a0\n-template\n-std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b__\br_\ba_\bn_\bg_\be (It first, It last)\n-\u00a0 Hashes all elements in the range [first,last) and returns the\n- combined hash.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b__\br_\ba_\bn_\bg_\be (std::size_t &seed, It first, It last)\n-\u00a0 Hashes all elements in the range [first,last) and combines the\n- hashes in-place with seed.\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx< T1, T2 >\n+ &index)\n+\u00a0\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs< T, A >\n+ &indices)\n+\u00a0\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx< TG, TA >\n+ &index)\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Support for calculating hash values of objects.\n-This file provides the functor _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh to calculate hash values and some\n-infrastructure to simplify extending _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh for user-defined types,\n-independent of the actual underlying implementation.\n-*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_D\bDE\bEF\bFI\bIN\bNE\bE_\b_H\bHA\bAS\bSH\bH *\b**\b**\b**\b**\b*\n-#define DUNE_DEFINE_HASH ( \u00a0 template_args,\n- \u00a0 type\u00a0\n- )\n-Defines the required struct specialization to make type hashable via _\bD_\bu_\bn_\be_\b:_\b:\n-_\bh_\ba_\bs_\bh.\n-In order to calculate the hash, operator() of the generated specialization will\n-return the result of an unqualified call to the global function hash_value\n-(const type&). As the call is not qualified, the function will be found using\n-argument-dependent lookup, allowing implementors to conveniently place it\n-inside the class body.\n-Consider the following type:\n-namespace ns {\n-template\n-class Foo\n-{\n-...\n-};\n-}\n-In order to add support for _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh, you need to extend the definition like\n-this:\n-namespace ns {\n-template\n-class Foo\n-{\n-...\n-// The keyword \"friend\" turns this into a global function that is a friend of\n-Foo.\n-inline friend std::size_t hash_value(const Foo& arg)\n-{\n-return ...;\n-}\n-};\n-}\n-// Define hash struct specialization\n-_\bD_\bU_\bN_\bE_\b__\bD_\bE_\bF_\bI_\bN_\bE_\b__\bH_\bA_\bS_\bH(_\bD_\bU_\bN_\bE_\b__\bH_\bA_\bS_\bH_\b__\bT_\bE_\bM_\bP_\bL_\bA_\bT_\bE_\b__\bA_\bR_\bG_\bS(typename A, int i),_\bD_\bU_\bN_\bE_\b__\bH_\bA_\bS_\bH_\b__\bT_\bY_\bP_\bE\n-(Foo))\n-_\bD_\bU_\bN_\bE_\b__\bD_\bE_\bF_\bI_\bN_\bE_\b__\bH_\bA_\bS_\bH\n-#define DUNE_DEFINE_HASH(template_args, type)\n-Defines the required struct specialization to make type hashable via Dune::\n-hash.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:100\n-_\bD_\bU_\bN_\bE_\b__\bH_\bA_\bS_\bH_\b__\bT_\bY_\bP_\bE\n-#define DUNE_HASH_TYPE(...)\n-Wrapper macro for the type to be hashed in DUNE_DEFINE_HASH.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:117\n-_\bD_\bU_\bN_\bE_\b__\bH_\bA_\bS_\bH_\b__\bT_\bE_\bM_\bP_\bL_\bA_\bT_\bE_\b__\bA_\bR_\bG_\bS\n-#define DUNE_HASH_TEMPLATE_ARGS(...)\n-Wrapper macro for the template arguments in DUNE_DEFINE_HASH.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:109\n- Warning\n- As the specialization has to be placed in the original namespace of the\n- hash struct (e.g. std), this macro m\bmu\bus\bst\bt be called from the global\n- namespace!\n- Parameters\n- The template arguments required by the hash struct\n- specialization, wrapped in a call to\n- template_args DUNE_HASH_TEMPLATE_ARGS. If this is a complete\n- specialization, call DUNE_HASH_TEMPLATE_ARGS without\n- arguments.\n- type The exact type of the specialization, wrapped in a call to\n- DUNE_HASH_TYPE.\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_H\bHA\bAS\bSH\bH_\b_T\bTE\bEM\bMP\bPL\bLA\bAT\bTE\bE_\b_A\bAR\bRG\bGS\bS *\b**\b**\b**\b**\b*\n-#define DUNE_HASH_TEMPLATE_ARGS ( \u00a0 .\b..\b..\b. )\n-Wrapper macro for the template arguments in DUNE_DEFINE_HASH.\n-This macro should always be used as a wrapper for the template arguments when\n-calling DUNE_DEFINE_HASH. It works around some preprocessor limitations when\n-the template arguments contain commas or the list is completely empty.\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_H\bHA\bAS\bSH\bH_\b_T\bTY\bYP\bPE\bE *\b**\b**\b**\b**\b*\n-#define DUNE_HASH_TYPE ( \u00a0 .\b..\b..\b. )\n-Wrapper macro for the type to be hashed in DUNE_DEFINE_HASH.\n-This macro should always be used as a wrapper for the type of the\n-specialization when calling DUNE_DEFINE_HASH. It works around some preprocessor\n-limitations when the type contains commas.\n+Classes describing a distributed indexset.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00038_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00038_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: hash.hh Source File\n+dune-common: remoteindices.hh Source File\n \n \n \n \n \n \n \n@@ -70,293 +70,1698 @@\n \n \n \n \n \n \n \n
    \n-
    hash.hh
    \n+
    remoteindices.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_HASH_HH
    \n-
    6#define DUNE_COMMON_HASH_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_REMOTEINDICES_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_REMOTEINDICES_HH
    \n
    7
    \n-
    8#include <functional>
    \n+
    8#if HAVE_MPI
    \n
    9
    \n-\n-
    11
    \n-
    24// ********************************************************************************
    \n-
    25// Doxygen documentation
    \n-
    26// ********************************************************************************
    \n-
    27
    \n-
    28#ifdef DOXYGEN
    \n-
    29
    \n-
    30namespace Dune {
    \n-
    31
    \n-
    33
    \n-
    38 template<typename T>
    \n-
    \n-
    39 struct hash
    \n-
    40 {
    \n-
    41
    \n-
    \n-
    43 std::size_t operator()(const T& t) const
    \n-
    44 {
    \n-
    45 return hash(t);
    \n-
    46 }
    \n-
    \n-
    47
    \n+
    10#include <cassert>
    \n+
    11#include <iostream>
    \n+
    12#include <ostream>
    \n+
    13#include <map>
    \n+
    14#include <memory>
    \n+
    15#include <set>
    \n+
    16#include <tuple>
    \n+
    17#include <utility>
    \n+
    18#include <vector>
    \n+
    19
    \n+
    20#include <mpi.h>
    \n+
    21
    \n+\n+
    23#include <dune/common/sllist.hh>
    \n+\n+\n+\n+\n+
    28
    \n+
    29namespace Dune {
    \n+
    41 template<typename TG, typename TA>
    \n+
    \n+\n+
    43 {
    \n+
    44 public:
    \n+
    45 inline static MPI_Datatype getType();
    \n+
    46 private:
    \n+
    47 static MPI_Datatype type;
    \n
    48 };
    \n
    \n
    49
    \n-
    50}
    \n-
    51
    \n+
    50
    \n+
    51 template<typename T, typename A>
    \n+
    52 class RemoteIndices;
    \n
    53
    \n-
    100#define DUNE_DEFINE_HASH(template_args,type)
    \n+
    54 template<typename T1, typename T2>
    \n+
    55 class RemoteIndex;
    \n+
    56
    \n+
    57 // forward declaration needed for friend declaration.
    \n+
    58 template<typename T>
    \n+
    59 class IndicesSyncer;
    \n+
    60
    \n+
    61 template<typename T1, typename T2>
    \n+
    62 std::ostream& operator<<(std::ostream& os, const RemoteIndex<T1,T2>& index);
    \n+
    63
    \n+
    64
    \n+
    65 template<typename T, typename A, bool mode>
    \n+\n+
    67
    \n+
    68
    \n+
    72 template<typename T1, typename T2>
    \n+
    \n+\n+
    74 {
    \n+
    75 template<typename T>
    \n+
    76 friend class IndicesSyncer;
    \n+
    77
    \n+
    78 template<typename T, typename A, typename A1>
    \n+
    79 friend void repairLocalIndexPointers(std::map<int,SLList<std::pair<typename T::GlobalIndex, typename T::LocalIndex::Attribute>,A> >&,
    \n+\n+
    81 const T&);
    \n+
    82
    \n+
    83 template<typename T, typename A, bool mode>
    \n+\n+
    85
    \n+
    86 public:
    \n+
    91 typedef T1 GlobalIndex;
    \n+
    100 typedef T2 Attribute;
    \n
    101
    \n-
    102
    \n-
    104
    \n-
    109#define DUNE_HASH_TEMPLATE_ARGS(...)
    \n-
    110
    \n-
    112
    \n-
    117#define DUNE_HASH_TYPE(...)
    \n-
    118
    \n-
    119#else // DOXYGEN - hide all the ugly implementation
    \n+\n+\n+
    107
    \n+
    112 const Attribute attribute() const;
    \n+
    113
    \n+
    119 const PairType& localIndexPair() const;
    \n
    120
    \n-
    121
    \n-
    122
    \n-
    123// ********************************************************************************
    \n-
    124// C++11 support
    \n-
    125// ********************************************************************************
    \n+
    124 RemoteIndex();
    \n+
    125
    \n
    126
    \n-
    127// import std::hash into Dune namespace
    \n-
    128namespace Dune {
    \n-
    129
    \n-
    130 using std::hash;
    \n-
    131
    \n-
    132}
    \n-
    133
    \n-
    134// Macro for defining a std::hash specialization for type.
    \n-
    135// This should not be called directly. Call DUNE_DEFINE_HASH
    \n-
    136// instead.
    \n-
    137#define DUNE_DEFINE_STD_HASH(template_args,type) \\
    \n-
    138 namespace std { \\
    \n-
    139 \\
    \n-
    140 template<template_args> \\
    \n-
    141 struct hash<type> \\
    \n-
    142 { \\
    \n-
    143 \\
    \n-
    144 typedef type argument_type; \\
    \n-
    145 typedef std::size_t result_type; \\
    \n-
    146 \\
    \n-
    147 std::size_t operator()(const type& arg) const \\
    \n-
    148 { \\
    \n-
    149 return hash_value(arg); \\
    \n-
    150 } \\
    \n-
    151 }; \\
    \n-
    152 \\
    \n-
    153 template<template_args> \\
    \n-
    154 struct hash<const type> \\
    \n-
    155 { \\
    \n-
    156 \\
    \n-
    157 typedef type argument_type; \\
    \n-
    158 typedef std::size_t result_type; \\
    \n-
    159 \\
    \n-
    160 std::size_t operator()(const type& arg) const \\
    \n-
    161 { \\
    \n-
    162 return hash_value(arg); \\
    \n-
    163 } \\
    \n-
    164 }; \\
    \n-
    165 \\
    \n-
    166 } \\
    \n-
    167
    \n-
    168// Wrapper macro for template arguments.
    \n-
    169// This is required because the template arguments can contain commas,
    \n-
    170// which will create a macro argument list of unknown length. That in itself
    \n-
    171// would not be a problem, but DUNE_DEFINE_HASH has to be called with two argument
    \n-
    172// lists of unknown length. So this macro wraps its arguments with parentheses,
    \n-
    173// turning it into a single argument. The result is used as the parameter list of
    \n-
    174// an expansion macro in the calls to the implementation-specific macros
    \n-
    175// for C++11 and TR1. Noto that technically, this trick is only legal for C++11,
    \n-
    176// but pretty much every compiler supports variadic macros in C++03 mode, as they
    \n-
    177// are part of C99.
    \n-
    178#define DUNE_HASH_TEMPLATE_ARGS(...) (__VA_ARGS__)
    \n-
    179
    \n-
    180// Wrapper macro for type to be hashed.
    \n-
    181// See above for rationale.
    \n-
    182#define DUNE_HASH_TYPE(...) (__VA_ARGS__)
    \n-
    183
    \n-
    184// Expansion macro for the parenthesized argument lists created by
    \n-
    185// DUNE_HASH_TEMPLATE_ARGS and DUNE_HASH_TYPE.
    \n-
    186#define DUNE_HASH_EXPAND_VA_ARGS(...) __VA_ARGS__
    \n-
    187
    \n-
    188// Define specializations for all discovered hash implementations.
    \n-
    189#define DUNE_DEFINE_HASH(template_args,type) \\
    \n-
    190 DUNE_DEFINE_STD_HASH(DUNE_HASH_EXPAND_VA_ARGS template_args, DUNE_HASH_EXPAND_VA_ARGS type) \\
    \n-
    191
    \n-
    192
    \n-
    193#endif // DOXYGEN
    \n-
    194
    \n-
    195
    \n-
    196
    \n-
    197// ********************************************************************************
    \n-
    198// Some utility functions for combining hashes of member variables.
    \n-
    199// ********************************************************************************
    \n-
    200
    \n-
    201namespace Dune {
    \n-
    202
    \n-
    203 // The following functions are an implementation of the proposed hash extensions for
    \n-
    204 // the C++ standard by Peter Dimov
    \n-
    205 // (cf. http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf, issue 6.18).
    \n-
    206 // They are also contained in the boost::functional::hash library by Daniel James, but
    \n-
    207 // that implementation uses boost::hash internally, while we want to use Dune::hash. They
    \n-
    208 // are also considered for inclusion in TR2 (then based on std::hash, of course).
    \n-
    209
    \n-
    210#ifndef DOXYGEN
    \n-
    211
    \n-
    212 // helper struct for providing different hash combining algorithms dependent on
    \n-
    213 // the size of size_t.
    \n-
    214 // hash_combiner has to be specialized for the size (in bytes) of std::size_t.
    \n-
    215 // Specialized versions should provide a method
    \n-
    216 //
    \n-
    217 // template <typename typeof_size_t, typename T>
    \n-
    218 // void operator()(typeof_size_t& seed, const T& arg) const;
    \n-
    219 //
    \n-
    220 // that will be called by the interface function hash_combine() described further below.
    \n-
    221 // The redundant template parameter typeof_size_t is needed to avoid warnings for the
    \n-
    222 // unused 64-bit specialization on 32-bit systems.
    \n-
    223 //
    \n-
    224 // There is no default implementation!
    \n-
    225 template<int sizeof_size_t>
    \n-
    226 struct hash_combiner;
    \n-
    227
    \n+
    132 RemoteIndex(const T2& attribute,
    \n+
    133 const PairType* local);
    \n+
    134
    \n+
    135
    \n+
    141 RemoteIndex(const T2& attribute);
    \n+
    142
    \n+
    143 bool operator==(const RemoteIndex& ri) const;
    \n+
    144
    \n+
    145 bool operator!=(const RemoteIndex& ri) const;
    \n+
    146 private:
    \n+
    148 const PairType* localIndex_;
    \n+
    149
    \n+
    151 char attribute_;
    \n+
    152 };
    \n+
    \n+
    153
    \n+
    154 template<class T, class A>
    \n+
    155 std::ostream& operator<<(std::ostream& os, const RemoteIndices<T,A>& indices);
    \n+
    156
    \n+
    157 class InterfaceBuilder;
    \n+
    158
    \n+
    159 template<class T, class A>
    \n+
    160 class CollectiveIterator;
    \n+
    161
    \n+
    162 // forward declaration needed for friend declaration.
    \n+
    163 template<class T>
    \n+
    164 class IndicesSyncer;
    \n+
    165
    \n+
    166 // forward declaration needed for friend declaration.
    \n+
    167 template<typename T1, typename T2>
    \n+\n+
    169
    \n+
    170
    \n+
    187 template<class T, class A=std::allocator<RemoteIndex<typename T::GlobalIndex,
    \n+
    188 typename T::LocalIndex::Attribute> > >
    \n+
    \n+\n+
    190 {
    \n+
    191 friend class InterfaceBuilder;
    \n+
    192 friend class IndicesSyncer<T>;
    \n+
    193 template<typename T1, typename A2, typename A1>
    \n+
    194 friend void repairLocalIndexPointers(std::map<int,SLList<std::pair<typename T1::GlobalIndex, typename T1::LocalIndex::Attribute>,A2> >&,
    \n+\n+
    196 const T1&);
    \n+
    197
    \n+
    198 template<class G, class T1, class T2>
    \n+\n+
    200 friend std::ostream& operator<<<>(std::ostream&, const RemoteIndices<T>&);
    \n+
    201
    \n+
    202 public:
    \n+
    203
    \n+\n+
    208
    \n+\n+
    212
    \n+\n+
    217
    \n+
    218
    \n+\n+
    223
    \n+
    227 typedef typename LocalIndex::Attribute Attribute;
    \n
    228
    \n-
    229 // hash combining for 64-bit platforms.
    \n-
    230 template<>
    \n-
    231 struct hash_combiner<8>
    \n-
    232 {
    \n+\n
    233
    \n-
    234 template<typename typeof_size_t, typename T>
    \n-
    235 void operator()(typeof_size_t& seed, const T& arg) const
    \n-
    236 {
    \n-
    237 static_assert(sizeof(typeof_size_t)==8, "hash_combiner::operator() instantiated with nonmatching type and size");
    \n-
    238
    \n-
    239 // The following algorithm for combining two 64-bit hash values is inspired by a similar
    \n-
    240 // function in CityHash (http://cityhash.googlecode.com/svn-history/r2/trunk/src/city.h),
    \n-
    241 // which is in turn based on ideas from the MurmurHash library. The basic idea is easy to
    \n-
    242 // grasp, though: New information is XORed into the existing hash multiple times at different
    \n-
    243 // places (using shift operations), and the resulting pattern is spread over the complete
    \n-
    244 // range of available bits via multiplication with a "magic" constant. The constants used
    \n-
    245 // below (47 and 0x9ddfea08eb382d69ULL) are taken from the CityHash implementation.
    \n-
    246 //
    \n-
    247 // We opted not to use the mixing algorithm proposed in the C++ working group defect list at
    \n-
    248 // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf, p. 57f. because it
    \n-
    249 // has very bad hash distribution properties if you apply it to lists of very small numbers,
    \n-
    250 // an application that is frequent in PDELab's ordering framework.
    \n-
    251
    \n-
    252 Dune::hash<T> hasher;
    \n-
    253 const typeof_size_t kMul = 0x9ddfea08eb382d69ULL;
    \n-
    254 typeof_size_t h = hasher(arg);
    \n-
    255 typeof_size_t a = (seed ^ h) * kMul;
    \n-
    256 a ^= (a >> 47);
    \n-
    257 typeof_size_t b = (h ^ a) * kMul;
    \n-
    258 b ^= (b >> 47);
    \n-
    259 b *= kMul;
    \n-
    260 seed = b;
    \n-
    261 }
    \n-
    262
    \n-
    263 };
    \n-
    264
    \n-
    265
    \n-
    266 // hash combining for 32-bit platforms.
    \n-
    267 template<>
    \n-
    268 struct hash_combiner<4>
    \n-
    269 {
    \n-
    270
    \n-
    271 template<typename typeof_size_t, typename T>
    \n-
    272 void operator()(typeof_size_t& seed, const T& arg) const
    \n-
    273 {
    \n-
    274 static_assert(sizeof(typeof_size_t)==4, "hash_combiner::operator() instantiated with nonmatching type and size");
    \n-
    275
    \n-
    276 // The default algorithm above requires a 64-bit std::size_t. The following algorithm is a
    \n-
    277 // 32-bit compatible fallback, again inspired by CityHash and MurmurHash
    \n-
    278 // (http://cityhash.googlecode.com/svn-history/r2/trunk/src/city.cc).
    \n-
    279 // It uses 32-bit constants and relies on rotation instead of multiplication to spread the
    \n-
    280 // mixed bits as that is apparently more efficient on IA-32. The constants used below are again
    \n-
    281 // taken from CityHash, in particular from the file referenced above.
    \n-
    282
    \n-
    283 Dune::hash<T> hasher;
    \n-
    284 const typeof_size_t c1 = 0xcc9e2d51;
    \n-
    285 const typeof_size_t c2 = 0x1b873593;
    \n-
    286 const typeof_size_t c3 = 0xe6546b64;
    \n-
    287 typeof_size_t h = hasher(arg);
    \n-
    288 typeof_size_t a = seed * c1;
    \n-
    289 a = (a >> 17) | (a << (32 - 17));
    \n-
    290 a *= c2;
    \n-
    291 h ^= a;
    \n-
    292 h = (h >> 19) | (h << (32 - 19));
    \n-
    293 seed = h * 5 + c3;
    \n-
    294 }
    \n-
    295
    \n-
    296 };
    \n-
    297
    \n-
    298#endif // DOXYGEN
    \n+
    234
    \n+
    238 using Allocator = typename std::allocator_traits<A>::template rebind_alloc<RemoteIndex>;
    \n+
    239
    \n+\n+\n+
    243
    \n+
    245 typedef std::map<int, std::pair<RemoteIndexList*,RemoteIndexList*> >
    \n+\n+
    247
    \n+
    248 typedef typename RemoteIndexMap::const_iterator const_iterator;
    \n+
    249
    \n+
    267 inline RemoteIndices(const ParallelIndexSet& source, const ParallelIndexSet& destination,
    \n+
    268 const MPI_Comm& comm, const std::vector<int>& neighbours=std::vector<int>(), bool includeSelf=false);
    \n+
    269
    \n+\n+
    271
    \n+
    279 void setIncludeSelf(bool includeSelf);
    \n+
    280
    \n+
    297 void setIndexSets(const ParallelIndexSet& source, const ParallelIndexSet& destination,
    \n+
    298 const MPI_Comm& comm, const std::vector<int>& neighbours=std::vector<int>());
    \n
    299
    \n-
    301
    \n-
    306 template<typename T>
    \n-
    \n-
    307 inline void hash_combine(std::size_t& seed, const T& arg)
    \n-
    308 {
    \n-
    309 hash_combiner<sizeof(std::size_t)>()(seed,arg);
    \n-
    310 }
    \n-
    \n-
    311
    \n-
    313
    \n-
    321 template<typename It>
    \n-
    \n-
    322 inline std::size_t hash_range(It first, It last)
    \n-
    323 {
    \n-
    324 std::size_t seed = 0;
    \n-
    325 for (; first != last; ++first)
    \n-
    326 {
    \n-
    327 hash_combine(seed,*first);
    \n-
    328 }
    \n-
    329 return seed;
    \n-
    330 }
    \n+
    300 template<typename C>
    \n+
    \n+\n+
    302 {
    \n+
    303 neighbourIds.clear();
    \n+
    304 neighbourIds.insert(neighbours.begin(), neighbours.end());
    \n+
    305
    \n+
    306 }
    \n
    \n+
    307
    \n+
    \n+
    308 const std::set<int>& getNeighbours() const
    \n+
    309 {
    \n+
    310 return neighbourIds;
    \n+
    311 }
    \n+
    \n+
    312
    \n+\n+
    317
    \n+
    327 template<bool ignorePublic>
    \n+
    328 void rebuild();
    \n+
    329
    \n+
    330 bool operator==(const RemoteIndices& ri) const;
    \n
    331
    \n-
    333
    \n-
    340 template<typename It>
    \n-
    \n-
    341 inline void hash_range(std::size_t& seed, It first, It last)
    \n-
    342 {
    \n-
    343 for (; first != last; ++first)
    \n-
    344 {
    \n-
    345 hash_combine(seed,*first);
    \n-
    346 }
    \n-
    347 }
    \n-
    \n-
    348
    \n-
    349} // end namespace Dune
    \n-
    350
    \n-
    351#endif // DUNE_COMMON_HASH_HH
    \n-
    Traits for type conversions and type information.
    \n+
    339 inline bool isSynced() const;
    \n+
    340
    \n+
    344 inline MPI_Comm communicator() const;
    \n+
    345
    \n+
    360 template<bool mode, bool send>
    \n+\n+
    362
    \n+
    369 inline const_iterator find(int proc) const;
    \n+
    370
    \n+
    375 inline const_iterator begin() const;
    \n+
    376
    \n+
    381 inline const_iterator end() const;
    \n+
    382
    \n+
    386 template<bool send>
    \n+
    387 inline CollectiveIteratorT iterator() const;
    \n+
    388
    \n+
    392 inline void free();
    \n+
    393
    \n+
    398 inline int neighbours() const;
    \n+
    399
    \n+
    401 inline const ParallelIndexSet& sourceIndexSet() const;
    \n+
    402
    \n+
    404 inline const ParallelIndexSet& destinationIndexSet() const;
    \n+
    405
    \n+
    406 private:
    \n+
    408 RemoteIndices(const RemoteIndices&) = delete;
    \n+
    409
    \n+
    411 const ParallelIndexSet* source_;
    \n+
    412
    \n+
    414 const ParallelIndexSet* target_;
    \n+
    415
    \n+
    417 MPI_Comm comm_;
    \n+
    418
    \n+
    421 std::set<int> neighbourIds;
    \n+
    422
    \n+
    424 const static int commTag_=333;
    \n+
    425
    \n+
    430 int sourceSeqNo_;
    \n+
    431
    \n+
    436 int destSeqNo_;
    \n+
    437
    \n+
    441 bool publicIgnored;
    \n+
    442
    \n+
    446 bool firstBuild;
    \n+
    447
    \n+
    448 /*
    \n+
    449 * @brief If true, sending from indices of the processor to other
    \n+
    450 * indices on the same processor is enabled even if the same indexset is used
    \n+
    451 * on both the
    \n+
    452 * sending and receiving side.
    \n+
    453 */
    \n+
    454 bool includeSelf;
    \n+
    455
    \n+\n+
    458 PairType;
    \n+
    459
    \n+
    466 RemoteIndexMap remoteIndices_;
    \n+
    467
    \n+
    478 template<bool ignorePublic>
    \n+
    479 inline void buildRemote(bool includeSelf);
    \n+
    480
    \n+
    486 inline int noPublic(const ParallelIndexSet& indexSet);
    \n+
    487
    \n+
    499 template<bool ignorePublic>
    \n+
    500 inline void packEntries(PairType** myPairs, const ParallelIndexSet& indexSet,
    \n+
    501 char* p_out, MPI_Datatype type, int bufferSize,
    \n+
    502 int* position, int n);
    \n+
    503
    \n+
    517 inline void unpackIndices(RemoteIndexList& remote, int remoteEntries,
    \n+
    518 PairType** local, int localEntries, char* p_in,
    \n+
    519 MPI_Datatype type, int* position, int bufferSize,
    \n+
    520 bool fromOurself);
    \n+
    521
    \n+
    522 inline void unpackIndices(RemoteIndexList& send, RemoteIndexList& receive,
    \n+
    523 int remoteEntries, PairType** localSource,
    \n+
    524 int localSourceEntries, PairType** localDest,
    \n+
    525 int localDestEntries, char* p_in,
    \n+
    526 MPI_Datatype type, int* position, int bufferSize);
    \n+
    527
    \n+
    528 void unpackCreateRemote(char* p_in, PairType** sourcePairs, PairType** DestPairs,
    \n+
    529 int remoteProc, int sourcePublish, int destPublish,
    \n+
    530 int bufferSize, bool sendTwo, bool fromOurSelf=false);
    \n+
    531 };
    \n+
    \n+
    532
    \n+
    548 template<class T, class A, bool mode>
    \n+
    \n+\n+
    550 {
    \n+
    551
    \n+
    552 template<typename T1, typename A1>
    \n+
    553 friend class RemoteIndices;
    \n+
    554
    \n+
    555 public:
    \n+
    \n+\n+
    557 {};
    \n+
    \n+
    558
    \n+
    567 constexpr static bool MODIFYINDEXSET = mode;
    \n+
    568
    \n+\n+
    573
    \n+\n+
    578
    \n+\n+
    583
    \n+
    587 typedef typename LocalIndex::Attribute Attribute;
    \n+
    588
    \n+\n+
    593
    \n+
    597 typedef A Allocator;
    \n+
    598
    \n+\n+\n+
    602
    \n+\n+
    607
    \n+\n+
    612
    \n+
    626 void insert(const RemoteIndex& index);
    \n+
    627
    \n+
    628
    \n+
    643 void insert(const RemoteIndex& index, const GlobalIndex& global);
    \n+
    644
    \n+
    652 bool remove(const GlobalIndex& global);
    \n+
    653
    \n+\n+
    667
    \n+
    668
    \n+\n+
    670
    \n+
    \n+\n+
    676 : glist_()
    \n+
    677 {}
    \n+
    \n+
    678
    \n+
    679 private:
    \n+
    680
    \n+\n+
    687 RemoteIndexList& rList);
    \n+
    688
    \n+
    689 typedef SLList<GlobalIndex,Allocator> GlobalList;
    \n+
    690 typedef typename GlobalList::ModifyIterator GlobalModifyIterator;
    \n+
    691 RemoteIndexList* rList_;
    \n+
    692 const ParallelIndexSet* indexSet_;
    \n+
    693 GlobalList glist_;
    \n+
    694 ModifyIterator iter_;
    \n+
    695 GlobalModifyIterator giter_;
    \n+
    696 ConstIterator end_;
    \n+
    697 bool first_;
    \n+
    698 GlobalIndex last_;
    \n+
    699 };
    \n+
    \n+
    700
    \n+
    705 template<class T, class A>
    \n+
    \n+\n+
    707 {
    \n+
    708
    \n+
    712 typedef T ParallelIndexSet;
    \n+
    713
    \n+
    717 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n+
    718
    \n+
    722 typedef typename ParallelIndexSet::LocalIndex LocalIndex;
    \n+
    723
    \n+
    727 typedef typename LocalIndex::Attribute Attribute;
    \n+
    728
    \n+\n+
    731
    \n+
    733 using Allocator = typename std::allocator_traits<A>::template rebind_alloc<RemoteIndex>;
    \n+
    734
    \n+\n+
    737
    \n+
    739 typedef std::map<int,std::pair<typename RemoteIndexList::const_iterator,
    \n+
    740 const typename RemoteIndexList::const_iterator> >
    \n+
    741 Map;
    \n+
    742
    \n+
    743 public:
    \n+
    744
    \n+
    746 typedef std::map<int, std::pair<RemoteIndexList*,RemoteIndexList*> >
    \n+\n+
    748
    \n+
    754 inline CollectiveIterator(const RemoteIndexMap& map_, bool send);
    \n+
    755
    \n+
    764 inline void advance(const GlobalIndex& global);
    \n+
    765
    \n+
    775 inline void advance(const GlobalIndex& global, const Attribute& attribute);
    \n+
    776
    \n+\n+
    778
    \n+
    782 inline bool empty() const;
    \n+
    783
    \n+
    \n+\n+
    791 {
    \n+
    792 public:
    \n+
    793 typedef typename Map::iterator RealIterator;
    \n+
    794 typedef typename Map::iterator ConstRealIterator;
    \n+
    795
    \n+
    796
    \n+
    \n+
    798 iterator(const RealIterator& iter, const ConstRealIterator& end, GlobalIndex& index)
    \n+
    799 : iter_(iter), end_(end), index_(index), hasAttribute(false)
    \n+
    800 {
    \n+
    801 // Move to the first valid entry
    \n+
    802 while(iter_!=end_ && iter_->second.first->localIndexPair().global()!=index_)
    \n+
    803 ++iter_;
    \n+
    804 }
    \n+
    \n+
    805
    \n+
    \n+
    806 iterator(const RealIterator& iter, const ConstRealIterator& end, GlobalIndex index,
    \n+
    807 Attribute attribute)
    \n+
    808 : iter_(iter), end_(end), index_(index), attribute_(attribute), hasAttribute(true)
    \n+
    809 {
    \n+
    810 // Move to the first valid entry or the end
    \n+
    811 while(iter_!=end_ && (iter_->second.first->localIndexPair().global()!=index_
    \n+
    812 || iter_->second.first->localIndexPair().local().attribute()!=attribute))
    \n+
    813 ++iter_;
    \n+
    814 }
    \n+
    \n+
    \n+
    816 iterator(const iterator& other)
    \n+
    817 : iter_(other.iter_), end_(other.end_), index_(other.index_)
    \n+
    818 { }
    \n+
    \n+
    819
    \n+
    \n+\n+
    822 {
    \n+
    823 ++iter_;
    \n+
    824 // If entry is not valid move on
    \n+
    825 while(iter_!=end_ && (iter_->second.first->localIndexPair().global()!=index_ ||
    \n+
    826 (hasAttribute &&
    \n+
    827 iter_->second.first->localIndexPair().local().attribute()!=attribute_)))
    \n+
    828 ++iter_;
    \n+
    829 assert(iter_==end_ ||
    \n+
    830 (iter_->second.first->localIndexPair().global()==index_));
    \n+
    831 assert(iter_==end_ || !hasAttribute ||
    \n+
    832 (iter_->second.first->localIndexPair().local().attribute()==attribute_));
    \n+
    833 return *this;
    \n+
    834 }
    \n+
    \n+
    835
    \n+
    \n+
    837 const RemoteIndex& operator*() const
    \n+
    838 {
    \n+
    839 return *(iter_->second.first);
    \n+
    840 }
    \n+
    \n+
    841
    \n+
    \n+
    843 int process() const
    \n+
    844 {
    \n+
    845 return iter_->first;
    \n+
    846 }
    \n+
    \n+
    847
    \n+
    \n+
    849 const RemoteIndex* operator->() const
    \n+
    850 {
    \n+
    851 return iter_->second.first.operator->();
    \n+
    852 }
    \n+
    \n+
    853
    \n+
    \n+
    855 bool operator==(const iterator& other) const
    \n+
    856 {
    \n+
    857 return other.iter_==iter_;
    \n+
    858 }
    \n+
    \n+
    859
    \n+
    \n+
    861 bool operator!=(const iterator& other) const
    \n+
    862 {
    \n+
    863 return other.iter_!=iter_;
    \n+
    864 }
    \n+
    \n+
    865
    \n+
    866 private:
    \n+
    867 iterator();
    \n+
    868
    \n+
    869 RealIterator iter_;
    \n+
    870 RealIterator end_;
    \n+
    871 GlobalIndex index_;
    \n+
    872 Attribute attribute_;
    \n+
    873 bool hasAttribute;
    \n+
    874 };
    \n+
    \n+
    875
    \n+
    876 iterator begin();
    \n+
    877
    \n+
    878 iterator end();
    \n+
    879
    \n+
    880 private:
    \n+
    881
    \n+
    882 Map map_;
    \n+
    883 GlobalIndex index_;
    \n+
    884 Attribute attribute_;
    \n+
    885 bool noattribute;
    \n+
    886 };
    \n+
    \n+
    887
    \n+
    888 template<typename TG, typename TA>
    \n+
    \n+\n+
    890 {
    \n+
    891 if(type==MPI_DATATYPE_NULL) {
    \n+
    892 int length[2] = {1, 1};
    \n+
    893 MPI_Aint base;
    \n+
    894 MPI_Aint disp[2];
    \n+
    895 MPI_Datatype types[2] = {MPITraits<TG>::getType(),
    \n+\n+\n+
    898 MPI_Get_address(&rep, &base); // lower bound of the datatype
    \n+
    899 MPI_Get_address(&(rep.global_), &disp[0]);
    \n+
    900 MPI_Get_address(&(rep.local_), &disp[1]);
    \n+
    901 for (MPI_Aint& d : disp)
    \n+
    902 d -= base;
    \n+
    903
    \n+
    904 MPI_Datatype tmp;
    \n+
    905 MPI_Type_create_struct(2, length, disp, types, &tmp);
    \n+
    906
    \n+
    907 MPI_Type_create_resized(tmp, 0, sizeof(IndexPair<TG,ParallelLocalIndex<TA> >), &type);
    \n+
    908 MPI_Type_commit(&type);
    \n+
    909
    \n+
    910 MPI_Type_free(&tmp);
    \n+
    911 }
    \n+
    912 return type;
    \n+
    913 }
    \n+
    \n+
    914
    \n+
    915 template<typename TG, typename TA>
    \n+
    916 MPI_Datatype MPITraits<IndexPair<TG,ParallelLocalIndex<TA> > >::type=MPI_DATATYPE_NULL;
    \n+
    917
    \n+
    918 template<typename T1, typename T2>
    \n+
    \n+
    919 RemoteIndex<T1,T2>::RemoteIndex(const T2& attribute, const PairType* local)
    \n+
    920 : localIndex_(local), attribute_(static_cast<std::underlying_type_t<T2>>(attribute))
    \n+
    921 {}
    \n+
    \n+
    922
    \n+
    923 template<typename T1, typename T2>
    \n+
    \n+\n+
    925 : localIndex_(0), attribute_(static_cast<std::underlying_type_t<T2>>(attribute))
    \n+
    926 {}
    \n+
    \n+
    927
    \n+
    928 template<typename T1, typename T2>
    \n+
    \n+\n+
    930 : localIndex_(0), attribute_()
    \n+
    931 {}
    \n+
    \n+
    932 template<typename T1, typename T2>
    \n+
    \n+
    933 inline bool RemoteIndex<T1,T2>::operator==(const RemoteIndex& ri) const
    \n+
    934 {
    \n+
    935 return localIndex_==ri.localIndex_ && attribute_==ri.attribute_;
    \n+
    936 }
    \n+
    \n+
    937
    \n+
    938 template<typename T1, typename T2>
    \n+
    \n+
    939 inline bool RemoteIndex<T1,T2>::operator!=(const RemoteIndex& ri) const
    \n+
    940 {
    \n+
    941 return localIndex_!=ri.localIndex_ || attribute_!=ri.attribute_;
    \n+
    942 }
    \n+
    \n+
    943
    \n+
    944 template<typename T1, typename T2>
    \n+
    \n+
    945 inline const T2 RemoteIndex<T1,T2>::attribute() const
    \n+
    946 {
    \n+
    947 return T2(attribute_);
    \n+
    948 }
    \n+
    \n+
    949
    \n+
    950 template<typename T1, typename T2>
    \n+
    \n+\n+
    952 {
    \n+
    953 return *localIndex_;
    \n+
    954 }
    \n+
    \n+
    955
    \n+
    956 template<typename T, typename A>
    \n+
    \n+\n+
    958 const ParallelIndexSet& destination,
    \n+
    959 const MPI_Comm& comm,
    \n+
    960 const std::vector<int>& neighbours,
    \n+
    961 bool includeSelf_)
    \n+
    962 : source_(&source), target_(&destination), comm_(comm),
    \n+
    963 sourceSeqNo_(-1), destSeqNo_(-1), publicIgnored(false), firstBuild(true),
    \n+
    964 includeSelf(includeSelf_)
    \n+
    965 {
    \n+\n+
    967 }
    \n+
    \n+
    968
    \n+
    969 template<typename T, typename A>
    \n+
    \n+\n+
    971 {
    \n+
    972 includeSelf=b;
    \n+
    973 }
    \n+
    \n+
    974
    \n+
    975 template<typename T, typename A>
    \n+
    \n+\n+
    977 : source_(0), target_(0), sourceSeqNo_(-1),
    \n+
    978 destSeqNo_(-1), publicIgnored(false), firstBuild(true),
    \n+
    979 includeSelf(false)
    \n+
    980 {}
    \n+
    \n+
    981
    \n+
    982 template<class T, typename A>
    \n+
    \n+\n+
    984 const ParallelIndexSet& destination,
    \n+
    985 const MPI_Comm& comm,
    \n+
    986 const std::vector<int>& neighbours)
    \n+
    987 {
    \n+
    988 free();
    \n+
    989 source_ = &source;
    \n+
    990 target_ = &destination;
    \n+
    991 comm_ = comm;
    \n+
    992 firstBuild = true;
    \n+
    993 setNeighbours(neighbours);
    \n+
    994 }
    \n+
    \n+
    995
    \n+
    996 template<typename T, typename A>
    \n+\n+
    \n+\n+
    999 {
    \n+
    1000 return *source_;
    \n+
    1001 }
    \n+
    \n+
    1002
    \n+
    1003
    \n+
    1004 template<typename T, typename A>
    \n+\n+
    \n+\n+
    1007 {
    \n+
    1008 return *target_;
    \n+
    1009 }
    \n+
    \n+
    1010
    \n+
    1011
    \n+
    1012 template<typename T, typename A>
    \n+
    \n+\n+
    1014 {
    \n+
    1015 free();
    \n+
    1016 }
    \n+
    \n+
    1017
    \n+
    1018 template<typename T, typename A>
    \n+
    1019 template<bool ignorePublic>
    \n+
    \n+\n+
    1021 const ParallelIndexSet& indexSet,
    \n+
    1022 char* p_out, MPI_Datatype type,
    \n+
    1023 int bufferSize,
    \n+
    1024 int *position,
    \n+
    1025 [[maybe_unused]] int n)
    \n+
    1026 {
    \n+
    1027 // fill with own indices
    \n+
    1028 const auto end = indexSet.end();
    \n+
    1029
    \n+
    1030 //Now pack the source indices
    \n+
    1031 int i=0;
    \n+
    1032 for(auto index = indexSet.begin(); index != end; ++index)
    \n+
    1033 if(ignorePublic || index->local().isPublic()) {
    \n+
    1034
    \n+
    1035 MPI_Pack(const_cast<PairType*>(&(*index)), 1,
    \n+
    1036 type,
    \n+
    1037 p_out, bufferSize, position, comm_);
    \n+
    1038 pairs[i++] = const_cast<PairType*>(&(*index));
    \n+
    1039
    \n+
    1040 }
    \n+
    1041 assert(i==n);
    \n+
    1042 }
    \n+
    \n+
    1043
    \n+
    1044 template<typename T, typename A>
    \n+
    1045 inline int RemoteIndices<T,A>::noPublic(const ParallelIndexSet& indexSet)
    \n+
    1046 {
    \n+
    1047
    \n+
    1048 int noPublic=0;
    \n+
    1049
    \n+
    1050 const auto end=indexSet.end();
    \n+
    1051 for(auto index=indexSet.begin(); index!=end; ++index)
    \n+
    1052 if(index->local().isPublic())
    \n+
    1053 noPublic++;
    \n+
    1054
    \n+
    1055 return noPublic;
    \n+
    1056
    \n+
    1057 }
    \n+
    1058
    \n+
    1059
    \n+
    1060 template<typename T, typename A>
    \n+
    1061 inline void RemoteIndices<T,A>::unpackCreateRemote(char* p_in, PairType** sourcePairs,
    \n+
    1062 PairType** destPairs, int remoteProc,
    \n+
    1063 int sourcePublish, int destPublish,
    \n+
    1064 int bufferSize, bool sendTwo,
    \n+
    1065 bool fromOurSelf)
    \n+
    1066 {
    \n+
    1067
    \n+
    1068 // unpack the number of indices we received
    \n+
    1069 int noRemoteSource=-1, noRemoteDest=-1;
    \n+
    1070 char twoIndexSets=0;
    \n+
    1071 int position=0;
    \n+
    1072 // Did we receive two index sets?
    \n+
    1073 MPI_Unpack(p_in, bufferSize, &position, &twoIndexSets, 1, MPI_CHAR, comm_);
    \n+
    1074 // The number of source indices received
    \n+
    1075 MPI_Unpack(p_in, bufferSize, &position, &noRemoteSource, 1, MPI_INT, comm_);
    \n+
    1076 // The number of destination indices received
    \n+
    1077 MPI_Unpack(p_in, bufferSize, &position, &noRemoteDest, 1, MPI_INT, comm_);
    \n+
    1078
    \n+
    1079
    \n+
    1080 // Indices for which we receive
    \n+
    1081 RemoteIndexList* receive= new RemoteIndexList();
    \n+
    1082 // Indices for which we send
    \n+
    1083 RemoteIndexList* send=0;
    \n+
    1084
    \n+
    1085 MPI_Datatype type= MPITraits<PairType>::getType();
    \n+
    1086
    \n+
    1087 if(!twoIndexSets) {
    \n+
    1088 if(sendTwo) {
    \n+
    1089 send = new RemoteIndexList();
    \n+
    1090 // Create both remote index sets simultaneously
    \n+
    1091 unpackIndices(*send, *receive, noRemoteSource, sourcePairs, sourcePublish,
    \n+
    1092 destPairs, destPublish, p_in, type, &position, bufferSize);
    \n+
    1093 }else{
    \n+
    1094 // we only need one list
    \n+
    1095 unpackIndices(*receive, noRemoteSource, sourcePairs, sourcePublish,
    \n+
    1096 p_in, type, &position, bufferSize, fromOurSelf);
    \n+
    1097 send=receive;
    \n+
    1098 }
    \n+
    1099 }else{
    \n+
    1100
    \n+
    1101 int oldPos=position;
    \n+
    1102 // Two index sets received
    \n+
    1103 unpackIndices(*receive, noRemoteSource, destPairs, destPublish,
    \n+
    1104 p_in, type, &position, bufferSize, fromOurSelf);
    \n+
    1105 if(!sendTwo)
    \n+
    1106 //unpack source entries again as destination entries
    \n+
    1107 position=oldPos;
    \n+
    1108
    \n+
    1109 send = new RemoteIndexList();
    \n+
    1110 unpackIndices(*send, noRemoteDest, sourcePairs, sourcePublish,
    \n+
    1111 p_in, type, &position, bufferSize, fromOurSelf);
    \n+
    1112 }
    \n+
    1113
    \n+
    1114 if(receive->empty() && send->empty()) {
    \n+
    1115 if(send==receive) {
    \n+
    1116 delete send;
    \n+
    1117 }else{
    \n+
    1118 delete send;
    \n+
    1119 delete receive;
    \n+
    1120 }
    \n+
    1121 }else{
    \n+
    1122 remoteIndices_.insert(std::make_pair(remoteProc,
    \n+
    1123 std::make_pair(send,receive)));
    \n+
    1124 }
    \n+
    1125 }
    \n+
    1126
    \n+
    1127
    \n+
    1128 template<typename T, typename A>
    \n+
    1129 template<bool ignorePublic>
    \n+
    1130 inline void RemoteIndices<T,A>::buildRemote(bool includeSelf_)
    \n+
    1131 {
    \n+
    1132 // Processor configuration
    \n+
    1133 int rank, procs;
    \n+
    1134 MPI_Comm_rank(comm_, &rank);
    \n+
    1135 MPI_Comm_size(comm_, &procs);
    \n+
    1136
    \n+
    1137 // number of local indices to publish
    \n+
    1138 // The indices of the destination will be send.
    \n+
    1139 int sourcePublish, destPublish;
    \n+
    1140
    \n+
    1141 // Do we need to send two index sets?
    \n+
    1142 char sendTwo = (source_ != target_);
    \n+
    1143
    \n+
    1144 if(procs==1 && !(sendTwo || includeSelf_))
    \n+
    1145 // Nothing to communicate
    \n+
    1146 return;
    \n+
    1147
    \n+
    1148 sourcePublish = (ignorePublic) ? source_->size() : noPublic(*source_);
    \n+
    1149
    \n+
    1150 if(sendTwo)
    \n+
    1151 destPublish = (ignorePublic) ? target_->size() : noPublic(*target_);
    \n+
    1152 else
    \n+
    1153 // we only need to send one set of indices
    \n+
    1154 destPublish = 0;
    \n+
    1155
    \n+
    1156 int maxPublish, publish=sourcePublish+destPublish;
    \n+
    1157
    \n+
    1158 // Calculate maximum number of indices send
    \n+
    1159 MPI_Allreduce(&publish, &maxPublish, 1, MPI_INT, MPI_MAX, comm_);
    \n+
    1160
    \n+
    1161 // allocate buffers
    \n+
    1162 PairType** destPairs;
    \n+
    1163 PairType** sourcePairs = new PairType*[sourcePublish>0 ? sourcePublish : 1];
    \n+
    1164
    \n+
    1165 if(sendTwo)
    \n+
    1166 destPairs = new PairType*[destPublish>0 ? destPublish : 1];
    \n+
    1167 else
    \n+
    1168 destPairs=sourcePairs;
    \n+
    1169
    \n+
    1170 char** buffer = new char*[2];
    \n+
    1171 int bufferSize;
    \n+
    1172 int position=0;
    \n+
    1173 int intSize;
    \n+
    1174 int charSize;
    \n+
    1175
    \n+
    1176 // calculate buffer size
    \n+
    1177 MPI_Datatype type = MPITraits<PairType>::getType();
    \n+
    1178
    \n+
    1179 MPI_Pack_size(maxPublish, type, comm_,
    \n+
    1180 &bufferSize);
    \n+
    1181 MPI_Pack_size(1, MPI_INT, comm_,
    \n+
    1182 &intSize);
    \n+
    1183 MPI_Pack_size(1, MPI_CHAR, comm_,
    \n+
    1184 &charSize);
    \n+
    1185 // Our message will contain the following:
    \n+
    1186 // a bool whether two index sets where sent
    \n+
    1187 // the size of the source and the dest indexset,
    \n+
    1188 // then the source and destination indices
    \n+
    1189 bufferSize += 2 * intSize + charSize;
    \n+
    1190
    \n+
    1191 if(bufferSize<=0) bufferSize=1;
    \n+
    1192
    \n+
    1193 buffer[0] = new char[bufferSize];
    \n+
    1194 buffer[1] = new char[bufferSize];
    \n+
    1195
    \n+
    1196
    \n+
    1197 // pack entries into buffer[0], p_out below!
    \n+
    1198 MPI_Pack(&sendTwo, 1, MPI_CHAR, buffer[0], bufferSize, &position,
    \n+
    1199 comm_);
    \n+
    1200
    \n+
    1201 // The number of indices we send for each index set
    \n+
    1202 MPI_Pack(&sourcePublish, 1, MPI_INT, buffer[0], bufferSize, &position,
    \n+
    1203 comm_);
    \n+
    1204 MPI_Pack(&destPublish, 1, MPI_INT, buffer[0], bufferSize, &position,
    \n+
    1205 comm_);
    \n+
    1206
    \n+
    1207 // Now pack the source indices and setup the destination pairs
    \n+
    1208 packEntries<ignorePublic>(sourcePairs, *source_, buffer[0], type,
    \n+
    1209 bufferSize, &position, sourcePublish);
    \n+
    1210 // If necessary send the dest indices and setup the source pairs
    \n+
    1211 if(sendTwo)
    \n+
    1212 packEntries<ignorePublic>(destPairs, *target_, buffer[0], type,
    \n+
    1213 bufferSize, &position, destPublish);
    \n+
    1214
    \n+
    1215
    \n+
    1216 // Update remote indices for ourself
    \n+
    1217 if(sendTwo|| includeSelf_)
    \n+
    1218 unpackCreateRemote(buffer[0], sourcePairs, destPairs, rank, sourcePublish,
    \n+
    1219 destPublish, bufferSize, sendTwo, includeSelf_);
    \n+
    1220
    \n+
    1221 neighbourIds.erase(rank);
    \n+
    1222
    \n+
    1223 if(neighbourIds.size()==0)
    \n+
    1224 {
    \n+
    1225 Dune::dvverb<<rank<<": Sending messages in a ring"<<std::endl;
    \n+
    1226 // send messages in ring
    \n+
    1227 for(int proc=1; proc<procs; proc++) {
    \n+
    1228 // pointers to the current input and output buffers
    \n+
    1229 char* p_out = buffer[1-(proc%2)];
    \n+
    1230 char* p_in = buffer[proc%2];
    \n+
    1231
    \n+
    1232 MPI_Status status;
    \n+
    1233 if(rank%2==0) {
    \n+
    1234 MPI_Ssend(p_out, bufferSize, MPI_PACKED, (rank+1)%procs,
    \n+
    1235 commTag_, comm_);
    \n+
    1236 MPI_Recv(p_in, bufferSize, MPI_PACKED, (rank+procs-1)%procs,
    \n+
    1237 commTag_, comm_, &status);
    \n+
    1238 }else{
    \n+
    1239 MPI_Recv(p_in, bufferSize, MPI_PACKED, (rank+procs-1)%procs,
    \n+
    1240 commTag_, comm_, &status);
    \n+
    1241 MPI_Ssend(p_out, bufferSize, MPI_PACKED, (rank+1)%procs,
    \n+
    1242 commTag_, comm_);
    \n+
    1243 }
    \n+
    1244
    \n+
    1245
    \n+
    1246 // The process these indices are from
    \n+
    1247 int remoteProc = (rank+procs-proc)%procs;
    \n+
    1248
    \n+
    1249 unpackCreateRemote(p_in, sourcePairs, destPairs, remoteProc, sourcePublish,
    \n+
    1250 destPublish, bufferSize, sendTwo);
    \n+
    1251
    \n+
    1252 }
    \n+
    1253
    \n+
    1254 }
    \n+
    1255 else
    \n+
    1256 {
    \n+
    1257 MPI_Request* requests=new MPI_Request[neighbourIds.size()];
    \n+
    1258 MPI_Request* req=requests;
    \n+
    1259
    \n+
    1260 typedef typename std::set<int>::size_type size_type;
    \n+
    1261 size_type noNeighbours=neighbourIds.size();
    \n+
    1262
    \n+
    1263 // setup sends
    \n+
    1264 for(std::set<int>::iterator neighbour=neighbourIds.begin();
    \n+
    1265 neighbour!= neighbourIds.end(); ++neighbour) {
    \n+
    1266 // Only send the information to the neighbouring processors
    \n+
    1267 MPI_Issend(buffer[0], position , MPI_PACKED, *neighbour, commTag_, comm_, req++);
    \n+
    1268 }
    \n+
    1269
    \n+
    1270 //Test for received messages
    \n+
    1271
    \n+
    1272 for(size_type received=0; received <noNeighbours; ++received)
    \n+
    1273 {
    \n+
    1274 MPI_Status status;
    \n+
    1275 // probe for next message
    \n+
    1276 MPI_Probe(MPI_ANY_SOURCE, commTag_, comm_, &status);
    \n+
    1277 int remoteProc=status.MPI_SOURCE;
    \n+
    1278 int size;
    \n+
    1279 MPI_Get_count(&status, MPI_PACKED, &size);
    \n+
    1280 // receive message
    \n+
    1281 MPI_Recv(buffer[1], size, MPI_PACKED, remoteProc,
    \n+
    1282 commTag_, comm_, &status);
    \n+
    1283
    \n+
    1284 unpackCreateRemote(buffer[1], sourcePairs, destPairs, remoteProc, sourcePublish,
    \n+
    1285 destPublish, bufferSize, sendTwo);
    \n+
    1286 }
    \n+
    1287 // wait for completion of pending requests
    \n+
    1288 MPI_Status* statuses = new MPI_Status[neighbourIds.size()];
    \n+
    1289
    \n+
    1290 if(int(MPI_ERR_IN_STATUS)==MPI_Waitall(neighbourIds.size(), requests, statuses)) {
    \n+
    1291 for(size_type i=0; i < neighbourIds.size(); ++i)
    \n+
    1292 if(statuses[i].MPI_ERROR!=MPI_SUCCESS) {
    \n+
    1293 std::cerr<<rank<<": MPI_Error occurred while receiving message."<<std::endl;
    \n+
    1294 MPI_Abort(comm_, 999);
    \n+
    1295 }
    \n+
    1296 }
    \n+
    1297 delete[] requests;
    \n+
    1298 delete[] statuses;
    \n+
    1299 }
    \n+
    1300
    \n+
    1301
    \n+
    1302 // delete allocated memory
    \n+
    1303 if(destPairs!=sourcePairs)
    \n+
    1304 delete[] destPairs;
    \n+
    1305
    \n+
    1306 delete[] sourcePairs;
    \n+
    1307 delete[] buffer[0];
    \n+
    1308 delete[] buffer[1];
    \n+
    1309 delete[] buffer;
    \n+
    1310 }
    \n+
    1311
    \n+
    1312 template<typename T, typename A>
    \n+
    1313 inline void RemoteIndices<T,A>::unpackIndices(RemoteIndexList& remote,
    \n+
    1314 int remoteEntries,
    \n+
    1315 PairType** local,
    \n+
    1316 int localEntries,
    \n+
    1317 char* p_in,
    \n+
    1318 MPI_Datatype type,
    \n+
    1319 int* position,
    \n+
    1320 int bufferSize,
    \n+
    1321 bool fromOurSelf)
    \n+
    1322 {
    \n+
    1323 if(remoteEntries==0)
    \n+
    1324 return;
    \n+
    1325
    \n+
    1326 PairType index;
    \n+
    1327 MPI_Unpack(p_in, bufferSize, position, &index, 1,
    \n+
    1328 type, comm_);
    \n+
    1329 GlobalIndex oldGlobal=index.global();
    \n+
    1330 int n_in=0, localIndex=0;
    \n+
    1331
    \n+
    1332 //Check if we know the global index
    \n+
    1333 while(localIndex<localEntries) {
    \n+
    1334 if(local[localIndex]->global()==index.global()) {
    \n+
    1335 int oldLocalIndex=localIndex;
    \n+
    1336
    \n+
    1337 while(localIndex<localEntries &&
    \n+
    1338 local[localIndex]->global()==index.global()) {
    \n+
    1339 if(!fromOurSelf || index.local().attribute() !=
    \n+
    1340 local[localIndex]->local().attribute())
    \n+
    1341 // if index is from us it has to have a different attribute
    \n+
    1342 remote.push_back(RemoteIndex(index.local().attribute(),
    \n+
    1343 local[localIndex]));
    \n+
    1344 localIndex++;
    \n+
    1345 }
    \n+
    1346
    \n+
    1347 // unpack next remote index
    \n+
    1348 if((++n_in) < remoteEntries) {
    \n+
    1349 MPI_Unpack(p_in, bufferSize, position, &index, 1,
    \n+
    1350 type, comm_);
    \n+
    1351 if(index.global()==oldGlobal)
    \n+
    1352 // Restart comparison for the same global indices
    \n+
    1353 localIndex=oldLocalIndex;
    \n+
    1354 else
    \n+
    1355 oldGlobal=index.global();
    \n+
    1356 }else{
    \n+
    1357 // No more received indices
    \n+
    1358 break;
    \n+
    1359 }
    \n+
    1360 continue;
    \n+
    1361 }
    \n+
    1362
    \n+
    1363 if (local[localIndex]->global()<index.global()) {
    \n+
    1364 // compare with next entry in our list
    \n+
    1365 ++localIndex;
    \n+
    1366 }else{
    \n+
    1367 // We do not know the index, unpack next
    \n+
    1368 if((++n_in) < remoteEntries) {
    \n+
    1369 MPI_Unpack(p_in, bufferSize, position, &index, 1,
    \n+
    1370 type, comm_);
    \n+
    1371 oldGlobal=index.global();
    \n+
    1372 }else
    \n+
    1373 // No more received indices
    \n+
    1374 break;
    \n+
    1375 }
    \n+
    1376 }
    \n+
    1377
    \n+
    1378 // Unpack the other received indices without doing anything
    \n+
    1379 while(++n_in < remoteEntries)
    \n+
    1380 MPI_Unpack(p_in, bufferSize, position, &index, 1,
    \n+
    1381 type, comm_);
    \n+
    1382 }
    \n+
    1383
    \n+
    1384
    \n+
    1385 template<typename T, typename A>
    \n+
    1386 inline void RemoteIndices<T,A>::unpackIndices(RemoteIndexList& send,
    \n+
    1387 RemoteIndexList& receive,
    \n+
    1388 int remoteEntries,
    \n+
    1389 PairType** localSource,
    \n+
    1390 int localSourceEntries,
    \n+
    1391 PairType** localDest,
    \n+
    1392 int localDestEntries,
    \n+
    1393 char* p_in,
    \n+
    1394 MPI_Datatype type,
    \n+
    1395 int* position,
    \n+
    1396 int bufferSize)
    \n+
    1397 {
    \n+
    1398 int n_in=0, sourceIndex=0, destIndex=0;
    \n+
    1399
    \n+
    1400 //Check if we know the global index
    \n+
    1401 while(n_in<remoteEntries && (sourceIndex<localSourceEntries || destIndex<localDestEntries)) {
    \n+
    1402 // Unpack next index
    \n+
    1403 PairType index;
    \n+
    1404 MPI_Unpack(p_in, bufferSize, position, &index, 1,
    \n+
    1405 type, comm_);
    \n+
    1406 n_in++;
    \n+
    1407
    \n+
    1408 // Advance until global index in localSource and localDest are >= than the one in the unpacked index
    \n+
    1409 while(sourceIndex<localSourceEntries && localSource[sourceIndex]->global()<index.global())
    \n+
    1410 sourceIndex++;
    \n+
    1411
    \n+
    1412 while(destIndex<localDestEntries && localDest[destIndex]->global()<index.global())
    \n+
    1413 destIndex++;
    \n+
    1414
    \n+
    1415 // Add a remote index if we found the global index.
    \n+
    1416 if(sourceIndex<localSourceEntries && localSource[sourceIndex]->global()==index.global())
    \n+
    1417 send.push_back(RemoteIndex(index.local().attribute(),
    \n+
    1418 localSource[sourceIndex]));
    \n+
    1419
    \n+
    1420 if(destIndex < localDestEntries && localDest[destIndex]->global() == index.global())
    \n+
    1421 receive.push_back(RemoteIndex(index.local().attribute(),
    \n+
    1422 localDest[sourceIndex]));
    \n+
    1423 }
    \n+
    1424
    \n+
    1425 }
    \n+
    1426
    \n+
    1427 template<typename T, typename A>
    \n+
    \n+\n+
    1429 {
    \n+
    1430 auto lend = remoteIndices_.end();
    \n+
    1431 for(auto lists=remoteIndices_.begin(); lists != lend; ++lists) {
    \n+
    1432 if(lists->second.first==lists->second.second) {
    \n+
    1433 // there is only one remote index list.
    \n+
    1434 delete lists->second.first;
    \n+
    1435 }else{
    \n+
    1436 delete lists->second.first;
    \n+
    1437 delete lists->second.second;
    \n+
    1438 }
    \n+
    1439 }
    \n+
    1440 remoteIndices_.clear();
    \n+
    1441 firstBuild=true;
    \n+
    1442 }
    \n+
    \n+
    1443
    \n+
    1444 template<typename T, typename A>
    \n+
    \n+\n+
    1446 {
    \n+
    1447 return remoteIndices_.size();
    \n+
    1448 }
    \n+
    \n+
    1449
    \n+
    1450 template<typename T, typename A>
    \n+
    1451 template<bool ignorePublic>
    \n+
    \n+\n+
    1453 {
    \n+
    1454 // Test whether a rebuild is Needed.
    \n+
    1455 if(firstBuild ||
    \n+
    1456 ignorePublic!=publicIgnored || !
    \n+
    1457 isSynced()) {
    \n+
    1458 free();
    \n+
    1459
    \n+
    1460 buildRemote<ignorePublic>(includeSelf);
    \n+
    1461
    \n+
    1462 sourceSeqNo_ = source_->seqNo();
    \n+
    1463 destSeqNo_ = target_->seqNo();
    \n+
    1464 firstBuild=false;
    \n+
    1465 publicIgnored=ignorePublic;
    \n+
    1466 }
    \n+
    1467
    \n+
    1468
    \n+
    1469 }
    \n+
    \n+
    1470
    \n+
    1471 template<typename T, typename A>
    \n+
    \n+\n+
    1473 {
    \n+
    1474 return sourceSeqNo_==source_->seqNo() && destSeqNo_ ==target_->seqNo();
    \n+
    1475 }
    \n+
    \n+
    1476
    \n+
    1477 template<typename T, typename A>
    \n+
    1478 template<bool mode, bool send>
    \n+
    \n+\n+
    1480 {
    \n+
    1481
    \n+
    1482 // The user are on their own now!
    \n+
    1483 // We assume they know what they are doing and just set the
    \n+
    1484 // remote indices to synced status.
    \n+
    1485 sourceSeqNo_ = source_->seqNo();
    \n+
    1486 destSeqNo_ = target_->seqNo();
    \n+
    1487
    \n+
    1488 typename RemoteIndexMap::iterator found = remoteIndices_.find(process);
    \n+
    1489
    \n+
    1490 if(found == remoteIndices_.end())
    \n+
    1491 {
    \n+
    1492 if(source_ != target_)
    \n+
    1493 found = remoteIndices_.insert(found, std::make_pair(process,
    \n+
    1494 std::make_pair(new RemoteIndexList(),
    \n+
    1495 new RemoteIndexList())));
    \n+
    1496 else{
    \n+
    1497 RemoteIndexList* rlist = new RemoteIndexList();
    \n+
    1498 found = remoteIndices_.insert(found,
    \n+
    1499 std::make_pair(process,
    \n+
    1500 std::make_pair(rlist, rlist)));
    \n+
    1501 }
    \n+
    1502 }
    \n+
    1503
    \n+
    1504 firstBuild = false;
    \n+
    1505
    \n+
    1506 if(send)
    \n+
    1507 return RemoteIndexListModifier<T,A,mode>(*source_, *(found->second.first));
    \n+
    1508 else
    \n+
    1509 return RemoteIndexListModifier<T,A,mode>(*target_, *(found->second.second));
    \n+
    1510 }
    \n+
    \n+
    1511
    \n+
    1512 template<typename T, typename A>
    \n+\n+
    \n+\n+
    1515 {
    \n+
    1516 return remoteIndices_.find(proc);
    \n+
    1517 }
    \n+
    \n+
    1518
    \n+
    1519 template<typename T, typename A>
    \n+\n+
    \n+\n+
    1522 {
    \n+
    1523 return remoteIndices_.begin();
    \n+
    1524 }
    \n+
    \n+
    1525
    \n+
    1526 template<typename T, typename A>
    \n+\n+
    \n+\n+
    1529 {
    \n+
    1530 return remoteIndices_.end();
    \n+
    1531 }
    \n+
    \n+
    1532
    \n+
    1533
    \n+
    1534 template<typename T, typename A>
    \n+
    \n+\n+
    1536 {
    \n+
    1537 if(neighbours()!=ri.neighbours())
    \n+
    1538 return false;
    \n+
    1539
    \n+
    1540 const auto rend = remoteIndices_.end();
    \n+
    1541
    \n+
    1542 for(auto rindex = remoteIndices_.begin(), rindex1=ri.remoteIndices_.begin(); rindex!=rend; ++rindex, ++rindex1) {
    \n+
    1543 if(rindex->first != rindex1->first)
    \n+
    1544 return false;
    \n+
    1545 if(*(rindex->second.first) != *(rindex1->second.first))
    \n+
    1546 return false;
    \n+
    1547 if(*(rindex->second.second) != *(rindex1->second.second))
    \n+
    1548 return false;
    \n+
    1549 }
    \n+
    1550 return true;
    \n+
    1551 }
    \n+
    \n+
    1552
    \n+
    1553 template<class T, class A, bool mode>
    \n+\n+
    1555 RemoteIndexList& rList)
    \n+
    1556 : rList_(&rList), indexSet_(&indexSet), iter_(rList.beginModify()), end_(rList.end()), first_(true)
    \n+
    1557 {
    \n+
    1558 if(MODIFYINDEXSET) {
    \n+
    1559 assert(indexSet_);
    \n+
    1560 for(ConstIterator iter=iter_; iter != end_; ++iter)
    \n+
    1561 glist_.push_back(iter->localIndexPair().global());
    \n+
    1562 giter_ = glist_.beginModify();
    \n+
    1563 }
    \n+
    1564 }
    \n+
    1565
    \n+
    1566 template<typename T, typename A, bool mode>
    \n+
    \n+\n+
    1568 : rList_(other.rList_), indexSet_(other.indexSet_),
    \n+
    1569 glist_(other.glist_), iter_(other.iter_), giter_(other.giter_), end_(other.end_),
    \n+
    1570 first_(other.first_), last_(other.last_)
    \n+
    1571 {}
    \n+
    \n+
    1572
    \n+
    1573 template<typename T, typename A, bool mode>
    \n+
    \n+\n+
    1575 {
    \n+
    1576 if(MODIFYINDEXSET) {
    \n+
    1577 // repair pointers to local index set.
    \n+
    1578#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1579 if(indexSet_->state()!=GROUND)
    \n+
    1580 DUNE_THROW(InvalidIndexSetState, "Index has to be in ground mode for repairing pointers to indices");
    \n+
    1581#endif
    \n+
    1582 auto giter = glist_.begin();
    \n+
    1583 auto index = indexSet_->begin();
    \n+
    1584
    \n+
    1585 for(auto iter=rList_->begin(); iter != end_; ++iter) {
    \n+
    1586 while(index->global()<*giter) {
    \n+
    1587 ++index;
    \n+
    1588#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1589 if(index == indexSet_->end())
    \n+
    1590 DUNE_THROW(InvalidPosition, "No such global index in set!");
    \n+
    1591#endif
    \n+
    1592 }
    \n+
    1593
    \n+
    1594#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1595 if(index->global() != *giter)
    \n+
    1596 DUNE_THROW(InvalidPosition, "No such global index in set!");
    \n+
    1597#endif
    \n+
    1598 iter->localIndex_ = &(*index);
    \n+
    1599 }
    \n+
    1600 }
    \n+
    1601 }
    \n+
    \n+
    1602
    \n+
    1603 template<typename T, typename A, bool mode>
    \n+
    \n+\n+
    1605 {
    \n+
    1606 static_assert(!mode,"Not allowed if the mode indicates that new indices"
    \n+
    1607 "might be added to the underlying index set. Use "
    \n+
    1608 "insert(const RemoteIndex&, const GlobalIndex&) instead");
    \n+
    1609
    \n+
    1610#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1611 if(!first_ && index.localIndexPair().global()<last_)
    \n+
    1612 DUNE_THROW(InvalidPosition, "Modification of remote indices have to occur with ascending global index.");
    \n+
    1613#endif
    \n+
    1614 // Move to the correct position
    \n+
    1615 while(iter_ != end_ && iter_->localIndexPair().global() < index.localIndexPair().global()) {
    \n+
    1616 ++iter_;
    \n+
    1617 }
    \n+
    1618
    \n+
    1619 // No duplicate entries allowed
    \n+
    1620 assert(iter_==end_ || iter_->localIndexPair().global() != index.localIndexPair().global());
    \n+
    1621 iter_.insert(index);
    \n+
    1622 last_ = index.localIndexPair().global();
    \n+
    1623 first_ = false;
    \n+
    1624 }
    \n+
    \n+
    1625
    \n+
    1626 template<typename T, typename A, bool mode>
    \n+
    \n+\n+
    1628 {
    \n+
    1629 static_assert(mode,"Not allowed if the mode indicates that no new indices"
    \n+
    1630 "might be added to the underlying index set. Use "
    \n+
    1631 "insert(const RemoteIndex&) instead");
    \n+
    1632#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1633 if(!first_ && global<last_)
    \n+
    1634 DUNE_THROW(InvalidPosition, "Modification of remote indices have to occur with ascending global index.");
    \n+
    1635#endif
    \n+
    1636 // Move to the correct position
    \n+
    1637 while(iter_ != end_ && *giter_ < global) {
    \n+
    1638 ++giter_;
    \n+
    1639 ++iter_;
    \n+
    1640 }
    \n+
    1641
    \n+
    1642 // No duplicate entries allowed
    \n+
    1643 assert(iter_->localIndexPair().global() != global);
    \n+
    1644 iter_.insert(index);
    \n+
    1645 giter_.insert(global);
    \n+
    1646
    \n+
    1647 last_ = global;
    \n+
    1648 first_ = false;
    \n+
    1649 }
    \n+
    \n+
    1650
    \n+
    1651 template<typename T, typename A, bool mode>
    \n+
    \n+\n+
    1653 {
    \n+
    1654#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1655 if(!first_ && global<last_)
    \n+
    1656 DUNE_THROW(InvalidPosition, "Modification of remote indices have to occur with ascending global index.");
    \n+
    1657#endif
    \n+
    1658
    \n+
    1659 bool found= false;
    \n+
    1660
    \n+
    1661 if(MODIFYINDEXSET) {
    \n+
    1662 // Move to the correct position
    \n+
    1663 while(iter_!=end_ && *giter_< global) {
    \n+
    1664 ++giter_;
    \n+
    1665 ++iter_;
    \n+
    1666 }
    \n+
    1667 if(*giter_ == global) {
    \n+
    1668 giter_.remove();
    \n+
    1669 iter_.remove();
    \n+
    1670 found=true;
    \n+
    1671 }
    \n+
    1672 }else{
    \n+
    1673 while(iter_!=end_ && iter_->localIndexPair().global() < global)
    \n+
    1674 ++iter_;
    \n+
    1675
    \n+
    1676 if(iter_->localIndexPair().global()==global) {
    \n+
    1677 iter_.remove();
    \n+
    1678 found = true;
    \n+
    1679 }
    \n+
    1680 }
    \n+
    1681
    \n+
    1682 last_ = global;
    \n+
    1683 first_ = false;
    \n+
    1684 return found;
    \n+
    1685 }
    \n+
    \n+
    1686
    \n+
    1687 template<typename T, typename A>
    \n+
    1688 template<bool send>
    \n+
    \n+\n+
    1690 {
    \n+
    1691 return CollectiveIterator<T,A>(remoteIndices_, send);
    \n+
    1692 }
    \n+
    \n+
    1693
    \n+
    1694 template<typename T, typename A>
    \n+
    \n+
    1695 inline MPI_Comm RemoteIndices<T,A>::communicator() const
    \n+
    1696 {
    \n+
    1697 return comm_;
    \n+
    1698
    \n+
    1699 }
    \n+
    \n+
    1700
    \n+
    1701 template<typename T, typename A>
    \n+
    \n+\n+
    1703 {
    \n+
    1704
    \n+
    1705 const auto end = pmap.end();
    \n+
    1706 for(auto process = pmap.begin(); process != end; ++process) {
    \n+
    1707 const RemoteIndexList* list = send ? process->second.first : process->second.second;
    \n+
    1708 using ri_iterator = typename RemoteIndexList::const_iterator;
    \n+
    1709 map_.insert(std::make_pair(process->first,
    \n+
    1710 std::pair<ri_iterator, const ri_iterator>(list->begin(), list->end())));
    \n+
    1711 }
    \n+
    1712 }
    \n+
    \n+
    1713
    \n+
    1714 template<typename T, typename A>
    \n+
    \n+
    1715 inline void CollectiveIterator<T,A>::advance(const GlobalIndex& index)
    \n+
    1716 {
    \n+
    1717 const auto end = map_.end();
    \n+
    1718
    \n+
    1719 for(auto iter = map_.begin(); iter != end;) {
    \n+
    1720 // Step the iterator until we are >= index
    \n+
    1721 typename RemoteIndexList::const_iterator current = iter->second.first;
    \n+
    1722 typename RemoteIndexList::const_iterator rend = iter->second.second;
    \n+
    1723 RemoteIndex remoteIndex;
    \n+
    1724 if(current != rend)
    \n+
    1725 remoteIndex = *current;
    \n+
    1726
    \n+
    1727 while(iter->second.first!=iter->second.second && iter->second.first->localIndexPair().global()<index)
    \n+
    1728 ++(iter->second.first);
    \n+
    1729
    \n+
    1730 // erase from the map if there are no more entries.
    \n+
    1731 if(iter->second.first == iter->second.second)
    \n+
    1732 map_.erase(iter++);
    \n+
    1733 else{
    \n+
    1734 ++iter;
    \n+
    1735 }
    \n+
    1736 }
    \n+
    1737 index_=index;
    \n+
    1738 noattribute=true;
    \n+
    1739 }
    \n+
    \n+
    1740
    \n+
    1741 template<typename T, typename A>
    \n+
    \n+
    1742 inline void CollectiveIterator<T,A>::advance(const GlobalIndex& index,
    \n+
    1743 const Attribute& attribute)
    \n+
    1744 {
    \n+
    1745 const auto end = map_.end();
    \n+
    1746
    \n+
    1747 for(auto iter = map_.begin(); iter != end;) {
    \n+
    1748 // Step the iterator until we are >= index
    \n+
    1749 typename RemoteIndexList::const_iterator current = iter->second.first;
    \n+
    1750 typename RemoteIndexList::const_iterator rend = iter->second.second;
    \n+
    1751 RemoteIndex remoteIndex;
    \n+
    1752 if(current != rend)
    \n+
    1753 remoteIndex = *current;
    \n+
    1754
    \n+
    1755 // Move to global index or bigger
    \n+
    1756 while(iter->second.first!=iter->second.second && iter->second.first->localIndexPair().global()<index)
    \n+
    1757 ++(iter->second.first);
    \n+
    1758
    \n+
    1759 // move to attribute or bigger
    \n+
    1760 while(iter->second.first!=iter->second.second
    \n+
    1761 && iter->second.first->localIndexPair().global()==index
    \n+
    1762 && iter->second.first->localIndexPair().local().attribute()<attribute)
    \n+
    1763 ++(iter->second.first);
    \n+
    1764
    \n+
    1765 // erase from the map if there are no more entries.
    \n+
    1766 if(iter->second.first == iter->second.second)
    \n+
    1767 map_.erase(iter++);
    \n+
    1768 else{
    \n+
    1769 ++iter;
    \n+
    1770 }
    \n+
    1771 }
    \n+
    1772 index_=index;
    \n+
    1773 attribute_=attribute;
    \n+
    1774 noattribute=false;
    \n+
    1775 }
    \n+
    \n+
    1776
    \n+
    1777 template<typename T, typename A>
    \n+
    \n+\n+
    1779 {
    \n+
    1780 const auto end = map_.end();
    \n+
    1781
    \n+
    1782 for(auto iter = map_.begin(); iter != end;) {
    \n+
    1783 // Step the iterator until we are >= index
    \n+
    1784 auto current = iter->second.first;
    \n+
    1785 auto rend = iter->second.second;
    \n+
    1786
    \n+
    1787 // move all iterators pointing to the current global index to next value
    \n+
    1788 if(iter->second.first->localIndexPair().global()==index_ &&
    \n+
    1789 (noattribute || iter->second.first->localIndexPair().local().attribute() == attribute_))
    \n+
    1790 ++(iter->second.first);
    \n+
    1791
    \n+
    1792 // erase from the map if there are no more entries.
    \n+
    1793 if(iter->second.first == iter->second.second)
    \n+
    1794 map_.erase(iter++);
    \n+
    1795 else{
    \n+
    1796 ++iter;
    \n+
    1797 }
    \n+
    1798 }
    \n+
    1799 return *this;
    \n+
    1800 }
    \n+
    \n+
    1801
    \n+
    1802 template<typename T, typename A>
    \n+
    \n+\n+
    1804 {
    \n+
    1805 return map_.empty();
    \n+
    1806 }
    \n+
    \n+
    1807
    \n+
    1808 template<typename T, typename A>
    \n+
    1809 inline typename CollectiveIterator<T,A>::iterator
    \n+
    \n+\n+
    1811 {
    \n+
    1812 if(noattribute)
    \n+
    1813 return iterator(map_.begin(), map_.end(), index_);
    \n+
    1814 else
    \n+
    1815 return iterator(map_.begin(), map_.end(), index_,
    \n+
    1816 attribute_);
    \n+
    1817 }
    \n+
    \n+
    1818
    \n+
    1819 template<typename T, typename A>
    \n+
    1820 inline typename CollectiveIterator<T,A>::iterator
    \n+
    \n+\n+
    1822 {
    \n+
    1823 return iterator(map_.end(), map_.end(), index_);
    \n+
    1824 }
    \n+
    \n+
    1825
    \n+
    1826 template<typename TG, typename TA>
    \n+
    \n+
    1827 inline std::ostream& operator<<(std::ostream& os, const RemoteIndex<TG,TA>& index)
    \n+
    1828 {
    \n+
    1829 os<<"[global="<<index.localIndexPair().global()<<", remote attribute="<<index.attribute()<<" local attribute="<<index.localIndexPair().local().attribute()<<"]";
    \n+
    1830 return os;
    \n+
    1831 }
    \n+
    \n+
    1832
    \n+
    1833 template<typename T, typename A>
    \n+
    \n+
    1834 inline std::ostream& operator<<(std::ostream& os, const RemoteIndices<T,A>& indices)
    \n+
    1835 {
    \n+
    1836 int rank;
    \n+
    1837 MPI_Comm_rank(indices.comm_, &rank);
    \n+
    1838 const auto rend = indices.remoteIndices_.end();
    \n+
    1839
    \n+
    1840 for(auto rindex = indices.remoteIndices_.begin(); rindex!=rend; ++rindex) {
    \n+
    1841 os<<rank<<": Process "<<rindex->first<<":";
    \n+
    1842
    \n+
    1843 if(!rindex->second.first->empty()) {
    \n+
    1844 os<<" send:";
    \n+
    1845
    \n+
    1846 const auto send= rindex->second.first->end();
    \n+
    1847
    \n+
    1848 for(auto index = rindex->second.first->begin();
    \n+
    1849 index != send; ++index)
    \n+
    1850 os<<*index<<" ";
    \n+
    1851 os<<std::endl;
    \n+
    1852 }
    \n+
    1853 if(!rindex->second.second->empty()) {
    \n+
    1854 os<<rank<<": Process "<<rindex->first<<": "<<"receive: ";
    \n+
    1855
    \n+
    1856 for(const auto& index : *(rindex->second.second))
    \n+
    1857 os << index << " ";
    \n+
    1858 }
    \n+
    1859 os<<std::endl<<std::flush;
    \n+
    1860 }
    \n+
    1861 return os;
    \n+
    1862 }
    \n+
    \n+
    1864}
    \n+
    1865
    \n+
    1866#endif // HAVE_MPI
    \n+
    1867#endif // DUNE_COMMON_PARALLEL_REMOTEINDICES_HH
    \n+
    Provides classes for use as the local index in ParallelIndexSet for distributed computing.
    \n+
    Provides a map between global and local indices.
    \n+
    Traits classes for mapping types onto MPI_Datatype.
    \n+
    Implements a singly linked list together with the necessary iterators.
    \n+
    Standard Dune debug streams.
    \n+
    A few common exception classes.
    \n+
    iterator end()
    Get an iterator pointing to the end of the list.
    Definition sllist.hh:774
    \n+
    SLListConstIterator< RemoteIndex, Allocator > const_iterator
    The constant iterator of the list.
    Definition sllist.hh:74
    \n+
    SLListModifyIterator< GlobalIndex, Allocator > ModifyIterator
    The type of the iterator capable of deletion and insertion.
    Definition sllist.hh:103
    \n+
    iterator begin()
    Get an iterator pointing to the first element in the list.
    Definition sllist.hh:762
    \n+
    std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
    Definition bigunsignedint.hh:278
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n+
    void repairLocalIndexPointers()
    Repair the pointers to the local index pairs.
    Definition remoteindices.hh:1574
    \n+
    const Attribute attribute() const
    Get the attribute of the index on the remote process.
    Definition remoteindices.hh:945
    \n+
    RemoteIndices()
    Definition remoteindices.hh:976
    \n+
    CollectiveIterator & operator++()
    Definition remoteindices.hh:1778
    \n+
    void setIndexSets(const ParallelIndexSet &source, const ParallelIndexSet &destination, const MPI_Comm &comm, const std::vector< int > &neighbours=std::vector< int >())
    Set the index sets and communicator we work with.
    Definition remoteindices.hh:983
    \n+
    void free()
    Free the index lists.
    Definition remoteindices.hh:1428
    \n+
    void insert(const RemoteIndex &index)
    Insert an index to the list.
    Definition remoteindices.hh:1604
    \n+
    iterator end()
    Definition remoteindices.hh:1821
    \n+
    void rebuild()
    Rebuilds the set of remote indices.
    Definition remoteindices.hh:1452
    \n+
    bool operator==(const RemoteIndex &ri) const
    Definition remoteindices.hh:933
    \n+
    MPI_Comm communicator() const
    Get the mpi communicator used.
    Definition remoteindices.hh:1695
    \n+
    CollectiveIteratorT iterator() const
    Get an iterator for collectively iterating over the remote indices of all remote processes.
    Definition remoteindices.hh:1689
    \n+
    void setIncludeSelf(bool includeSelf)
    Tell whether sending from indices of the processor to other indices on the same processor is enabled ...
    Definition remoteindices.hh:970
    \n+
    CollectiveIterator(const RemoteIndexMap &map_, bool send)
    Constructor.
    Definition remoteindices.hh:1702
    \n+
    iterator begin()
    Get an iterator over the indices positioned at the first index.
    \n+
    iterator end()
    Get an iterator over the indices positioned after the last index.
    \n+
    const_iterator end() const
    Get an iterator over all remote index lists.
    Definition remoteindices.hh:1528
    \n+
    bool operator==(const RemoteIndices &ri) const
    Definition remoteindices.hh:1535
    \n+
    bool empty() const
    Checks whether there are still iterators in the map.
    Definition remoteindices.hh:1803
    \n+
    RemoteIndexListModifier< T, A, mode > getModifier(int process)
    Get a modifier for a remote index list.
    Definition remoteindices.hh:1479
    \n+
    void advance(const GlobalIndex &global)
    Advances all underlying iterators.
    Definition remoteindices.hh:1715
    \n+
    const PairType & localIndexPair() const
    Get the corresponding local index pair.
    Definition remoteindices.hh:951
    \n+
    const ParallelIndexSet & sourceIndexSet() const
    Get the index set at the source.
    Definition remoteindices.hh:998
    \n+
    ~RemoteIndices()
    Destructor.
    Definition remoteindices.hh:1013
    \n+
    TL LocalIndex
    The type of the local index, e.g. ParallelLocalIndex.
    Definition indexset.hh:239
    \n+
    bool remove(const GlobalIndex &global)
    Remove a remote index.
    Definition remoteindices.hh:1652
    \n+
    const GlobalIndex & global() const
    Get the global index.
    \n+
    RemoteIndex()
    Parameterless Constructor.
    Definition remoteindices.hh:929
    \n+
    int neighbours() const
    Get the number of processors we share indices with.
    Definition remoteindices.hh:1445
    \n+
    LocalIndex & local()
    Get the local index.
    \n+
    TG GlobalIndex
    the type of the global index. This type has to provide at least a operator< for sorting.
    Definition indexset.hh:226
    \n+
    const ParallelIndexSet & destinationIndexSet() const
    Get the index set at destination.
    Definition remoteindices.hh:1006
    \n+
    const_iterator find(int proc) const
    Find an iterator over the remote index lists of a specific process.
    Definition remoteindices.hh:1514
    \n+
    bool isSynced() const
    Checks whether the remote indices are synced with the indexsets.
    Definition remoteindices.hh:1472
    \n+
    bool operator!=(const RemoteIndex &ri) const
    Definition remoteindices.hh:939
    \n+
    const_iterator begin() const
    Get an iterator over all remote index lists.
    Definition remoteindices.hh:1521
    \n+
    iterator begin()
    Definition remoteindices.hh:1810
    \n+
    @ GROUND
    The default mode. Indicates that the index set is ready to be used.
    Definition indexset.hh:186
    \n+
    DVVerbType dvverb(std::cout)
    stream for very verbose output.
    Definition stdstreams.hh:96
    \n+
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    std::size_t hash_range(It first, It last)
    Hashes all elements in the range [first,last) and returns the combined hash.
    Definition hash.hh:322
    \n-
    void hash_combine(std::size_t &seed, const T &arg)
    Calculates the hash value of arg and combines it in-place with seed.
    Definition hash.hh:307
    \n-
    Functor for hashing objects of type T.
    Definition hash.hh:40
    \n-
    std::size_t operator()(const T &t) const
    Calculates the hash of t.
    Definition hash.hh:43
    \n+
    constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
    Return the size of the sequence.
    Definition integersequence.hh:75
    \n+
    A traits class describing the mapping of types onto MPI_Datatypes.
    Definition mpitraits.hh:41
    \n+
    static MPI_Datatype getType()
    Definition mpitraits.hh:48
    \n+
    Default exception class for range errors.
    Definition exceptions.hh:254
    \n+
    A pair consisting of a global and local index.
    Definition indexset.hh:85
    \n+
    Exception indicating that the index set is not in the expected state.
    Definition indexset.hh:205
    \n+
    Manager class for the mapping between local indices and globally unique indices.
    Definition indexset.hh:218
    \n+
    Class for recomputing missing indices of a distributed index set.
    Definition indicessyncer.hh:45
    \n+
    Base class of all classes representing a communication interface.
    Definition parallel/interface.hh:44
    \n+
    An index present on the local process with an additional attribute flag.
    Definition plocalindex.hh:52
    \n+
    The indices present on remote processes.
    Definition remoteindices.hh:190
    \n+
    const std::set< int > & getNeighbours() const
    Definition remoteindices.hh:308
    \n+
    Dune::RemoteIndex< GlobalIndex, Attribute > RemoteIndex
    Type of the remote indices we manage.
    Definition remoteindices.hh:232
    \n+
    friend void fillIndexSetHoles(const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm)
    \n+
    friend void repairLocalIndexPointers(std::map< int, SLList< std::pair< typename T1::GlobalIndex, typename T1::LocalIndex::Attribute >, A2 > > &, RemoteIndices< T1, A1 > &, const T1 &)
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    The type of the global index.
    Definition remoteindices.hh:216
    \n+
    T ParallelIndexSet
    Type of the index set we use, e.g. ParallelLocalIndexSet.
    Definition remoteindices.hh:207
    \n+
    LocalIndex::Attribute Attribute
    The type of the attribute.
    Definition remoteindices.hh:227
    \n+
    std::map< int, std::pair< RemoteIndexList *, RemoteIndexList * > > RemoteIndexMap
    The type of the map from rank to remote index list.
    Definition remoteindices.hh:246
    \n+
    void setNeighbours(const C &neighbours)
    Definition remoteindices.hh:301
    \n+
    Dune::SLList< RemoteIndex, Allocator > RemoteIndexList
    The type of the remote index list.
    Definition remoteindices.hh:242
    \n+
    CollectiveIterator< T, A > CollectiveIteratorT
    The type of the collective iterator over all remote indices.
    Definition remoteindices.hh:211
    \n+
    typename std::allocator_traits< A >::template rebind_alloc< RemoteIndex > Allocator
    The type of the allocator for the remote index list.
    Definition remoteindices.hh:238
    \n+
    ParallelIndexSet::LocalIndex LocalIndex
    The type of the local index.
    Definition remoteindices.hh:222
    \n+
    RemoteIndexMap::const_iterator const_iterator
    Definition remoteindices.hh:248
    \n+
    Information about an index residing on another processor.
    Definition remoteindices.hh:74
    \n+
    friend void repairLocalIndexPointers(std::map< int, SLList< std::pair< typename T::GlobalIndex, typename T::LocalIndex::Attribute >, A > > &, RemoteIndices< T, A1 > &, const T &)
    \n+
    T1 GlobalIndex
    the type of the global index. This type has to provide at least a operator< for sorting.
    Definition remoteindices.hh:91
    \n+
    T2 Attribute
    The type of the attributes. Normally this will be an enumeration like.
    Definition remoteindices.hh:100
    \n+
    IndexPair< GlobalIndex, ParallelLocalIndex< Attribute > > PairType
    The type of the index pair.
    Definition remoteindices.hh:106
    \n+
    Modifier for adding and/or deleting remote indices from the remote index list.
    Definition remoteindices.hh:550
    \n+
    Dune::SLList< RemoteIndex, Allocator > RemoteIndexList
    The type of the remote index list.
    Definition remoteindices.hh:601
    \n+
    A Allocator
    The type of the allocator for the remote index list.
    Definition remoteindices.hh:597
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    The type of the global index.
    Definition remoteindices.hh:577
    \n+
    ParallelIndexSet::LocalIndex LocalIndex
    The type of the local index.
    Definition remoteindices.hh:582
    \n+
    RemoteIndexList::const_iterator ConstIterator
    The type of the remote index list iterator.
    Definition remoteindices.hh:611
    \n+
    SLListModifyIterator< RemoteIndex, Allocator > ModifyIterator
    The type of the modifying iterator of the remote index list.
    Definition remoteindices.hh:606
    \n+
    T ParallelIndexSet
    Type of the index set we use.
    Definition remoteindices.hh:572
    \n+
    RemoteIndexListModifier()
    Default constructor.
    Definition remoteindices.hh:675
    \n+
    LocalIndex::Attribute Attribute
    The type of the attribute.
    Definition remoteindices.hh:587
    \n+
    Dune::RemoteIndex< GlobalIndex, Attribute > RemoteIndex
    Type of the remote indices we manage.
    Definition remoteindices.hh:592
    \n+
    static constexpr bool MODIFYINDEXSET
    If true the index set corresponding to the remote indices might get modified.
    Definition remoteindices.hh:567
    \n+
    A collective iterator for moving over the remote indices for all processes collectively.
    Definition remoteindices.hh:707
    \n+
    std::map< int, std::pair< RemoteIndexList *, RemoteIndexList * > > RemoteIndexMap
    The type of the map from rank to remote index list.
    Definition remoteindices.hh:747
    \n+
    Definition remoteindices.hh:168
    \n+
    Definition remoteindices.hh:557
    \n+
    Iterator over the valid underlying iterators.
    Definition remoteindices.hh:791
    \n+
    iterator(const RealIterator &iter, const ConstRealIterator &end, GlobalIndex &index)
    Definition remoteindices.hh:798
    \n+
    iterator(const iterator &other)
    Definition remoteindices.hh:816
    \n+
    const RemoteIndex & operator*() const
    Definition remoteindices.hh:837
    \n+
    Map::iterator ConstRealIterator
    Definition remoteindices.hh:794
    \n+
    iterator & operator++()
    Definition remoteindices.hh:821
    \n+
    const RemoteIndex * operator->() const
    Definition remoteindices.hh:849
    \n+
    bool operator==(const iterator &other) const
    Definition remoteindices.hh:855
    \n+
    int process() const
    Definition remoteindices.hh:843
    \n+
    iterator(const RealIterator &iter, const ConstRealIterator &end, GlobalIndex index, Attribute attribute)
    Definition remoteindices.hh:806
    \n+
    bool operator!=(const iterator &other) const
    Definition remoteindices.hh:861
    \n+
    Map::iterator RealIterator
    Definition remoteindices.hh:793
    \n+
    A constant iterator for the SLList.
    Definition sllist.hh:371
    \n+
    A mutable iterator for the SLList.
    Definition sllist.hh:429
    \n+
    A single linked list.
    Definition sllist.hh:44
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,329 +1,1930 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-hash.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+remoteindices.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_HASH_HH\n-6#define DUNE_COMMON_HASH_HH\n+5#ifndef DUNE_COMMON_PARALLEL_REMOTEINDICES_HH\n+6#define DUNE_COMMON_PARALLEL_REMOTEINDICES_HH\n 7\n-8#include \n+8#if HAVE_MPI\n 9\n-10#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-11\n-24/\n-/\n-********************************************************************************\n-25// Doxygen documentation\n-26/\n-/\n-********************************************************************************\n-27\n-28#ifdef DOXYGEN\n-29\n-30namespace _\bD_\bu_\bn_\be {\n-31\n-33\n-38 template\n-_\b3_\b9 struct _\bh_\ba_\bs_\bh\n-40 {\n-41\n-_\b4_\b3 std::size_t _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& t) const\n-44 {\n-45 return _\bh_\ba_\bs_\bh(t);\n-46 }\n-47\n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16#include \n+17#include \n+18#include \n+19\n+20#include \n+21\n+22#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+23#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bl_\bl_\bi_\bs_\bt_\b._\bh_\bh>\n+24#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh>\n+25#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bd_\be_\bx_\bs_\be_\bt_\b._\bh_\bh>\n+26#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+27#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bp_\bl_\bo_\bc_\ba_\bl_\bi_\bn_\bd_\be_\bx_\b._\bh_\bh>\n+28\n+29namespace _\bD_\bu_\bn_\be {\n+41 template\n+_\b4_\b2 class _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br > >\n+43 {\n+44 public:\n+45 inline static MPI_Datatype _\bg_\be_\bt_\bT_\by_\bp_\be();\n+46 private:\n+47 static MPI_Datatype type;\n 48 };\n 49\n-50}\n-51\n+50\n+51 template\n+52 class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n 53\n-_\b1_\b0_\b0#define DUNE_DEFINE_HASH(template_args,type)\n+54 template\n+55 class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx;\n+56\n+57 // forward declaration needed for friend declaration.\n+58 template\n+59 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bS_\by_\bn_\bc_\be_\br;\n+60\n+61 template\n+_\b6_\b2 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>& index);\n+63\n+64\n+65 template\n+66 class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br;\n+67\n+68\n+72 template\n+_\b7_\b3 class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n+74 {\n+75 template\n+_\b7_\b6 friend class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bS_\by_\bn_\bc_\be_\br;\n+77\n+78 template\n+_\b7_\b9 friend void _\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(std::map,A> >&,\n+80 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b1_\b>&,\n+81 const T&);\n+82\n+83 template\n+_\b8_\b4 friend class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br;\n+85\n+86 public:\n+_\b9_\b1 typedef T1 _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+_\b1_\b0_\b0 typedef T2 _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n 101\n-102\n-104\n-_\b1_\b0_\b9#define DUNE_HASH_TEMPLATE_ARGS(...)\n-110\n-112\n-_\b1_\b1_\b7#define DUNE_HASH_TYPE(...)\n-118\n-119#else // DOXYGEN - hide all the ugly implementation\n+105 typedef _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\b> >\n+_\b1_\b0_\b6 _\bP_\ba_\bi_\br_\bT_\by_\bp_\be;\n+107\n+112 const _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be() const;\n+113\n+119 const _\bP_\ba_\bi_\br_\bT_\by_\bp_\be& _\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br() const;\n 120\n-121\n-122\n-123/\n-/\n-********************************************************************************\n-124// C++11 support\n-125/\n-/\n-********************************************************************************\n+124 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx();\n+125\n 126\n-127// import std::hash into Dune namespace\n-128namespace _\bD_\bu_\bn_\be {\n-129\n-130 using std::hash;\n-131\n-132}\n-133\n-134// Macro for defining a std::hash specialization for type.\n-135// This should not be called directly. Call DUNE_DEFINE_HASH\n-136// instead.\n-137#define DUNE_DEFINE_STD_HASH(template_args,type) \\\n-138 namespace std { \\\n-139 \\\n-140 template \\\n-141 struct hash \\\n-142 { \\\n-143 \\\n-144 typedef type argument_type; \\\n-145 typedef std::size_t result_type; \\\n-146 \\\n-147 std::size_t operator()(const type& arg) const \\\n-148 { \\\n-149 return hash_value(arg); \\\n-150 } \\\n-151 }; \\\n-152 \\\n-153 template \\\n-154 struct hash \\\n-155 { \\\n-156 \\\n-157 typedef type argument_type; \\\n-158 typedef std::size_t result_type; \\\n-159 \\\n-160 std::size_t operator()(const type& arg) const \\\n-161 { \\\n-162 return hash_value(arg); \\\n-163 } \\\n-164 }; \\\n-165 \\\n-166 } \\\n-167\n-168// Wrapper macro for template arguments.\n-169// This is required because the template arguments can contain commas,\n-170// which will create a macro argument list of unknown length. That in itself\n-171// would not be a problem, but DUNE_DEFINE_HASH has to be called with two\n-argument\n-172// lists of unknown length. So this macro wraps its arguments with\n-parentheses,\n-173// turning it into a single argument. The result is used as the parameter\n-list of\n-174// an expansion macro in the calls to the implementation-specific macros\n-175// for C++11 and TR1. Noto that technically, this trick is only legal for\n-C++11,\n-176// but pretty much every compiler supports variadic macros in C++03 mode, as\n-they\n-177// are part of C99.\n-178#define DUNE_HASH_TEMPLATE_ARGS(...) (__VA_ARGS__)\n-179\n-180// Wrapper macro for type to be hashed.\n-181// See above for rationale.\n-182#define DUNE_HASH_TYPE(...) (__VA_ARGS__)\n-183\n-184// Expansion macro for the parenthesized argument lists created by\n-185// DUNE_HASH_TEMPLATE_ARGS and DUNE_HASH_TYPE.\n-186#define DUNE_HASH_EXPAND_VA_ARGS(...) __VA_ARGS__\n-187\n-188// Define specializations for all discovered hash implementations.\n-189#define DUNE_DEFINE_HASH(template_args,type) \\\n-190 DUNE_DEFINE_STD_HASH(DUNE_HASH_EXPAND_VA_ARGS template_args,\n-DUNE_HASH_EXPAND_VA_ARGS type) \\\n-191\n-192\n-193#endif // DOXYGEN\n-194\n-195\n-196\n-197/\n-/\n-********************************************************************************\n-198// Some utility functions for combining hashes of member variables.\n-199/\n-/\n-********************************************************************************\n-200\n-201namespace _\bD_\bu_\bn_\be {\n-202\n-203 // The following functions are an implementation of the proposed hash\n-extensions for\n-204 // the C++ standard by Peter Dimov\n-205 // (cf. http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf,\n-issue 6.18).\n-206 // They are also contained in the boost::functional::hash library by Daniel\n-James, but\n-207 // that implementation uses boost::hash internally, while we want to use\n-Dune::hash. They\n-208 // are also considered for inclusion in TR2 (then based on std::hash, of\n-course).\n-209\n-210#ifndef DOXYGEN\n-211\n-212 // helper struct for providing different hash combining algorithms\n-dependent on\n-213 // the size of size_t.\n-214 // hash_combiner has to be specialized for the size (in bytes) of std::\n-size_t.\n-215 // Specialized versions should provide a method\n-216 //\n-217 // template \n-218 // void operator()(typeof_size_t& seed, const T& arg) const;\n-219 //\n-220 // that will be called by the interface function hash_combine() described\n-further below.\n-221 // The redundant template parameter typeof_size_t is needed to avoid\n-warnings for the\n-222 // unused 64-bit specialization on 32-bit systems.\n-223 //\n-224 // There is no default implementation!\n-225 template\n-226 struct hash_combiner;\n-227\n+132 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx(const T2& _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be,\n+133 const _\bP_\ba_\bi_\br_\bT_\by_\bp_\be* local);\n+134\n+135\n+141 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx(const T2& _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be);\n+142\n+143 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& ri) const;\n+144\n+145 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& ri) const;\n+146 private:\n+148 const _\bP_\ba_\bi_\br_\bT_\by_\bp_\be* localIndex_;\n+149\n+151 char attribute_;\n+152 };\n+153\n+154 template\n+155 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>&\n+indices);\n+156\n+157 class _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bB_\bu_\bi_\bl_\bd_\be_\br;\n+158\n+159 template\n+160 class _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+161\n+162 // forward declaration needed for friend declaration.\n+163 template\n+164 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bS_\by_\bn_\bc_\be_\br;\n+165\n+166 // forward declaration needed for friend declaration.\n+167 template\n+_\b1_\b6_\b8 class _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn;\n+169\n+170\n+187 template > >\n+_\b1_\b8_\b9 class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+190 {\n+_\b1_\b9_\b1 friend class _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bB_\bu_\bi_\bl_\bd_\be_\br;\n+192 friend class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bS_\by_\bn_\bc_\be_\br;\n+193 template\n+_\b1_\b9_\b4 friend void _\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(std::map,A2> >&,\n+195 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b1_\b,_\bA_\b1_\b>&,\n+196 const T1&);\n+197\n+198 template\n+_\b1_\b9_\b9 friend void _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(const G& graph, _\bD_\bu_\bn_\be_\b:_\b:\n+_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm);\n+_\b2_\b0_\b0 friend std::ostream& operator<<<>(std::ostream&, const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b>&);\n+201\n+202 public:\n+203\n+_\b2_\b0_\b7 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+208\n+_\b2_\b1_\b1 typedef _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT;\n+212\n+_\b2_\b1_\b6 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+217\n+218\n+_\b2_\b2_\b2 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+223\n+_\b2_\b2_\b7 typedef typename LocalIndex::Attribute _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n 228\n-229 // hash combining for 64-bit platforms.\n-230 template<>\n-231 struct hash_combiner<8>\n-232 {\n+_\b2_\b3_\b2 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\b> _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx;\n 233\n-234 template\n-235 void operator()(typeof_size_t& seed, const T& arg) const\n-236 {\n-237 static_assert(sizeof(typeof_size_t)==8, \"hash_combiner::operator()\n-instantiated with nonmatching type and size\");\n-238\n-239 // The following algorithm for combining two 64-bit hash values is inspired\n-by a similar\n-240 // function in CityHash (http://cityhash.googlecode.com/svn-history/r2/\n-trunk/src/city.h),\n-241 // which is in turn based on ideas from the MurmurHash library. The basic\n-idea is easy to\n-242 // grasp, though: New information is XORed into the existing hash multiple\n-times at different\n-243 // places (using shift operations), and the resulting pattern is spread\n-over the complete\n-244 // range of available bits via multiplication with a \"magic\" constant. The\n-constants used\n-245 // below (47 and 0x9ddfea08eb382d69ULL) are taken from the CityHash\n-implementation.\n-246 //\n-247 // We opted not to use the mixing algorithm proposed in the C++ working\n-group defect list at\n-248 // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf, p.\n-57f. because it\n-249 // has very bad hash distribution properties if you apply it to lists of\n-very small numbers,\n-250 // an application that is frequent in PDELab's ordering framework.\n-251\n-252 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b<_\bT_\b> hasher;\n-253 const typeof_size_t kMul = 0x9ddfea08eb382d69ULL;\n-254 typeof_size_t h = hasher(arg);\n-255 typeof_size_t a = (seed ^ h) * kMul;\n-256 a ^= (a >> 47);\n-257 typeof_size_t b = (h ^ a) * kMul;\n-258 b ^= (b >> 47);\n-259 b *= kMul;\n-260 seed = b;\n-261 }\n-262\n-263 };\n-264\n-265\n-266 // hash combining for 32-bit platforms.\n-267 template<>\n-268 struct hash_combiner<4>\n-269 {\n-270\n-271 template\n-272 void operator()(typeof_size_t& seed, const T& arg) const\n-273 {\n-274 static_assert(sizeof(typeof_size_t)==4, \"hash_combiner::operator()\n-instantiated with nonmatching type and size\");\n-275\n-276 // The default algorithm above requires a 64-bit std::size_t. The following\n-algorithm is a\n-277 // 32-bit compatible fallback, again inspired by CityHash and MurmurHash\n-278 // (http://cityhash.googlecode.com/svn-history/r2/trunk/src/city.cc).\n-279 // It uses 32-bit constants and relies on rotation instead of\n-multiplication to spread the\n-280 // mixed bits as that is apparently more efficient on IA-32. The constants\n-used below are again\n-281 // taken from CityHash, in particular from the file referenced above.\n-282\n-283 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b<_\bT_\b> hasher;\n-284 const typeof_size_t c1 = 0xcc9e2d51;\n-285 const typeof_size_t c2 = 0x1b873593;\n-286 const typeof_size_t c3 = 0xe6546b64;\n-287 typeof_size_t h = hasher(arg);\n-288 typeof_size_t a = seed * c1;\n-289 a = (a >> 17) | (a << (32 - 17));\n-290 a *= c2;\n-291 h ^= a;\n-292 h = (h >> 19) | (h << (32 - 19));\n-293 seed = h * 5 + c3;\n-294 }\n-295\n-296 };\n-297\n-298#endif // DOXYGEN\n+234\n+_\b2_\b3_\b8 using _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n+rebind_alloc;\n+239\n+241 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\b<_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>\n+_\b2_\b4_\b2 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt;\n+243\n+245 typedef std::map >\n+_\b2_\b4_\b6 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp;\n+247\n+_\b2_\b4_\b8 typedef typename RemoteIndexMap::const_iterator _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+249\n+267 inline _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& source, const\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& destination,\n+268 const MPI_Comm& comm, const std::vector& _\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs=std::vector\n+(), bool includeSelf=false);\n+269\n+270 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs();\n+271\n+279 void _\bs_\be_\bt_\bI_\bn_\bc_\bl_\bu_\bd_\be_\bS_\be_\bl_\bf(bool includeSelf);\n+280\n+297 void _\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bs(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& source, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt&\n+destination,\n+298 const MPI_Comm& comm, const std::vector& _\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs=std::vector\n+());\n 299\n-301\n-306 template\n-_\b3_\b0_\b7 inline void _\bh_\ba_\bs_\bh_\b__\bc_\bo_\bm_\bb_\bi_\bn_\be(std::size_t& seed, const T& arg)\n-308 {\n-309 hash_combiner()(seed,arg);\n-310 }\n-311\n-313\n-321 template\n-_\b3_\b2_\b2 inline std::size_t _\bh_\ba_\bs_\bh_\b__\br_\ba_\bn_\bg_\be(It first, It last)\n-323 {\n-324 std::size_t seed = 0;\n-325 for (; first != last; ++first)\n-326 {\n-327 _\bh_\ba_\bs_\bh_\b__\bc_\bo_\bm_\bb_\bi_\bn_\be(seed,*first);\n-328 }\n-329 return seed;\n-330 }\n+300 template\n+_\b3_\b0_\b1 void _\bs_\be_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(const C& _\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs)\n+302 {\n+303 neighbourIds.clear();\n+304 neighbourIds.insert(_\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs.begin(), _\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs.end());\n+305\n+306 }\n+307\n+_\b3_\b0_\b8 const std::set& _\bg_\be_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs() const\n+309 {\n+310 return neighbourIds;\n+311 }\n+312\n+316 _\b~_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs();\n+317\n+327 template\n+328 void _\br_\be_\bb_\bu_\bi_\bl_\bd();\n+329\n+330 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& ri) const;\n 331\n-333\n-340 template\n-_\b3_\b4_\b1 inline void _\bh_\ba_\bs_\bh_\b__\br_\ba_\bn_\bg_\be(std::size_t& seed, It first, It last)\n-342 {\n-343 for (; first != last; ++first)\n-344 {\n-345 _\bh_\ba_\bs_\bh_\b__\bc_\bo_\bm_\bb_\bi_\bn_\be(seed,*first);\n-346 }\n-347 }\n-348\n-349} // end namespace Dune\n-350\n-351#endif // DUNE_COMMON_HASH_HH\n-_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Traits for type conversions and type information.\n+339 inline bool _\bi_\bs_\bS_\by_\bn_\bc_\be_\bd() const;\n+340\n+344 inline MPI_Comm _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br() const;\n+345\n+360 template\n+361 inline _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b> _\bg_\be_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br(int process);\n+362\n+369 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd(int proc) const;\n+370\n+375 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+376\n+381 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+382\n+386 template\n+387 inline _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT _\bi_\bt_\be_\br_\ba_\bt_\bo_\br() const;\n+388\n+392 inline void _\bf_\br_\be_\be();\n+393\n+398 inline int _\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs() const;\n+399\n+401 inline const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bs_\bo_\bu_\br_\bc_\be_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt() const;\n+402\n+404 inline const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bd_\be_\bs_\bt_\bi_\bn_\ba_\bt_\bi_\bo_\bn_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt() const;\n+405\n+406 private:\n+408 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs&) = delete;\n+409\n+411 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt* source_;\n+412\n+414 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt* target_;\n+415\n+417 MPI_Comm comm_;\n+418\n+421 std::set neighbourIds;\n+422\n+424 const static int commTag_=333;\n+425\n+430 int sourceSeqNo_;\n+431\n+436 int destSeqNo_;\n+437\n+441 bool publicIgnored;\n+442\n+446 bool firstBuild;\n+447\n+448 /*\n+449 * @brief If true, sending from indices of the processor to other\n+450 * indices on the same processor is enabled even if the same indexset is\n+used\n+451 * on both the\n+452 * sending and receiving side.\n+453 */\n+454 bool includeSelf;\n+455\n+457 typedef _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b>\n+458 PairType;\n+459\n+466 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp remoteIndices_;\n+467\n+478 template\n+479 inline void buildRemote(bool includeSelf);\n+480\n+486 inline int noPublic(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexSet);\n+487\n+499 template\n+500 inline void packEntries(PairType** myPairs, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt&\n+indexSet,\n+501 char* p_out, MPI_Datatype type, int bufferSize,\n+502 int* position, int n);\n+503\n+517 inline void unpackIndices(_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt& remote, int remoteEntries,\n+518 PairType** local, int localEntries, char* p_in,\n+519 MPI_Datatype type, int* position, int bufferSize,\n+520 bool fromOurself);\n+521\n+522 inline void unpackIndices(_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt& send, _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt& receive,\n+523 int remoteEntries, PairType** localSource,\n+524 int localSourceEntries, PairType** localDest,\n+525 int localDestEntries, char* p_in,\n+526 MPI_Datatype type, int* position, int bufferSize);\n+527\n+528 void unpackCreateRemote(char* p_in, PairType** sourcePairs, PairType**\n+DestPairs,\n+529 int remoteProc, int sourcePublish, int destPublish,\n+530 int bufferSize, bool sendTwo, bool fromOurSelf=false);\n+531 };\n+532\n+548 template\n+_\b5_\b4_\b9 class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br\n+550 {\n+551\n+552 template\n+_\b5_\b5_\b3 friend class _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n+554\n+555 public:\n+_\b5_\b5_\b6 class _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bP_\bo_\bs_\bi_\bt_\bi_\bo_\bn : public _\bR_\ba_\bn_\bg_\be_\bE_\br_\br_\bo_\br\n+557 {};\n+558\n+_\b5_\b6_\b7 constexpr static bool _\bM_\bO_\bD_\bI_\bF_\bY_\bI_\bN_\bD_\bE_\bX_\bS_\bE_\bT = mode;\n+568\n+_\b5_\b7_\b2 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+573\n+_\b5_\b7_\b7 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+578\n+_\b5_\b8_\b2 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+583\n+_\b5_\b8_\b7 typedef typename LocalIndex::Attribute _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n+588\n+_\b5_\b9_\b2 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\b> _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx;\n+593\n+_\b5_\b9_\b7 typedef A _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n+598\n+600 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\b<_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>\n+_\b6_\b0_\b1 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt;\n+602\n+_\b6_\b0_\b6 typedef _\bS_\bL_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b> _\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+607\n+_\b6_\b1_\b1 typedef typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+612\n+626 void _\bi_\bn_\bs_\be_\br_\bt(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& index);\n+627\n+628\n+643 void _\bi_\bn_\bs_\be_\br_\bt(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& index, const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global);\n+644\n+652 bool _\br_\be_\bm_\bo_\bv_\be(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global);\n+653\n+666 void _\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs();\n+667\n+668\n+669 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br&);\n+670\n+_\b6_\b7_\b5 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br()\n+676 : glist_()\n+677 {}\n+678\n+679 private:\n+680\n+686 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexSet,\n+687 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt& rList);\n+688\n+689 typedef _\bS_\bL_\bL_\bi_\bs_\bt_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b> GlobalList;\n+690 typedef typename _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bi_\bs_\bt_\b:_\b:_\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br GlobalModifyIterator;\n+691 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt* rList_;\n+692 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt* indexSet_;\n+693 GlobalList glist_;\n+694 _\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter_;\n+695 GlobalModifyIterator giter_;\n+696 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end_;\n+697 bool first_;\n+698 _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx last_;\n+699 };\n+700\n+705 template\n+_\b7_\b0_\b6 class _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+707 {\n+708\n+712 typedef T ParallelIndexSet;\n+713\n+717 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx GlobalIndex;\n+718\n+722 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx LocalIndex;\n+723\n+727 typedef typename LocalIndex::Attribute Attribute;\n+728\n+730 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\b> _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx;\n+731\n+733 using Allocator = typename std::allocator_traits::template\n+rebind_alloc;\n+734\n+736 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\b<_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b> _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt;\n+737\n+739 typedef std::map >\n+741 Map;\n+742\n+743 public:\n+744\n+746 typedef std::map >\n+_\b7_\b4_\b7 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp;\n+748\n+754 inline _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp& map_, bool send);\n+755\n+764 inline void _\ba_\bd_\bv_\ba_\bn_\bc_\be(const GlobalIndex& global);\n+765\n+775 inline void _\ba_\bd_\bv_\ba_\bn_\bc_\be(const GlobalIndex& global, const Attribute& attribute);\n+776\n+777 _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+778\n+782 inline bool _\be_\bm_\bp_\bt_\by() const;\n+783\n+_\b7_\b9_\b0 class _\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+791 {\n+792 public:\n+_\b7_\b9_\b3 typedef typename Map::iterator _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b7_\b9_\b4 typedef typename Map::iterator _\bC_\bo_\bn_\bs_\bt_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+795\n+796\n+_\b7_\b9_\b8 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& iter, const _\bC_\bo_\bn_\bs_\bt_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\be_\bn_\bd,\n+GlobalIndex& index)\n+799 : iter_(iter), end_(_\be_\bn_\bd), index_(index), hasAttribute(false)\n+800 {\n+801 // Move to the first valid entry\n+802 while(iter_!=end_ && iter_->second.first->localIndexPair().global\n+()!=index_)\n+803 ++iter_;\n+804 }\n+805\n+_\b8_\b0_\b6 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& iter, const _\bC_\bo_\bn_\bs_\bt_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\be_\bn_\bd,\n+GlobalIndex index,\n+807 Attribute attribute)\n+808 : iter_(iter), end_(_\be_\bn_\bd), index_(index), attribute_(attribute),\n+hasAttribute(true)\n+809 {\n+810 // Move to the first valid entry or the end\n+811 while(iter_!=end_ && (iter_->second.first->localIndexPair().global\n+()!=index_\n+812 || iter_->second.first->localIndexPair().local().attribute()!=attribute))\n+813 ++iter_;\n+814 }\n+_\b8_\b1_\b6 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bi_\bt_\be_\br_\ba_\bt_\bo_\br& other)\n+817 : iter_(other.iter_), end_(other.end_), index_(other.index_)\n+818 { }\n+819\n+_\b8_\b2_\b1 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+822 {\n+823 ++iter_;\n+824 // If entry is not valid move on\n+825 while(iter_!=end_ && (iter_->second.first->localIndexPair().global\n+()!=index_ ||\n+826 (hasAttribute &&\n+827 iter_->second.first->localIndexPair().local().attribute()!=attribute_)))\n+828 ++iter_;\n+829 assert(iter_==end_ ||\n+830 (iter_->second.first->localIndexPair().global()==index_));\n+831 assert(iter_==end_ || !hasAttribute ||\n+832 (iter_->second.first->localIndexPair().local().attribute()==attribute_));\n+833 return *this;\n+834 }\n+835\n+_\b8_\b3_\b7 const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const\n+838 {\n+839 return *(iter_->second.first);\n+840 }\n+841\n+_\b8_\b4_\b3 int _\bp_\br_\bo_\bc_\be_\bs_\bs() const\n+844 {\n+845 return iter_->first;\n+846 }\n+847\n+_\b8_\b4_\b9 const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const\n+850 {\n+851 return iter_->second.first.operator->();\n+852 }\n+853\n+_\b8_\b5_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bi_\bt_\be_\br_\ba_\bt_\bo_\br& other) const\n+856 {\n+857 return other.iter_==iter_;\n+858 }\n+859\n+_\b8_\b6_\b1 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bi_\bt_\be_\br_\ba_\bt_\bo_\br& other) const\n+862 {\n+863 return other.iter_!=iter_;\n+864 }\n+865\n+866 private:\n+867 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br();\n+868\n+869 _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter_;\n+870 _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end_;\n+871 GlobalIndex index_;\n+872 Attribute attribute_;\n+873 bool hasAttribute;\n+874 };\n+875\n+876 iterator _\bb_\be_\bg_\bi_\bn();\n+877\n+878 iterator _\be_\bn_\bd();\n+879\n+880 private:\n+881\n+882 Map map_;\n+883 GlobalIndex index_;\n+884 Attribute attribute_;\n+885 bool noattribute;\n+886 };\n+887\n+888 template\n+_\b8_\b8_\b9 MPI_Datatype _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\bT_\bA_\b> > >::getType()\n+890 {\n+891 if(type==MPI_DATATYPE_NULL) {\n+892 int length[2] = {1, 1};\n+893 MPI_Aint base;\n+894 MPI_Aint disp[2];\n+895 MPI_Datatype types[2] = {_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\bG_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be(),\n+896 _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\bT_\bA_\b> >::getType()};\n+897 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\bT_\bA_\b> > rep;\n+898 MPI_Get_address(&rep, &base); // lower bound of the datatype\n+899 MPI_Get_address(&(rep.global_), &disp[0]);\n+900 MPI_Get_address(&(rep.local_), &disp[1]);\n+901 for (MPI_Aint& d : disp)\n+902 d -= base;\n+903\n+904 MPI_Datatype tmp;\n+905 MPI_Type_create_struct(2, length, disp, types, &tmp);\n+906\n+907 MPI_Type_create_resized(tmp, 0, sizeof(_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+>), &type);\n+908 MPI_Type_commit(&type);\n+909\n+910 MPI_Type_free(&tmp);\n+911 }\n+912 return type;\n+913 }\n+914\n+915 template\n+916 MPI_Datatype _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\bT_\bA_\b> > >::\n+type=MPI_DATATYPE_NULL;\n+917\n+918 template\n+_\b9_\b1_\b9 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx(const T2& attribute, const _\bP_\ba_\bi_\br_\bT_\by_\bp_\be* local)\n+920 : localIndex_(local), attribute_(static_cast<_\bs_\bt_\bd::underlying_type_t>\n+(attribute))\n+921 {}\n+922\n+923 template\n+_\b9_\b2_\b4 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx(const T2& attribute)\n+925 : localIndex_(0), attribute_(static_cast<_\bs_\bt_\bd::underlying_type_t>\n+(attribute))\n+926 {}\n+927\n+928 template\n+_\b9_\b2_\b9 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx()\n+930 : localIndex_(0), attribute_()\n+931 {}\n+932 template\n+_\b9_\b3_\b3 inline bool _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& ri) const\n+934 {\n+935 return localIndex_==ri.localIndex_ && attribute_==ri.attribute_;\n+936 }\n+937\n+938 template\n+_\b9_\b3_\b9 inline bool _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx& ri) const\n+940 {\n+941 return localIndex_!=ri.localIndex_ || attribute_!=ri.attribute_;\n+942 }\n+943\n+944 template\n+_\b9_\b4_\b5 inline const T2 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be() const\n+946 {\n+947 return T2(attribute_);\n+948 }\n+949\n+950 template\n+_\b9_\b5_\b1 inline const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\b1_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b2_\b> >& _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:\n+_\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br() const\n+952 {\n+953 return *localIndex_;\n+954 }\n+955\n+956 template\n+_\b9_\b5_\b7 inline _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& source,\n+958 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& destination,\n+959 const MPI_Comm& comm,\n+960 const std::vector& neighbours,\n+961 bool includeSelf_)\n+962 : source_(&source), target_(&destination), comm_(comm),\n+963 sourceSeqNo_(-1), destSeqNo_(-1), publicIgnored(false), firstBuild(true),\n+964 includeSelf(includeSelf_)\n+965 {\n+966 _\bs_\be_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(_\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs);\n+967 }\n+968\n+969 template\n+_\b9_\b7_\b0 void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bc_\bl_\bu_\bd_\be_\bS_\be_\bl_\bf(bool b)\n+971 {\n+972 includeSelf=b;\n+973 }\n+974\n+975 template\n+_\b9_\b7_\b6 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs()\n+977 : source_(0), target_(0), sourceSeqNo_(-1),\n+978 destSeqNo_(-1), publicIgnored(false), firstBuild(true),\n+979 includeSelf(false)\n+980 {}\n+981\n+982 template\n+_\b9_\b8_\b3 void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bs(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& source,\n+984 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& destination,\n+985 const MPI_Comm& comm,\n+986 const std::vector& neighbours)\n+987 {\n+988 free();\n+989 source_ = &source;\n+990 target_ = &destination;\n+991 comm_ = comm;\n+992 firstBuild = true;\n+993 setNeighbours(neighbours);\n+994 }\n+995\n+996 template\n+997 const typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt&\n+_\b9_\b9_\b8 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bs_\bo_\bu_\br_\bc_\be_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt() const\n+999 {\n+1000 return *source_;\n+1001 }\n+1002\n+1003\n+1004 template\n+1005 const typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt&\n+_\b1_\b0_\b0_\b6 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bd_\be_\bs_\bt_\bi_\bn_\ba_\bt_\bi_\bo_\bn_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt() const\n+1007 {\n+1008 return *target_;\n+1009 }\n+1010\n+1011\n+1012 template\n+_\b1_\b0_\b1_\b3 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\b~_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs()\n+1014 {\n+1015 free();\n+1016 }\n+1017\n+1018 template\n+1019 template\n+_\b1_\b0_\b2_\b0 inline void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bp_\ba_\bc_\bk_\bE_\bn_\bt_\br_\bi_\be_\bs\n+(_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b>** pairs,\n+1021 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexSet,\n+1022 char* p_out, MPI_Datatype type,\n+1023 int bufferSize,\n+1024 int *position,\n+1025 [[maybe_unused]] int n)\n+1026 {\n+1027 // fill with own indices\n+1028 const auto end = indexSet._\be_\bn_\bd();\n+1029\n+1030 //Now pack the source indices\n+1031 int i=0;\n+1032 for(auto index = indexSet.begin(); index != end; ++index)\n+1033 if(ignorePublic || index->local().isPublic()) {\n+1034\n+1035 MPI_Pack(const_cast<_\bP_\ba_\bi_\br_\bT_\by_\bp_\be*>(&(*index)), 1,\n+1036 type,\n+1037 p_out, bufferSize, position, comm_);\n+1038 pairs[i++] = const_cast<_\bP_\ba_\bi_\br_\bT_\by_\bp_\be*>(&(*index));\n+1039\n+1040 }\n+1041 assert(i==n);\n+1042 }\n+1043\n+1044 template\n+1045 inline int _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bn_\bo_\bP_\bu_\bb_\bl_\bi_\bc(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexSet)\n+1046 {\n+1047\n+1048 int noPublic=0;\n+1049\n+1050 const auto end=indexSet._\be_\bn_\bd();\n+1051 for(auto index=indexSet._\bb_\be_\bg_\bi_\bn(); index!=end; ++index)\n+1052 if(index->local().isPublic())\n+1053 noPublic++;\n+1054\n+1055 return noPublic;\n+1056\n+1057 }\n+1058\n+1059\n+1060 template\n+1061 inline void RemoteIndices::unpackCreateRemote(char* p_in, PairType**\n+sourcePairs,\n+1062 PairType** destPairs, int remoteProc,\n+1063 int sourcePublish, int destPublish,\n+1064 int bufferSize, bool sendTwo,\n+1065 bool fromOurSelf)\n+1066 {\n+1067\n+1068 // unpack the number of indices we received\n+1069 int noRemoteSource=-1, noRemoteDest=-1;\n+1070 char twoIndexSets=0;\n+1071 int position=0;\n+1072 // Did we receive two index sets?\n+1073 MPI_Unpack(p_in, bufferSize, &position, &twoIndexSets, 1, MPI_CHAR,\n+comm_);\n+1074 // The number of source indices received\n+1075 MPI_Unpack(p_in, bufferSize, &position, &noRemoteSource, 1, MPI_INT,\n+comm_);\n+1076 // The number of destination indices received\n+1077 MPI_Unpack(p_in, bufferSize, &position, &noRemoteDest, 1, MPI_INT, comm_);\n+1078\n+1079\n+1080 // Indices for which we receive\n+1081 RemoteIndexList* receive= new RemoteIndexList();\n+1082 // Indices for which we send\n+1083 RemoteIndexList* send=0;\n+1084\n+1085 MPI_Datatype type= _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bP_\ba_\bi_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be();\n+1086\n+1087 if(!twoIndexSets) {\n+1088 if(sendTwo) {\n+1089 send = new RemoteIndexList();\n+1090 // Create both remote index sets simultaneously\n+1091 unpackIndices(*send, *receive, noRemoteSource, sourcePairs, sourcePublish,\n+1092 destPairs, destPublish, p_in, type, &position, bufferSize);\n+1093 }else{\n+1094 // we only need one list\n+1095 unpackIndices(*receive, noRemoteSource, sourcePairs, sourcePublish,\n+1096 p_in, type, &position, bufferSize, fromOurSelf);\n+1097 send=receive;\n+1098 }\n+1099 }else{\n+1100\n+1101 int oldPos=position;\n+1102 // Two index sets received\n+1103 unpackIndices(*receive, noRemoteSource, destPairs, destPublish,\n+1104 p_in, type, &position, bufferSize, fromOurSelf);\n+1105 if(!sendTwo)\n+1106 //unpack source entries again as destination entries\n+1107 position=oldPos;\n+1108\n+1109 send = new RemoteIndexList();\n+1110 unpackIndices(*send, noRemoteDest, sourcePairs, sourcePublish,\n+1111 p_in, type, &position, bufferSize, fromOurSelf);\n+1112 }\n+1113\n+1114 if(receive->empty() && send->empty()) {\n+1115 if(send==receive) {\n+1116 delete send;\n+1117 }else{\n+1118 delete send;\n+1119 delete receive;\n+1120 }\n+1121 }else{\n+1122 remoteIndices_.insert(std::make_pair(remoteProc,\n+1123 std::make_pair(send,receive)));\n+1124 }\n+1125 }\n+1126\n+1127\n+1128 template\n+1129 template\n+1130 inline void RemoteIndices::buildRemote(bool includeSelf_)\n+1131 {\n+1132 // Processor configuration\n+1133 int rank, procs;\n+1134 MPI_Comm_rank(comm_, &rank);\n+1135 MPI_Comm_size(comm_, &procs);\n+1136\n+1137 // number of local indices to publish\n+1138 // The indices of the destination will be send.\n+1139 int sourcePublish, destPublish;\n+1140\n+1141 // Do we need to send two index sets?\n+1142 char sendTwo = (source_ != target_);\n+1143\n+1144 if(procs==1 && !(sendTwo || includeSelf_))\n+1145 // Nothing to communicate\n+1146 return;\n+1147\n+1148 sourcePublish = (ignorePublic) ? source_->size() : noPublic(*source_);\n+1149\n+1150 if(sendTwo)\n+1151 destPublish = (ignorePublic) ? target_->size() : noPublic(*target_);\n+1152 else\n+1153 // we only need to send one set of indices\n+1154 destPublish = 0;\n+1155\n+1156 int maxPublish, publish=sourcePublish+destPublish;\n+1157\n+1158 // Calculate maximum number of indices send\n+1159 MPI_Allreduce(&publish, &maxPublish, 1, MPI_INT, MPI_MAX, comm_);\n+1160\n+1161 // allocate buffers\n+1162 PairType** destPairs;\n+1163 PairType** sourcePairs = new PairType*[sourcePublish>0 ? sourcePublish :\n+1];\n+1164\n+1165 if(sendTwo)\n+1166 destPairs = new PairType*[destPublish>0 ? destPublish : 1];\n+1167 else\n+1168 destPairs=sourcePairs;\n+1169\n+1170 char** buffer = new char*[2];\n+1171 int bufferSize;\n+1172 int position=0;\n+1173 int intSize;\n+1174 int charSize;\n+1175\n+1176 // calculate buffer size\n+1177 MPI_Datatype type = _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bP_\ba_\bi_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be();\n+1178\n+1179 MPI_Pack_size(maxPublish, type, comm_,\n+1180 &bufferSize);\n+1181 MPI_Pack_size(1, MPI_INT, comm_,\n+1182 &intSize);\n+1183 MPI_Pack_size(1, MPI_CHAR, comm_,\n+1184 &charSize);\n+1185 // Our message will contain the following:\n+1186 // a bool whether two index sets where sent\n+1187 // the size of the source and the dest indexset,\n+1188 // then the source and destination indices\n+1189 bufferSize += 2 * intSize + charSize;\n+1190\n+1191 if(bufferSize<=0) bufferSize=1;\n+1192\n+1193 buffer[0] = new char[bufferSize];\n+1194 buffer[1] = new char[bufferSize];\n+1195\n+1196\n+1197 // pack entries into buffer[0], p_out below!\n+1198 MPI_Pack(&sendTwo, 1, MPI_CHAR, buffer[0], bufferSize, &position,\n+1199 comm_);\n+1200\n+1201 // The number of indices we send for each index set\n+1202 MPI_Pack(&sourcePublish, 1, MPI_INT, buffer[0], bufferSize, &position,\n+1203 comm_);\n+1204 MPI_Pack(&destPublish, 1, MPI_INT, buffer[0], bufferSize, &position,\n+1205 comm_);\n+1206\n+1207 // Now pack the source indices and setup the destination pairs\n+1208 packEntries(sourcePairs, *source_, buffer[0], type,\n+1209 bufferSize, &position, sourcePublish);\n+1210 // If necessary send the dest indices and setup the source pairs\n+1211 if(sendTwo)\n+1212 packEntries(destPairs, *target_, buffer[0], type,\n+1213 bufferSize, &position, destPublish);\n+1214\n+1215\n+1216 // Update remote indices for ourself\n+1217 if(sendTwo|| includeSelf_)\n+1218 unpackCreateRemote(buffer[0], sourcePairs, destPairs, rank, sourcePublish,\n+1219 destPublish, bufferSize, sendTwo, includeSelf_);\n+1220\n+1221 neighbourIds.erase(rank);\n+1222\n+1223 if(neighbourIds.size()==0)\n+1224 {\n+1225 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb<::size_type size_type;\n+1261 size_type noNeighbours=neighbourIds.size();\n+1262\n+1263 // setup sends\n+1264 for(std::set::iterator neighbour=neighbourIds.begin();\n+1265 neighbour!= neighbourIds.end(); ++neighbour) {\n+1266 // Only send the information to the neighbouring processors\n+1267 MPI_Issend(buffer[0], position , MPI_PACKED, *neighbour, commTag_, comm_,\n+req++);\n+1268 }\n+1269\n+1270 //Test for received messages\n+1271\n+1272 for(size_type received=0; received \n+1313 inline void RemoteIndices::unpackIndices(RemoteIndexList& remote,\n+1314 int remoteEntries,\n+1315 PairType** local,\n+1316 int localEntries,\n+1317 char* p_in,\n+1318 MPI_Datatype type,\n+1319 int* position,\n+1320 int bufferSize,\n+1321 bool fromOurSelf)\n+1322 {\n+1323 if(remoteEntries==0)\n+1324 return;\n+1325\n+1326 PairType index;\n+1327 MPI_Unpack(p_in, bufferSize, position, &index, 1,\n+1328 type, comm_);\n+1329 GlobalIndex oldGlobal=index.global();\n+1330 int n_in=0, localIndex=0;\n+1331\n+1332 //Check if we know the global index\n+1333 while(localIndexglobal()==index.global()) {\n+1335 int oldLocalIndex=localIndex;\n+1336\n+1337 while(localIndexglobal()==index.global()) {\n+1339 if(!fromOurSelf || index.local().attribute() !=\n+1340 local[localIndex]->local().attribute())\n+1341 // if index is from us it has to have a different attribute\n+1342 remote.push_back(RemoteIndex(index.local().attribute(),\n+1343 local[localIndex]));\n+1344 localIndex++;\n+1345 }\n+1346\n+1347 // unpack next remote index\n+1348 if((++n_in) < remoteEntries) {\n+1349 MPI_Unpack(p_in, bufferSize, position, &index, 1,\n+1350 type, comm_);\n+1351 if(index.global()==oldGlobal)\n+1352 // Restart comparison for the same global indices\n+1353 localIndex=oldLocalIndex;\n+1354 else\n+1355 oldGlobal=index.global();\n+1356 }else{\n+1357 // No more received indices\n+1358 break;\n+1359 }\n+1360 continue;\n+1361 }\n+1362\n+1363 if (local[localIndex]->global()\n+1386 inline void RemoteIndices::unpackIndices(RemoteIndexList& send,\n+1387 RemoteIndexList& receive,\n+1388 int remoteEntries,\n+1389 PairType** localSource,\n+1390 int localSourceEntries,\n+1391 PairType** localDest,\n+1392 int localDestEntries,\n+1393 char* p_in,\n+1394 MPI_Datatype type,\n+1395 int* position,\n+1396 int bufferSize)\n+1397 {\n+1398 int n_in=0, sourceIndex=0, destIndex=0;\n+1399\n+1400 //Check if we know the global index\n+1401 while(n_in= than the\n+one in the unpacked index\n+1409 while(sourceIndexglobal\n+()global\n+()global\n+()==index.global())\n+1417 send.push_back(RemoteIndex(index.local().attribute(),\n+1418 localSource[sourceIndex]));\n+1419\n+1420 if(destIndex < localDestEntries && localDest[destIndex]->global() ==\n+index.global())\n+1421 receive.push_back(RemoteIndex(index.local().attribute(),\n+1422 localDest[sourceIndex]));\n+1423 }\n+1424\n+1425 }\n+1426\n+1427 template\n+_\b1_\b4_\b2_\b8 inline void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\br_\be_\be()\n+1429 {\n+1430 auto lend = remoteIndices_.end();\n+1431 for(auto lists=remoteIndices_.begin(); lists != lend; ++lists) {\n+1432 if(lists->second.first==lists->second.second) {\n+1433 // there is only one remote index list.\n+1434 delete lists->second.first;\n+1435 }else{\n+1436 delete lists->second.first;\n+1437 delete lists->second.second;\n+1438 }\n+1439 }\n+1440 remoteIndices_.clear();\n+1441 firstBuild=true;\n+1442 }\n+1443\n+1444 template\n+_\b1_\b4_\b4_\b5 inline int _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs() const\n+1446 {\n+1447 return remoteIndices_.size();\n+1448 }\n+1449\n+1450 template\n+1451 template\n+_\b1_\b4_\b5_\b2 inline void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\br_\be_\bb_\bu_\bi_\bl_\bd()\n+1453 {\n+1454 // Test whether a rebuild is Needed.\n+1455 if(firstBuild ||\n+1456 ignorePublic!=publicIgnored || !\n+1457 isSynced()) {\n+1458 free();\n+1459\n+1460 buildRemote(includeSelf);\n+1461\n+1462 sourceSeqNo_ = source_->seqNo();\n+1463 destSeqNo_ = target_->seqNo();\n+1464 firstBuild=false;\n+1465 publicIgnored=ignorePublic;\n+1466 }\n+1467\n+1468\n+1469 }\n+1470\n+1471 template\n+_\b1_\b4_\b7_\b2 inline bool _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bi_\bs_\bS_\by_\bn_\bc_\be_\bd() const\n+1473 {\n+1474 return sourceSeqNo_==source_->seqNo() && destSeqNo_ ==target_->seqNo();\n+1475 }\n+1476\n+1477 template\n+1478 template\n+_\b1_\b4_\b7_\b9 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b> _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br(int\n+process)\n+1480 {\n+1481\n+1482 // The user are on their own now!\n+1483 // We assume they know what they are doing and just set the\n+1484 // remote indices to synced status.\n+1485 sourceSeqNo_ = source_->seqNo();\n+1486 destSeqNo_ = target_->seqNo();\n+1487\n+1488 typename RemoteIndexMap::iterator found = remoteIndices_.find(process);\n+1489\n+1490 if(found == remoteIndices_.end())\n+1491 {\n+1492 if(source_ != target_)\n+1493 found = remoteIndices_._\bi_\bn_\bs_\be_\br_\bt(found, std::make_pair(process,\n+1494 std::make_pair(new _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt(),\n+1495 new _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt())));\n+1496 else{\n+1497 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt* rlist = new _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt();\n+1498 found = remoteIndices_.insert(found,\n+1499 std::make_pair(process,\n+1500 std::make_pair(rlist, rlist)));\n+1501 }\n+1502 }\n+1503\n+1504 firstBuild = false;\n+1505\n+1506 if(send)\n+1507 return _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>(*source_, *(found-\n+>second.first));\n+1508 else\n+1509 return _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>(*target_, *(found-\n+>second.second));\n+1510 }\n+1511\n+1512 template\n+1513 inline typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b1_\b5_\b1_\b4 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\bn_\bd(int proc) const\n+1515 {\n+1516 return remoteIndices_.find(proc);\n+1517 }\n+1518\n+1519 template\n+1520 inline typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b1_\b5_\b2_\b1 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n+1522 {\n+1523 return remoteIndices_.begin();\n+1524 }\n+1525\n+1526 template\n+1527 inline typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b1_\b5_\b2_\b8 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd() const\n+1529 {\n+1530 return remoteIndices_.end();\n+1531 }\n+1532\n+1533\n+1534 template\n+_\b1_\b5_\b3_\b5 bool _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& ri) const\n+1536 {\n+1537 if(neighbours()!=ri._\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs())\n+1538 return false;\n+1539\n+1540 const auto rend = remoteIndices_.end();\n+1541\n+1542 for(auto rindex = remoteIndices_.begin(), rindex1=ri.remoteIndices_.begin\n+(); rindex!=rend; ++rindex, ++rindex1) {\n+1543 if(rindex->first != rindex1->first)\n+1544 return false;\n+1545 if(*(rindex->second.first) != *(rindex1->second.first))\n+1546 return false;\n+1547 if(*(rindex->second.second) != *(rindex1->second.second))\n+1548 return false;\n+1549 }\n+1550 return true;\n+1551 }\n+1552\n+1553 template\n+1554 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br(const\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexSet,\n+1555 RemoteIndexList& rList)\n+1556 : rList_(&rList), indexSet_(&indexSet), iter_(rList.beginModify()), end_\n+(rList.end()), first_(true)\n+1557 {\n+1558 if(MODIFYINDEXSET) {\n+1559 assert(indexSet_);\n+1560 for(ConstIterator iter=iter_; iter != end_; ++iter)\n+1561 glist_.push_back(iter->localIndexPair().global());\n+1562 giter_ = glist_.beginModify();\n+1563 }\n+1564 }\n+1565\n+1566 template\n+_\b1_\b5_\b6_\b7 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br(const\n+_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>& other)\n+1568 : rList_(other.rList_), indexSet_(other.indexSet_),\n+1569 glist_(other.glist_), iter_(other.iter_), giter_(other.giter_), end_\n+(other.end_),\n+1570 first_(other.first_), last_(other.last_)\n+1571 {}\n+1572\n+1573 template\n+_\b1_\b5_\b7_\b4 inline void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>_\b:_\b:_\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs()\n+1575 {\n+1576 if(MODIFYINDEXSET) {\n+1577 // repair pointers to local index set.\n+1578#ifdef DUNE_ISTL_WITH_CHECKING\n+1579 if(indexSet_->state()!=_\bG_\bR_\bO_\bU_\bN_\bD)\n+1580 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be, \"Index has to be in ground mode for\n+repairing pointers to indices\");\n+1581#endif\n+1582 auto giter = glist_.begin();\n+1583 auto index = indexSet_->begin();\n+1584\n+1585 for(auto iter=rList_->begin(); iter != end_; ++iter) {\n+1586 while(index->global()<*giter) {\n+1587 ++index;\n+1588#ifdef DUNE_ISTL_WITH_CHECKING\n+1589 if(index == indexSet_->end())\n+1590 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bP_\bo_\bs_\bi_\bt_\bi_\bo_\bn, \"No such global index in set!\");\n+1591#endif\n+1592 }\n+1593\n+1594#ifdef DUNE_ISTL_WITH_CHECKING\n+1595 if(index->global() != *giter)\n+1596 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bP_\bo_\bs_\bi_\bt_\bi_\bo_\bn, \"No such global index in set!\");\n+1597#endif\n+1598 iter->localIndex_ = &(*index);\n+1599 }\n+1600 }\n+1601 }\n+1602\n+1603 template\n+_\b1_\b6_\b0_\b4 inline void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx&\n+index)\n+1605 {\n+1606 static_assert(!mode,\"Not allowed if the mode indicates that new indices\"\n+1607 \"might be added to the underlying index set. Use \"\n+1608 \"insert(const RemoteIndex&, const GlobalIndex&) instead\");\n+1609\n+1610#ifdef DUNE_ISTL_WITH_CHECKING\n+1611 if(!first_ && index._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br()._\bg_\bl_\bo_\bb_\ba_\bl()localIndexPair().global() <\n+index._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br()._\bg_\bl_\bo_\bb_\ba_\bl()) {\n+1616 ++iter_;\n+1617 }\n+1618\n+1619 // No duplicate entries allowed\n+1620 assert(iter_==end_ || iter_->localIndexPair().global() !=\n+index._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br()._\bg_\bl_\bo_\bb_\ba_\bl());\n+1621 iter_.insert(index);\n+1622 last_ = index._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br()._\bg_\bl_\bo_\bb_\ba_\bl();\n+1623 first_ = false;\n+1624 }\n+1625\n+1626 template\n+_\b1_\b6_\b2_\b7 inline void _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx&\n+index, const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global)\n+1628 {\n+1629 static_assert(mode,\"Not allowed if the mode indicates that no new indices\"\n+1630 \"might be added to the underlying index set. Use \"\n+1631 \"insert(const RemoteIndex&) instead\");\n+1632#ifdef DUNE_ISTL_WITH_CHECKING\n+1633 if(!first_ && globallocalIndexPair().global() != global);\n+1644 iter_.insert(index);\n+1645 giter_.insert(global);\n+1646\n+1647 last_ = global;\n+1648 first_ = false;\n+1649 }\n+1650\n+1651 template\n+_\b1_\b6_\b5_\b2 bool _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b<_\bT_\b,_\bA_\b,_\bm_\bo_\bd_\be_\b>_\b:_\b:_\br_\be_\bm_\bo_\bv_\be(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global)\n+1653 {\n+1654#ifdef DUNE_ISTL_WITH_CHECKING\n+1655 if(!first_ && globallocalIndexPair().global() < global)\n+1674 ++iter_;\n+1675\n+1676 if(iter_->localIndexPair().global()==global) {\n+1677 iter_.remove();\n+1678 found = true;\n+1679 }\n+1680 }\n+1681\n+1682 last_ = global;\n+1683 first_ = false;\n+1684 return found;\n+1685 }\n+1686\n+1687 template\n+1688 template\n+_\b1_\b6_\b8_\b9 inline typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br() const\n+1690 {\n+1691 return _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>(remoteIndices_, send);\n+1692 }\n+1693\n+1694 template\n+_\b1_\b6_\b9_\b5 inline MPI_Comm _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br() const\n+1696 {\n+1697 return comm_;\n+1698\n+1699 }\n+1700\n+1701 template\n+_\b1_\b7_\b0_\b2 _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp& pmap,\n+bool send)\n+1703 {\n+1704\n+1705 const auto end = pmap.end();\n+1706 for(auto process = pmap.begin(); process != end; ++process) {\n+1707 const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt* list = send ? process->second.first : process-\n+>second.second;\n+1708 using ri_iterator = typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1709 map_.insert(std::make_pair(process->first,\n+1710 std::pair(list->_\bb_\be_\bg_\bi_\bn(), list->_\be_\bn_\bd())));\n+1711 }\n+1712 }\n+1713\n+1714 template\n+_\b1_\b7_\b1_\b5 inline void _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be(const GlobalIndex& index)\n+1716 {\n+1717 const auto end = map_.end();\n+1718\n+1719 for(auto iter = map_.begin(); iter != end;) {\n+1720 // Step the iterator until we are >= index\n+1721 typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br current = iter->second.first;\n+1722 typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br rend = iter->second.second;\n+1723 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx remoteIndex;\n+1724 if(current != rend)\n+1725 remoteIndex = *current;\n+1726\n+1727 while(iter->second.first!=iter->second.second && iter->second.first-\n+>localIndexPair().global()second.first);\n+1729\n+1730 // erase from the map if there are no more entries.\n+1731 if(iter->second.first == iter->second.second)\n+1732 map_.erase(iter++);\n+1733 else{\n+1734 ++iter;\n+1735 }\n+1736 }\n+1737 index_=index;\n+1738 noattribute=true;\n+1739 }\n+1740\n+1741 template\n+_\b1_\b7_\b4_\b2 inline void _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be(const GlobalIndex& index,\n+1743 const Attribute& attribute)\n+1744 {\n+1745 const auto end = map_.end();\n+1746\n+1747 for(auto iter = map_.begin(); iter != end;) {\n+1748 // Step the iterator until we are >= index\n+1749 typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br current = iter->second.first;\n+1750 typename _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br rend = iter->second.second;\n+1751 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx remoteIndex;\n+1752 if(current != rend)\n+1753 remoteIndex = *current;\n+1754\n+1755 // Move to global index or bigger\n+1756 while(iter->second.first!=iter->second.second && iter->second.first-\n+>localIndexPair().global()second.first);\n+1758\n+1759 // move to attribute or bigger\n+1760 while(iter->second.first!=iter->second.second\n+1761 && iter->second.first->localIndexPair().global()==index\n+1762 && iter->second.first->localIndexPair().local().attribute()second.first);\n+1764\n+1765 // erase from the map if there are no more entries.\n+1766 if(iter->second.first == iter->second.second)\n+1767 map_.erase(iter++);\n+1768 else{\n+1769 ++iter;\n+1770 }\n+1771 }\n+1772 index_=index;\n+1773 attribute_=attribute;\n+1774 noattribute=false;\n+1775 }\n+1776\n+1777 template\n+_\b1_\b7_\b7_\b8 inline _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+1779 {\n+1780 const auto end = map_._\be_\bn_\bd();\n+1781\n+1782 for(auto iter = map_.begin(); iter != end;) {\n+1783 // Step the iterator until we are >= index\n+1784 auto current = iter->second.first;\n+1785 auto rend = iter->second.second;\n+1786\n+1787 // move all iterators pointing to the current global index to next value\n+1788 if(iter->second.first->localIndexPair().global()==index_ &&\n+1789 (noattribute || iter->second.first->localIndexPair().local().attribute()\n+== attribute_))\n+1790 ++(iter->second.first);\n+1791\n+1792 // erase from the map if there are no more entries.\n+1793 if(iter->second.first == iter->second.second)\n+1794 map_.erase(iter++);\n+1795 else{\n+1796 ++iter;\n+1797 }\n+1798 }\n+1799 return *this;\n+1800 }\n+1801\n+1802 template\n+_\b1_\b8_\b0_\b3 inline bool _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\be_\bm_\bp_\bt_\by() const\n+1804 {\n+1805 return map_.empty();\n+1806 }\n+1807\n+1808 template\n+1809 inline typename _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b1_\b8_\b1_\b0 _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n+1811 {\n+1812 if(noattribute)\n+1813 return _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(map_.begin(), map_.end(), index_);\n+1814 else\n+1815 return _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(map_.begin(), map_.end(), index_,\n+1816 attribute_);\n+1817 }\n+1818\n+1819 template\n+1820 inline typename _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b1_\b8_\b2_\b1 _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd()\n+1822 {\n+1823 return _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(map_.end(), map_.end(), index_);\n+1824 }\n+1825\n+1826 template\n+_\b1_\b8_\b2_\b7 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const\n+_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b<_\bT_\bG_\b,_\bT_\bA_\b>& index)\n+1828 {\n+1829 os<<\"[global=\"<\n+_\b1_\b8_\b3_\b4 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const\n+_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b<_\bT_\b,_\bA_\b>& indices)\n+1835 {\n+1836 int rank;\n+1837 MPI_Comm_rank(indices.comm_, &rank);\n+1838 const auto rend = indices.remoteIndices_.end();\n+1839\n+1840 for(auto rindex = indices.remoteIndices_.begin(); rindex!=rend; ++rindex)\n+{\n+1841 os<first<<\":\";\n+1842\n+1843 if(!rindex->second.first->empty()) {\n+1844 os<<\" send:\";\n+1845\n+1846 const auto send= rindex->second.first->end();\n+1847\n+1848 for(auto index = rindex->second.first->begin();\n+1849 index != send; ++index)\n+1850 os<<*index<<\" \";\n+1851 os<second.second->empty()) {\n+1854 os<first<<\": \"<<\"receive: \";\n+1855\n+1856 for(const auto& index : *(rindex->second.second))\n+1857 os << index << \" \";\n+1858 }\n+1859 os<_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+SLListConstIterator< RemoteIndex, Allocator > const_iterator\n+The constant iterator of the list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn sllist.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+SLListModifyIterator< GlobalIndex, Allocator > ModifyIterator\n+The type of the iterator capable of deletion and insertion.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn sllist.hh:103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+Get an iterator pointing to the first element in the list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn sllist.hh:762\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:278\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n+void repairLocalIndexPointers()\n+Repair the pointers to the local index pairs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1574\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+const Attribute attribute() const\n+Get the attribute of the index on the remote process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:945\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+RemoteIndices()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:976\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+CollectiveIterator & operator++()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1778\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bs\n+void setIndexSets(const ParallelIndexSet &source, const ParallelIndexSet\n+&destination, const MPI_Comm &comm, const std::vector< int > &neighbours=std::\n+vector< int >())\n+Set the index sets and communicator we work with.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:983\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+Free the index lists.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n+void insert(const RemoteIndex &index)\n+Insert an index to the list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1604\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1821\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\br_\be_\bb_\bu_\bi_\bl_\bd\n+void rebuild()\n+Rebuilds the set of remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1452\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const RemoteIndex &ri) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:933\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+MPI_Comm communicator() const\n+Get the mpi communicator used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+CollectiveIteratorT iterator() const\n+Get an iterator for collectively iterating over the remote indices of all\n+remote processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1689\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bc_\bl_\bu_\bd_\be_\bS_\be_\bl_\bf\n+void setIncludeSelf(bool includeSelf)\n+Tell whether sending from indices of the processor to other indices on the same\n+processor is enabled ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:970\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+CollectiveIterator(const RemoteIndexMap &map_, bool send)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1702\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+Get an iterator over the indices positioned at the first index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+Get an iterator over the indices positioned after the last index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+Get an iterator over all remote index lists.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1528\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const RemoteIndices &ri) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1535\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bm_\bp_\bt_\by\n+bool empty() const\n+Checks whether there are still iterators in the map.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1803\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bg_\be_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br\n+RemoteIndexListModifier< T, A, mode > getModifier(int process)\n+Get a modifier for a remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1479\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n+void advance(const GlobalIndex &global)\n+Advances all underlying iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1715\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+const PairType & localIndexPair() const\n+Get the corresponding local index pair.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:951\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bs_\bo_\bu_\br_\bc_\be_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+const ParallelIndexSet & sourceIndexSet() const\n+Get the index set at the source.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:998\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\b~_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+~RemoteIndices()\n+Destructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1013\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TL LocalIndex\n+The type of the local index, e.g. ParallelLocalIndex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:239\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\br_\be_\bm_\bo_\bv_\be\n+bool remove(const GlobalIndex &global)\n+Remove a remote index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1652\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl\n+const GlobalIndex & global() const\n+Get the global index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n+RemoteIndex()\n+Parameterless Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:929\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bn_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n+int neighbours() const\n+Get the number of processors we share indices with.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1445\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bl_\bo_\bc_\ba_\bl\n+LocalIndex & local()\n+Get the local index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TG GlobalIndex\n+the type of the global index. This type has to provide at least a operator< for\n+sorting.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:226\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bd_\be_\bs_\bt_\bi_\bn_\ba_\bt_\bi_\bo_\bn_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+const ParallelIndexSet & destinationIndexSet() const\n+Get the index set at destination.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1006\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bf_\bi_\bn_\bd\n+const_iterator find(int proc) const\n+Find an iterator over the remote index lists of a specific process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1514\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bi_\bs_\bS_\by_\bn_\bc_\be_\bd\n+bool isSynced() const\n+Checks whether the remote indices are synced with the indexsets.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1472\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const RemoteIndex &ri) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:939\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+Get an iterator over all remote index lists.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1521\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:1810\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bR_\bO_\bU_\bN_\bD\n+@ GROUND\n+The default mode. Indicates that the index set is ready to be used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:186\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb\n+DVVerbType dvverb(std::cout)\n+stream for very verbose output.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:96\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b__\br_\ba_\bn_\bg_\be\n-std::size_t hash_range(It first, It last)\n-Hashes all elements in the range [first,last) and returns the combined hash.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:322\n-_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b__\bc_\bo_\bm_\bb_\bi_\bn_\be\n-void hash_combine(std::size_t &seed, const T &arg)\n-Calculates the hash value of arg and combines it in-place with seed.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:307\n-_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh\n-Functor for hashing objects of type T.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:40\n-_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bh_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::size_t operator()(const T &t) const\n-Calculates the hash of t.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hash.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bz_\be\n+constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::\n+integer_sequence< T, II... >)\n+Return the size of the sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs\n+A traits class describing the mapping of types onto MPI_Datatypes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be\n+static MPI_Datatype getType()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bg_\be_\bE_\br_\br_\bo_\br\n+Default exception class for range errors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+A pair consisting of a global and local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:85\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be\n+Exception indicating that the index set is not in the expected state.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:205\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Manager class for the mapping between local indices and globally unique\n+indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bS_\by_\bn_\bc_\be_\br\n+Class for recomputing missing indices of a distributed index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicessyncer.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bB_\bu_\bi_\bl_\bd_\be_\br\n+Base class of all classes representing a communication interface.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+An index present on the local process with an additional attribute flag.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn plocalindex.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+The indices present on remote processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bg_\be_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n+const std::set< int > & getNeighbours() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:308\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n+Dune::RemoteIndex< GlobalIndex, Attribute > RemoteIndex\n+Type of the remote indices we manage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:232\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs\n+friend void fillIndexSetHoles(const G &graph, Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > &oocomm)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n+friend void repairLocalIndexPointers(std::map< int, SLList< std::pair< typename\n+T1::GlobalIndex, typename T1::LocalIndex::Attribute >, A2 > > &, RemoteIndices<\n+T1, A1 > &, const T1 &)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+The type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+T ParallelIndexSet\n+Type of the index set we use, e.g. ParallelLocalIndexSet.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:207\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+LocalIndex::Attribute Attribute\n+The type of the attribute.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+std::map< int, std::pair< RemoteIndexList *, RemoteIndexList * > >\n+RemoteIndexMap\n+The type of the map from rank to remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:246\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bs_\be_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n+void setNeighbours(const C &neighbours)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt\n+Dune::SLList< RemoteIndex, Allocator > RemoteIndexList\n+The type of the remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:242\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+CollectiveIterator< T, A > CollectiveIteratorT\n+The type of the collective iterator over all remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+typename std::allocator_traits< A >::template rebind_alloc< RemoteIndex >\n+Allocator\n+The type of the allocator for the remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::LocalIndex LocalIndex\n+The type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+RemoteIndexMap::const_iterator const_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n+Information about an index residing on another processor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\br_\be_\bp_\ba_\bi_\br_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n+friend void repairLocalIndexPointers(std::map< int, SLList< std::pair< typename\n+T::GlobalIndex, typename T::LocalIndex::Attribute >, A > > &, RemoteIndices< T,\n+A1 > &, const T &)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+T1 GlobalIndex\n+the type of the global index. This type has to provide at least a operator< for\n+sorting.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:91\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+T2 Attribute\n+The type of the attributes. Normally this will be an enumeration like.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\b:_\b:_\bP_\ba_\bi_\br_\bT_\by_\bp_\be\n+IndexPair< GlobalIndex, ParallelLocalIndex< Attribute > > PairType\n+The type of the index pair.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:106\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br\n+Modifier for adding and/or deleting remote indices from the remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:550\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt\n+Dune::SLList< RemoteIndex, Allocator > RemoteIndexList\n+The type of the remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:601\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+A Allocator\n+The type of the allocator for the remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:597\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+The type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::LocalIndex LocalIndex\n+The type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:582\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RemoteIndexList::const_iterator ConstIterator\n+The type of the remote index list iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:611\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+SLListModifyIterator< RemoteIndex, Allocator > ModifyIterator\n+The type of the modifying iterator of the remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:606\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+T ParallelIndexSet\n+Type of the index set we use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:572\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br\n+RemoteIndexListModifier()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:675\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+LocalIndex::Attribute Attribute\n+The type of the attribute.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:587\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n+Dune::RemoteIndex< GlobalIndex, Attribute > RemoteIndex\n+Type of the remote indices we manage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:592\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bM_\bO_\bD_\bI_\bF_\bY_\bI_\bN_\bD_\bE_\bX_\bS_\bE_\bT\n+static constexpr bool MODIFYINDEXSET\n+If true the index set corresponding to the remote indices might get modified.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:567\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A collective iterator for moving over the remote indices for all processes\n+collectively.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:707\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+std::map< int, std::pair< RemoteIndexList *, RemoteIndexList * > >\n+RemoteIndexMap\n+The type of the map from rank to remote index list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:747\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\bi_\be_\br_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bP_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:557\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator over the valid underlying iterators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:791\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+iterator(const RealIterator &iter, const ConstRealIterator &end, GlobalIndex\n+&index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:798\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+iterator(const iterator &other)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:816\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+const RemoteIndex & operator*() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:837\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Map::iterator ConstRealIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:794\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+iterator & operator++()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:821\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+const RemoteIndex * operator->() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:849\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const iterator &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:855\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bo_\bc_\be_\bs_\bs\n+int process() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:843\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+iterator(const RealIterator &iter, const ConstRealIterator &end, GlobalIndex\n+index, Attribute attribute)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:806\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const iterator &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Map::iterator RealIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn remoteindices.hh:793\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A constant iterator for the SLList.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn sllist.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt_\bM_\bo_\bd_\bi_\bf_\by_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A mutable iterator for the SLList.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn sllist.hh:429\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bL_\bL_\bi_\bs_\bt\n+A single linked list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn sllist.hh:44\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00041.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00041.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: genericiterator.hh File Reference\n+dune-common: mpihelper.hh File Reference\n \n \n \n \n \n \n \n@@ -65,65 +65,73 @@\n
    \n
    \n \n \n \n \n \n
    \n \n-
    genericiterator.hh File Reference
    \n+
    mpihelper.hh File Reference
    \n
    \n
    \n \n-

    Implements a generic iterator class for writing stl conformant iterators. \n+

    Helpers for dealing with MPI. \n More...

    \n-
    #include <dune/common/iteratorfacades.hh>
    \n-#include <cassert>
    \n+
    #include <cassert>
    \n+#include <mutex>
    \n+#include <mpi.h>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/visibility.hh>
    \n+#include <dune/common/parallel/communication.hh>
    \n+#include <dune/common/parallel/mpicommunication.hh>
    \n+#include <dune/common/stdstreams.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::const_reference< R >
     Get the 'const' version of a reference to a mutable object. More...
    class  Dune::FakeMPIHelper
     A fake mpi helper. More...
     
    struct  Dune::const_reference< const R >
     
    struct  Dune::const_reference< R & >
     
    struct  Dune::const_reference< const R & >
     
    struct  Dune::mutable_reference< R >
     get the 'mutable' version of a reference to a const object More...
     
    struct  Dune::mutable_reference< const R >
     
    struct  Dune::mutable_reference< R & >
     
    struct  Dune::mutable_reference< const R & >
     
    class  Dune::GenericIterator< C, T, R, D, IteratorFacade >
     Generic class for stl-conforming iterators for container classes with operator[]. More...
    class  Dune::MPIHelper
     A real mpi helper. More...
     
    \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n

    Detailed Description

    \n-

    Implements a generic iterator class for writing stl conformant iterators.

    \n-

    Using this generic iterator writing iterators for containers that implement operator[] is only a matter of seconds.

    \n+

    Helpers for dealing with MPI.

    \n+

    Basically there are two helpers available:

    \n+
    FakeMPIHelper
    \n+
    A class adhering to the interface of MPIHelper that does not need MPI at all. This can be used to create a sequential program even if MPI is used to compile it.
    \n+
    MPIHelper
    \n+
    A real MPI helper. When the singleton gets instantiated MPI_Init will be called and before the program exits MPI_Finalize will be called.
    \n+
    \n+

    Example of who to use these classes:

    \n+

    A program that is parallel if compiled with MPI and sequential otherwise:

    int main(int argc, char** argv){
    \n+
    typedef Dune::MPIHelper MPIHelper;
    \n+
    MPIHelper::instance(argc, argv);
    \n+
    typename MPIHelper::MPICommunicator world =
    \n+
    MPIHelper::getCommunicator();
    \n+
    ...
    \n+
    int main(int argc, char **argv)
    Definition mpi_collective_benchmark.cc:297
    \n+
    A real mpi helper.
    Definition mpihelper.hh:181
    \n+

    If one wants to have sequential program even if the code is compiled with mpi then one simply has to exchange the typedef with

    typedef Dune::MPIHelper FakeMPIHelper;
    \n+

    .

    \n+

    For checking whether we really use MPI or just fake please use MPIHelper::isFake (this is also possible at compile time!)

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,46 +1,63 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-genericiterator.hh File Reference\n-Implements a generic iterator class for writing stl conformant iterators.\n-_\bM_\bo_\br_\be_\b._\b._\b.\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh>\n+mpihelper.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Helpers for dealing with MPI. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bv_\bi_\bs_\bi_\bb_\bi_\bl_\bi_\bt_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b>\n-\u00a0 Get the 'const' version of a reference to a mutable object. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+\u00a0 A fake mpi helper. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b&_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b>\n-\u00a0 get the 'mutable' version of a reference to a const object _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b&_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bC_\b,_\b _\bT_\b,_\b _\bR_\b,_\b _\bD_\b,_\b _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b _\b>\n-\u00a0 Generic class for stl-conforming iterators for container classes with\n- operator[]. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+\u00a0 A real mpi helper. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implements a generic iterator class for writing stl conformant iterators.\n-Using this generic iterator writing iterators for containers that implement\n-operator[] is only a matter of seconds.\n+Helpers for dealing with MPI.\n+Basically there are two helpers available:\n+ FakeMPIHelper\n+ A class adhering to the interface of MPIHelper that does not need MPI at\n+ all. This can be used to create a sequential program even if MPI is used\n+ to compile it.\n+ MPIHelper\n+ A real MPI helper. When the singleton gets instantiated MPI_Init will be\n+ called and before the program exits MPI_Finalize will be called.\n+Example of who to use these classes:\n+A program that is parallel if compiled with MPI and sequential otherwise:\n+int _\bm_\ba_\bi_\bn(int argc, char** argv){\n+typedef _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br MPIHelper;\n+MPIHelper::instance(argc, argv);\n+typename MPIHelper::MPICommunicator world =\n+MPIHelper::getCommunicator();\n+...\n+_\bm_\ba_\bi_\bn\n+int main(int argc, char **argv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpi_collective_benchmark.cc:297\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+A real mpi helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:181\n+If one wants to have sequential program even if the code is compiled with mpi\n+then one simply has to exchange the typedef with\n+typedef _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br FakeMPIHelper;\n+.\n+For checking whether we really use MPI or just fake please use MPIHelper::\n+isFake (this is also possible at compile time!)\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00041_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00041_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: genericiterator.hh Source File\n+dune-common: mpihelper.hh Source File\n \n \n \n \n \n \n \n@@ -70,244 +70,261 @@\n
    \n
    \n \n \n \n \n \n
    \n-
    genericiterator.hh
    \n+
    mpihelper.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_GENERICITERATOR_HH
    \n-
    6#define DUNE_GENERICITERATOR_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_MPIHELPER_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_MPIHELPER_HH
    \n
    7
    \n-\n-
    9#include <cassert>
    \n+
    8#include <cassert>
    \n+
    9#include <mutex>
    \n
    10
    \n-
    11namespace Dune {
    \n-
    12
    \n-
    85 template<class R>
    \n-
    \n-\n-
    87 {
    \n-
    88 typedef const R type;
    \n-
    89 };
    \n-
    \n-
    90
    \n-
    91 template<class R>
    \n-
    \n-
    92 struct const_reference<const R>
    \n-
    93 {
    \n-
    94 typedef const R type;
    \n-
    95 };
    \n-
    \n-
    96
    \n-
    97 template<class R>
    \n-
    \n-
    98 struct const_reference<R&>
    \n-
    99 {
    \n-
    100 typedef const R& type;
    \n-
    101 };
    \n-
    \n-
    102
    \n-
    103 template<class R>
    \n-
    \n-
    104 struct const_reference<const R&>
    \n-
    105 {
    \n-
    106 typedef const R& type;
    \n-
    107 };
    \n-
    \n-
    108
    \n-
    114 template<class R>
    \n-
    \n-\n-
    116 {
    \n-
    117 typedef R type;
    \n-
    118 };
    \n-
    \n-
    119
    \n-
    120 template<class R>
    \n-
    \n-
    121 struct mutable_reference<const R>
    \n-
    122 {
    \n-
    123 typedef R type;
    \n-
    124 };
    \n-
    \n-
    125
    \n-
    126 template<class R>
    \n-
    \n-\n-
    128 {
    \n-
    129 typedef R& type;
    \n-
    130 };
    \n-
    \n-
    131
    \n-
    132 template<class R>
    \n-
    \n-
    133 struct mutable_reference<const R&>
    \n-
    134 {
    \n-
    135 typedef R& type;
    \n-
    136 };
    \n-
    \n-
    137
    \n-
    149 template<class C, class T, class R=T&, class D = std::ptrdiff_t,
    \n-
    150 template<class,class,class,class> class IteratorFacade=RandomAccessIteratorFacade>
    \n-
    \n-\n-
    152 public IteratorFacade<GenericIterator<C,T,R,D,IteratorFacade>,T,R,D>
    \n-
    153 {
    \n-
    154 friend class GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade>;
    \n-
    155 friend class GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade>;
    \n-
    156
    \n-
    157 typedef GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade> MutableIterator;
    \n-
    158 typedef GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade> ConstIterator;
    \n-
    159
    \n-
    160 public:
    \n-
    161
    \n-
    170 typedef C Container;
    \n-
    171
    \n-
    177 typedef T Value;
    \n-
    178
    \n-
    182 typedef D DifferenceType;
    \n-
    183
    \n-
    187 typedef R Reference;
    \n+
    11#if HAVE_MPI
    \n+
    12#include <mpi.h>
    \n+
    13#endif
    \n+
    14
    \n+\n+\n+\n+\n+
    19
    \n+
    20#if HAVE_MPI
    \n+\n+
    22#endif
    \n+
    23
    \n+
    24namespace Dune
    \n+
    25{
    \n+
    \n+\n+
    76 {
    \n+
    77 public:
    \n+
    82 constexpr static bool isFake = true;
    \n+
    83
    \n+\n+
    88
    \n+
    \n+\n+
    96 {
    \n+
    97 static MPICommunicator comm;
    \n+
    98 return comm;
    \n+
    99 }
    \n+
    \n+
    100
    \n+
    \n+\n+
    108 {
    \n+
    109 return getCommunicator();
    \n+
    110 }
    \n+
    \n+
    111
    \n+
    112
    \n+
    113
    \n+
    119 [[deprecated("getCollectionCommunication is deprecated. Use getCommunication instead.")]]
    \n+\n+
    124
    \n+\n+
    \n+\n+
    127 {
    \n+\n+
    129 }
    \n+
    \n+
    130
    \n+
    \n+
    146 DUNE_EXPORT static FakeMPIHelper& instance([[maybe_unused]] int argc,
    \n+
    147 [[maybe_unused]] char** argv)
    \n+
    148 {
    \n+
    149 return instance();
    \n+
    150 }
    \n+
    \n+
    151
    \n+
    \n+\n+
    153 {
    \n+
    154 static FakeMPIHelper singleton;
    \n+
    155 return singleton;
    \n+
    156 }
    \n+
    \n+
    157
    \n+
    161 int rank () const { return 0; }
    \n+
    165 int size () const { return 1; }
    \n+
    166
    \n+
    167 private:
    \n+
    168 FakeMPIHelper() {}
    \n+
    169 FakeMPIHelper(const FakeMPIHelper&);
    \n+
    170 FakeMPIHelper& operator=(const FakeMPIHelper);
    \n+
    171 };
    \n+
    \n+
    172
    \n+
    173#if HAVE_MPI
    \n+
    \n+\n+
    181 {
    \n+
    182 public:
    \n+
    187 constexpr static bool isFake = false;
    \n
    188
    \n-
    189 // Constructors needed by the base iterators
    \n-
    \n-
    190 GenericIterator() : container_(0), position_(0)
    \n-
    191 {}
    \n-
    \n-
    192
    \n+
    192 typedef MPI_Comm MPICommunicator;
    \n+
    193
    \n
    \n-\n-
    201 : container_(&cont), position_(pos)
    \n-
    202 {}
    \n+\n+
    201 {
    \n+
    202 return MPI_COMM_WORLD;
    \n+
    203 }
    \n
    \n-
    203
    \n+
    204
    \n
    \n-
    211 GenericIterator(const MutableIterator& other) : container_(other.container_), position_(other.position_)
    \n-
    212 {}
    \n-
    \n-
    213
    \n+\n+
    212 {
    \n+
    213 return MPI_COMM_SELF;
    \n+
    214 }
    \n+
    \n+
    215
    \n+
    221 [[deprecated("getCollectionCommunication is deprecated. Use getCommunication instead.")]]
    \n+\n
    \n-
    223 GenericIterator(const ConstIterator& other) : container_(other.container_), position_(other.position_)
    \n-
    224 {}
    \n-
    \n-
    225
    \n-
    226 // Methods needed by the forward iterator
    \n-
    \n-
    227 bool equals(const MutableIterator & other) const
    \n-
    228 {
    \n-
    229 return position_ == other.position_ && container_ == other.container_;
    \n-
    230 }
    \n-
    \n-
    231
    \n-
    \n-
    232 bool equals(const ConstIterator & other) const
    \n-
    233 {
    \n-
    234 return position_ == other.position_ && container_ == other.container_;
    \n-
    235 }
    \n-
    \n-
    236
    \n-
    \n-\n-
    238 return container_->operator[](position_);
    \n-
    239 }
    \n-
    \n-
    240
    \n-
    \n-
    241 void increment(){
    \n-
    242 ++position_;
    \n-
    243 }
    \n-
    \n-
    244
    \n-
    245 // Additional function needed by BidirectionalIterator
    \n-
    \n-
    246 void decrement(){
    \n-
    247 --position_;
    \n-
    248 }
    \n-
    \n-
    249
    \n-
    250 // Additional function needed by RandomAccessIterator
    \n-
    \n-\n-
    252 return container_->operator[](position_+i);
    \n-
    253 }
    \n-
    \n-
    254
    \n-
    \n-\n-
    256 position_=position_+n;
    \n-
    257 }
    \n-
    \n-
    258
    \n-
    \n-\n-
    260 {
    \n-
    261 assert(other.container_==container_);
    \n-
    262 return other.position_ - position_;
    \n-
    263 }
    \n-
    \n-
    264
    \n-
    \n-\n-
    266 {
    \n-
    267 assert(other.container_==container_);
    \n-
    268 return other.position_ - position_;
    \n-
    269 }
    \n-
    \n-
    270
    \n-
    271 private:
    \n-
    272 Container *container_;
    \n-
    273 DifferenceType position_;
    \n-
    274 };
    \n-
    \n-
    275
    \n-
    278} // end namespace Dune
    \n-
    279
    \n-
    280#endif
    \n-
    This file implements iterator facade classes for writing stl conformant iterators.
    \n-
    STL namespace.
    \n+\n+
    224 {
    \n+\n+
    226 }
    \n+
    \n+
    227
    \n+\n+
    \n+\n+
    230 {
    \n+\n+
    232 }
    \n+
    \n+
    \n+
    252 DUNE_EXPORT static MPIHelper& instance(int& argc, char**& argv)
    \n+
    253 {
    \n+
    254 return instance(&argc, &argv);
    \n+
    255 }
    \n+
    \n+
    256
    \n+
    \n+
    284 DUNE_EXPORT static MPIHelper& instance(int* argc = nullptr, char*** argv = nullptr)
    \n+
    285 {
    \n+
    286 assert((argc == nullptr) == (argv == nullptr));
    \n+
    287 static MPIHelper instance{argc, argv};
    \n+
    288 return instance;
    \n+
    289 }
    \n+
    \n+
    290
    \n+
    294 int rank () const { return rank_; }
    \n+
    298 int size () const { return size_; }
    \n+
    299
    \n+
    \n+\n+
    302 {
    \n+
    303 int wasFinalized = -1;
    \n+
    304 MPI_Finalized( &wasFinalized );
    \n+
    305 if(!wasFinalized && initializedHere_)
    \n+
    306 {
    \n+
    307 MPI_Finalize();
    \n+
    308 dverb << "Called MPI_Finalize on p=" << rank_ << "!" <<std::endl;
    \n+
    309 }
    \n+
    310
    \n+
    311 }
    \n+
    \n+
    312
    \n+
    313 private:
    \n+
    314 int rank_;
    \n+
    315 int size_;
    \n+
    316 bool initializedHere_;
    \n+
    317 void prevent_warning(int){}
    \n+
    318
    \n+
    320 MPIHelper(int* argc, char*** argv)
    \n+
    321 : initializedHere_(false)
    \n+
    322 {
    \n+
    323 int wasInitialized = -1;
    \n+
    324 MPI_Initialized( &wasInitialized );
    \n+
    325 if(!wasInitialized)
    \n+
    326 {
    \n+
    327 rank_ = -1;
    \n+
    328 size_ = -1;
    \n+
    329 static int is_initialized = MPI_Init(argc, argv);
    \n+
    330 prevent_warning(is_initialized);
    \n+
    331 initializedHere_ = true;
    \n+
    332 }
    \n+
    333
    \n+
    334 MPI_Comm_rank(MPI_COMM_WORLD,&rank_);
    \n+
    335 MPI_Comm_size(MPI_COMM_WORLD,&size_);
    \n+
    336
    \n+
    337 assert( rank_ >= 0 );
    \n+
    338 assert( size_ >= 1 );
    \n+
    339
    \n+
    340 dverb << "Called MPI_Init on p=" << rank_ << "!" << std::endl;
    \n+
    341 }
    \n+
    342
    \n+
    343 MPIHelper(const MPIHelper&);
    \n+
    344 MPIHelper& operator=(const MPIHelper);
    \n+
    345 };
    \n+
    \n+
    346#else // !HAVE_MPI
    \n+
    347 // We do not have MPI therefore FakeMPIHelper
    \n+
    348 // is the MPIHelper
    \n+
    353 typedef FakeMPIHelper MPIHelper;
    \n+
    354
    \n+
    355#endif // !HAVE_MPI
    \n+
    356
    \n+
    357} // end namespace Dune
    \n+
    358
    \n+
    359#endif // DUNE_COMMON_PARALLEL_MPIHELPER_HH
    \n+
    Implements an utility class that provides collective communication methods for sequential programs.
    \n+
    Implements an utility class that provides MPI's collective communication methods.
    \n+
    Standard Dune debug streams.
    \n+
    A few common exception classes.
    \n+
    Definition of macros controlling symbol visibility at the ABI level.
    \n+
    #define DUNE_EXPORT
    Export a symbol as part of the public ABI.
    Definition visibility.hh:20
    \n+
    DVerbType dverb(std::cout)
    Singleton of verbose debug stream.
    Definition stdstreams.hh:117
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    Get the 'const' version of a reference to a mutable object.
    Definition genericiterator.hh:87
    \n-
    const R type
    Definition genericiterator.hh:88
    \n-
    const R type
    Definition genericiterator.hh:94
    \n-
    const R & type
    Definition genericiterator.hh:100
    \n-
    const R & type
    Definition genericiterator.hh:106
    \n-
    get the 'mutable' version of a reference to a const object
    Definition genericiterator.hh:116
    \n-
    R type
    Definition genericiterator.hh:117
    \n-
    R type
    Definition genericiterator.hh:123
    \n-
    R & type
    Definition genericiterator.hh:129
    \n-
    Generic class for stl-conforming iterators for container classes with operator[].
    Definition genericiterator.hh:153
    \n-
    GenericIterator(const MutableIterator &other)
    Copy constructor.
    Definition genericiterator.hh:211
    \n-
    bool equals(const MutableIterator &other) const
    Definition genericiterator.hh:227
    \n-
    Reference elementAt(DifferenceType i) const
    Definition genericiterator.hh:251
    \n-
    void increment()
    Definition genericiterator.hh:241
    \n-
    GenericIterator(const ConstIterator &other)
    Copy constructor.
    Definition genericiterator.hh:223
    \n-
    void advance(DifferenceType n)
    Definition genericiterator.hh:255
    \n-
    GenericIterator(Container &cont, DifferenceType pos)
    Constructor.
    Definition genericiterator.hh:200
    \n-
    D DifferenceType
    The type of the difference between two positions.
    Definition genericiterator.hh:182
    \n-
    R Reference
    The type of the reference to the values accessed.
    Definition genericiterator.hh:187
    \n-
    DifferenceType distanceTo(const MutableIterator &other) const
    Definition genericiterator.hh:259
    \n-
    C Container
    The type of container we are an iterator for.
    Definition genericiterator.hh:170
    \n-
    T Value
    The value type of the iterator.
    Definition genericiterator.hh:177
    \n-
    DifferenceType distanceTo(const ConstIterator &other) const
    Definition genericiterator.hh:265
    \n-
    void decrement()
    Definition genericiterator.hh:246
    \n-
    Reference dereference() const
    Definition genericiterator.hh:237
    \n-
    bool equals(const ConstIterator &other) const
    Definition genericiterator.hh:232
    \n-
    Base class for stl conformant forward iterators.
    Definition iteratorfacades.hh:435
    \n-
    CRTP-Mixing class for stl conformant iterators of given iterator category.
    Definition iteratorfacades.hh:1053
    \n+
    Definition communication.hh:46
    \n+
    Collective communication interface and sequential default implementation.
    Definition communication.hh:100
    \n+
    A fake mpi helper.
    Definition mpihelper.hh:76
    \n+
    static DUNE_EXPORT MPICommunicator getCommunicator()
    get the default communicator
    Definition mpihelper.hh:95
    \n+
    int size() const
    return rank of process, i.e. one
    Definition mpihelper.hh:165
    \n+
    static Communication< MPICommunicator > getCollectiveCommunication()
    Definition mpihelper.hh:120
    \n+
    static MPICommunicator getLocalCommunicator()
    get a local communicator
    Definition mpihelper.hh:107
    \n+
    No_Comm MPICommunicator
    The type of the mpi communicator.
    Definition mpihelper.hh:87
    \n+
    static DUNE_EXPORT FakeMPIHelper & instance(int argc, char **argv)
    Get the singleton instance of the helper.
    Definition mpihelper.hh:146
    \n+
    static DUNE_EXPORT FakeMPIHelper & instance()
    Definition mpihelper.hh:152
    \n+
    static Communication< MPICommunicator > getCommunication()
    Definition mpihelper.hh:126
    \n+
    static constexpr bool isFake
    Are we fake (i.e. pretend to have MPI support but are compiled without.)
    Definition mpihelper.hh:82
    \n+
    int rank() const
    return rank of process, i.e. zero
    Definition mpihelper.hh:161
    \n+
    A real mpi helper.
    Definition mpihelper.hh:181
    \n+
    int size() const
    return number of processes
    Definition mpihelper.hh:298
    \n+
    static constexpr bool isFake
    Are we fake (i. e. pretend to have MPI support but are compiled without.
    Definition mpihelper.hh:187
    \n+
    static DUNE_EXPORT MPIHelper & instance(int *argc=nullptr, char ***argv=nullptr)
    Get the singleton instance of the helper.
    Definition mpihelper.hh:284
    \n+
    static DUNE_EXPORT MPIHelper & instance(int &argc, char **&argv)
    Get the singleton instance of the helper.
    Definition mpihelper.hh:252
    \n+
    static Communication< MPICommunicator > getCommunication()
    Definition mpihelper.hh:229
    \n+
    ~MPIHelper()
    calls MPI_Finalize
    Definition mpihelper.hh:301
    \n+
    int rank() const
    return rank of process
    Definition mpihelper.hh:294
    \n+
    MPI_Comm MPICommunicator
    The type of the mpi communicator.
    Definition mpihelper.hh:192
    \n+
    static MPICommunicator getCommunicator()
    get the default communicator
    Definition mpihelper.hh:200
    \n+
    static MPICommunicator getLocalCommunicator()
    get a local communicator
    Definition mpihelper.hh:211
    \n+
    static Communication< MPICommunicator > getCollectiveCommunication()
    Definition mpihelper.hh:223
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,270 +1,306 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-genericiterator.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpihelper.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_GENERICITERATOR_HH\n-6#define DUNE_GENERICITERATOR_HH\n+5#ifndef DUNE_COMMON_PARALLEL_MPIHELPER_HH\n+6#define DUNE_COMMON_PARALLEL_MPIHELPER_HH\n 7\n-8#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh>\n-9#include \n+8#include \n+9#include \n 10\n-11namespace _\bD_\bu_\bn_\be {\n-12\n-85 template\n-_\b8_\b6 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-87 {\n-_\b8_\b8 typedef const R _\bt_\by_\bp_\be;\n-89 };\n-90\n-91 template\n-_\b9_\b2 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-93 {\n-_\b9_\b4 typedef const R _\bt_\by_\bp_\be;\n-95 };\n-96\n-97 template\n-_\b9_\b8 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-99 {\n-_\b1_\b0_\b0 typedef const R& _\bt_\by_\bp_\be;\n-101 };\n-102\n-103 template\n-_\b1_\b0_\b4 struct _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-105 {\n-_\b1_\b0_\b6 typedef const R& _\bt_\by_\bp_\be;\n-107 };\n-108\n-114 template\n-_\b1_\b1_\b5 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-116 {\n-_\b1_\b1_\b7 typedef R _\bt_\by_\bp_\be;\n-118 };\n-119\n-120 template\n-_\b1_\b2_\b1 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-122 {\n-_\b1_\b2_\b3 typedef R _\bt_\by_\bp_\be;\n-124 };\n-125\n-126 template\n-_\b1_\b2_\b7 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-128 {\n-_\b1_\b2_\b9 typedef R& _\bt_\by_\bp_\be;\n-130 };\n-131\n-132 template\n-_\b1_\b3_\b3 struct _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-134 {\n-_\b1_\b3_\b5 typedef R& type;\n-136 };\n-137\n-149 template class\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be=_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be>\n-_\b1_\b5_\b1 class _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br :\n-152 public _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be,T,R,D>\n+11#if HAVE_MPI\n+12#include \n+13#endif\n+14\n+15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+16#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bv_\bi_\bs_\bi_\bb_\bi_\bl_\bi_\bt_\by_\b._\bh_\bh>\n+17#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+18#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+19\n+20#if HAVE_MPI\n+21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh>\n+22#endif\n+23\n+24namespace _\bD_\bu_\bn_\be\n+25{\n+_\b7_\b5 class _\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+76 {\n+77 public:\n+_\b8_\b2 constexpr static bool _\bi_\bs_\bF_\ba_\bk_\be = true;\n+83\n+_\b8_\b7 typedef _\bN_\bo_\b__\bC_\bo_\bm_\bm _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+88\n+_\b9_\b5 _\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT static _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br ()\n+96 {\n+97 static _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br comm;\n+98 return comm;\n+99 }\n+100\n+_\b1_\b0_\b7 static _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br _\bg_\be_\bt_\bL_\bo_\bc_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br ()\n+108 {\n+109 return _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br();\n+110 }\n+111\n+112\n+113\n+119 [[deprecated(\"getCollectionCommunication is deprecated. Use\n+getCommunication instead.\")]]\n+_\b1_\b2_\b0 static _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b> _\bg_\be_\bt_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn()\n+121 {\n+122 return _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>(_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+123 }\n+124\n+125 static _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>\n+_\b1_\b2_\b6 _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn()\n+127 {\n+128 return _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>(_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+129 }\n+130\n+_\b1_\b4_\b6 _\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT static _\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br& _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be([[maybe_unused]] int argc,\n+147 [[maybe_unused]] char** argv)\n+148 {\n+149 return _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n+150 }\n+151\n+_\b1_\b5_\b2 _\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT static _\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br& _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be()\n 153 {\n-154 friend class _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type, typename\n-std::remove_const::type, typename _\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be::type, D,\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be>;\n-155 friend class _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n-const typename std::remove_const::type, typename const_reference::type,\n-D, IteratorFacade>;\n-156\n-157 typedef _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type, typename std::\n-remove_const::type, typename mutable_reference::type, D, IteratorFacade>\n-_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-158 typedef _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type, const\n-typename std::remove_const::type, typename const_reference::type, D,\n-IteratorFacade> _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-159\n-160 public:\n-161\n-_\b1_\b7_\b0 typedef C _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-171\n-_\b1_\b7_\b7 typedef T _\bV_\ba_\bl_\bu_\be;\n-178\n-_\b1_\b8_\b2 typedef D _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be;\n-183\n-_\b1_\b8_\b7 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+154 static _\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br singleton;\n+155 return singleton;\n+156 }\n+157\n+_\b1_\b6_\b1 int _\br_\ba_\bn_\bk () const { return 0; }\n+_\b1_\b6_\b5 int _\bs_\bi_\bz_\be () const { return 1; }\n+166\n+167 private:\n+168 _\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br() {}\n+169 FakeMPIHelper(const FakeMPIHelper&);\n+170 FakeMPIHelper& operator=(const FakeMPIHelper);\n+171 };\n+172\n+173#if HAVE_MPI\n+_\b1_\b8_\b0 class _\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+181 {\n+182 public:\n+_\b1_\b8_\b7 constexpr static bool _\bi_\bs_\bF_\ba_\bk_\be = false;\n 188\n-189 // Constructors needed by the base iterators\n-_\b1_\b9_\b0 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br() : container_(0), position_(0)\n-191 {}\n-192\n-_\b2_\b0_\b0 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be pos)\n-201 : container_(&cont), position_(pos)\n-202 {}\n-203\n-_\b2_\b1_\b1 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) : container_\n-(other.container_), position_(other.position_)\n-212 {}\n-213\n-_\b2_\b2_\b3 _\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) : container_(other.container_),\n-position_(other.position_)\n-224 {}\n-225\n-226 // Methods needed by the forward iterator\n-_\b2_\b2_\b7 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br & other) const\n-228 {\n-229 return position_ == other.position_ && container_ == other.container_;\n-230 }\n-231\n-_\b2_\b3_\b2 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br & other) const\n-233 {\n-234 return position_ == other.position_ && container_ == other.container_;\n-235 }\n-236\n-_\b2_\b3_\b7 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const {\n-238 return container_->operator[](position_);\n-239 }\n-240\n-_\b2_\b4_\b1 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt(){\n-242 ++position_;\n-243 }\n-244\n-245 // Additional function needed by BidirectionalIterator\n-_\b2_\b4_\b6 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt(){\n-247 --position_;\n-248 }\n-249\n-250 // Additional function needed by RandomAccessIterator\n-_\b2_\b5_\b1 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be i) const {\n-252 return container_->operator[](position_+i);\n-253 }\n-254\n-_\b2_\b5_\b5 void _\ba_\bd_\bv_\ba_\bn_\bc_\be(_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be n){\n-256 position_=position_+n;\n-257 }\n-258\n-_\b2_\b5_\b9 _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const\n-260 {\n-261 assert(other.container_==container_);\n-262 return other.position_ - position_;\n-263 }\n-264\n-_\b2_\b6_\b5 _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const\n-266 {\n-267 assert(other.container_==container_);\n-268 return other.position_ - position_;\n-269 }\n-270\n-271 private:\n-272 _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br *container_;\n-273 _\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be position_;\n-274 };\n-275\n-278} // end namespace Dune\n-279\n-280#endif\n-_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh\n-This file implements iterator facade classes for writing stl conformant\n-iterators.\n-_\bs_\bt_\bd\n-STL namespace.\n+_\b1_\b9_\b2 typedef MPI_Comm _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+193\n+_\b2_\b0_\b0 static _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br ()\n+201 {\n+202 return MPI_COMM_WORLD;\n+203 }\n+204\n+_\b2_\b1_\b1 static _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br _\bg_\be_\bt_\bL_\bo_\bc_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br ()\n+212 {\n+213 return MPI_COMM_SELF;\n+214 }\n+215\n+221 [[deprecated(\"getCollectionCommunication is deprecated. Use\n+getCommunication instead.\")]]\n+222 static _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>\n+_\b2_\b2_\b3 _\bg_\be_\bt_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn()\n+224 {\n+225 return _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>(_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+226 }\n+227\n+228 static _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>\n+_\b2_\b2_\b9 _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn()\n+230 {\n+231 return _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b>(_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+232 }\n+_\b2_\b5_\b2 _\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT static _\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br& _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be(int& argc, char**& argv)\n+253 {\n+254 return _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be(&argc, &argv);\n+255 }\n+256\n+_\b2_\b8_\b4 _\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT static _\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br& _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be(int* argc = nullptr, char*** argv =\n+nullptr)\n+285 {\n+286 assert((argc == nullptr) == (argv == nullptr));\n+287 static _\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be{argc, argv};\n+288 return _\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be;\n+289 }\n+290\n+_\b2_\b9_\b4 int _\br_\ba_\bn_\bk () const { return rank_; }\n+_\b2_\b9_\b8 int _\bs_\bi_\bz_\be () const { return size_; }\n+299\n+_\b3_\b0_\b1 _\b~_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br()\n+302 {\n+303 int wasFinalized = -1;\n+304 MPI_Finalized( &wasFinalized );\n+305 if(!wasFinalized && initializedHere_)\n+306 {\n+307 MPI_Finalize();\n+308 _\bd_\bv_\be_\br_\bb << \"Called MPI_Finalize on p=\" << rank_ << \"!\" <= 0 );\n+338 assert( size_ >= 1 );\n+339\n+340 _\bd_\bv_\be_\br_\bb << \"Called MPI_Init on p=\" << rank_ << \"!\" << std::endl;\n+341 }\n+342\n+343 MPIHelper(const MPIHelper&);\n+344 MPIHelper& operator=(const MPIHelper);\n+345 };\n+346#else // !HAVE_MPI\n+347 // We do not have MPI therefore FakeMPIHelper\n+348 // is the MPIHelper\n+353 typedef FakeMPIHelper MPIHelper;\n+354\n+355#endif // !HAVE_MPI\n+356\n+357} // end namespace Dune\n+358\n+359#endif // DUNE_COMMON_PARALLEL_MPIHELPER_HH\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides collective communication methods for\n+sequential programs.\n+_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides MPI's collective communication\n+methods.\n+_\bs_\bt_\bd_\bs_\bt_\br_\be_\ba_\bm_\bs_\b._\bh_\bh\n+Standard Dune debug streams.\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bv_\bi_\bs_\bi_\bb_\bi_\bl_\bi_\bt_\by_\b._\bh_\bh\n+Definition of macros controlling symbol visibility at the ABI level.\n+_\bD_\bU_\bN_\bE_\b__\bE_\bX_\bP_\bO_\bR_\bT\n+#define DUNE_EXPORT\n+Export a symbol as part of the public ABI.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn visibility.hh:20\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\be_\br_\bb\n+DVerbType dverb(std::cout)\n+Singleton of verbose debug stream.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:117\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-Get the 'const' version of a reference to a mutable object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bt_\by_\bp_\be\n-const R type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:88\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-const R type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-const R & type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:100\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b&_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-const R & type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:106\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-get the 'mutable' version of a reference to a const object\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b:_\b:_\bt_\by_\bp_\be\n-R type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:117\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bR_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-R type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:123\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b<_\b _\bR_\b _\b&_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-R & type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Generic class for stl-conforming iterators for container classes with operator\n-[].\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-GenericIterator(const MutableIterator &other)\n-Copy constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const MutableIterator &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:227\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n-Reference elementAt(DifferenceType i) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:251\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-void increment()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-GenericIterator(const ConstIterator &other)\n-Copy constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:223\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n-void advance(DifferenceType n)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:255\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-GenericIterator(Container &cont, DifferenceType pos)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:200\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bD_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\bT_\by_\bp_\be\n-D DifferenceType\n-The type of the difference between two positions.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:182\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-R Reference\n-The type of the reference to the values accessed.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:187\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-DifferenceType distanceTo(const MutableIterator &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:259\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-C Container\n-The type of container we are an iterator for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:170\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\bl_\bu_\be\n-T Value\n-The value type of the iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:177\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-DifferenceType distanceTo(const ConstIterator &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-void decrement()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:246\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-Reference dereference() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:237\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\bi_\bc_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const ConstIterator &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn genericiterator.hh:232\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n-Base class for stl conformant forward iterators.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:435\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n-CRTP-Mixing class for stl conformant iterators of given iterator category.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:1053\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\b__\bC_\bo_\bm_\bm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Collective communication interface and sequential default implementation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+A fake mpi helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+static DUNE_EXPORT MPICommunicator getCommunicator()\n+get the default communicator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bs_\bi_\bz_\be\n+int size() const\n+return rank of process, i.e. one\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:165\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+static Communication< MPICommunicator > getCollectiveCommunication()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bL_\bo_\bc_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+static MPICommunicator getLocalCommunicator()\n+get a local communicator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:107\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+No_Comm MPICommunicator\n+The type of the mpi communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be\n+static DUNE_EXPORT FakeMPIHelper & instance(int argc, char **argv)\n+Get the singleton instance of the helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be\n+static DUNE_EXPORT FakeMPIHelper & instance()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:152\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+static Communication< MPICommunicator > getCommunication()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bi_\bs_\bF_\ba_\bk_\be\n+static constexpr bool isFake\n+Are we fake (i.e. pretend to have MPI support but are compiled without.)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\ba_\bk_\be_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\br_\ba_\bn_\bk\n+int rank() const\n+return rank of process, i.e. zero\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+A real mpi helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bs_\bi_\bz_\be\n+int size() const\n+return number of processes\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:298\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bi_\bs_\bF_\ba_\bk_\be\n+static constexpr bool isFake\n+Are we fake (i. e. pretend to have MPI support but are compiled without.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be\n+static DUNE_EXPORT MPIHelper & instance(int *argc=nullptr, char\n+***argv=nullptr)\n+Get the singleton instance of the helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be\n+static DUNE_EXPORT MPIHelper & instance(int &argc, char **&argv)\n+Get the singleton instance of the helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:252\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+static Communication< MPICommunicator > getCommunication()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\b~_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+~MPIHelper()\n+calls MPI_Finalize\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\br_\ba_\bn_\bk\n+int rank() const\n+return rank of process\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:294\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+MPI_Comm MPICommunicator\n+The type of the mpi communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:192\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+static MPICommunicator getCommunicator()\n+get the default communicator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:200\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bL_\bo_\bc_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+static MPICommunicator getLocalCommunicator()\n+get a local communicator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+static Communication< MPICommunicator > getCollectiveCommunication()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:223\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00044.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00044.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: enumset.hh File Reference\n+dune-common: mpicollectivecommunication.hh File Reference\n \n \n \n \n \n \n \n@@ -65,77 +65,24 @@\n \n \n \n \n \n \n \n
    \n- \n-
    enumset.hh File Reference
    \n+
    mpicollectivecommunication.hh File Reference
    \n
    \n
    \n-\n-

    Classes for building sets out of enumeration values. \n-More...

    \n-
    #include <iostream>
    \n+\n

    Go to the source code of this file.

    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::EmptySet< TA >
     An empty set. More...
     
    class  Dune::AllSet< TA >
     A set containing everything. More...
     
    class  Dune::EnumItem< TA, item >
     A set consisting only of one item. More...
     
    class  Dune::EnumRange< TA, from, end >
     A set representing a range including the borders. More...
     
    class  Dune::NegateSet< S >
     The negation of a set. An item is contained in the set if and only if it is not contained in the negated set. More...
     
    class  Dune::Combine< TI1, TI2, TA >
     A set combining two other sets. More...
     
    \n-\n-\n-\n-\n-

    \n-Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Functions

    template<typename TA , int i>
    std::ostream & Dune::operator<< (std::ostream &os, const EnumItem< TA, i > &)
     
    template<typename TA , int from, int to>
    std::ostream & Dune::operator<< (std::ostream &os, const EnumRange< TA, from, to > &)
     
    template<class TI1 , class TI2 >
    Combine< TI1, TI2, typename TI1::Type > Dune::combine (const TI1 &set1, const TI2 &set2)
     
    template<class TI1 , class TI2 , class T >
    std::ostream & Dune::operator<< (std::ostream &os, const Combine< TI1, TI2, T > &)
     
    \n-

    Detailed Description

    \n-

    Classes for building sets out of enumeration values.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,58 +1,12 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-enumset.hh File Reference\n-Classes for building sets out of enumeration values. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpicollectivecommunication.hh File Reference\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bE_\bm_\bp_\bt_\by_\bS_\be_\bt_\b<_\b _\bT_\bA_\b _\b>\n-\u00a0 An empty set. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bS_\be_\bt_\b<_\b _\bT_\bA_\b _\b>\n-\u00a0 A set containing everything. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm_\b<_\b _\bT_\bA_\b,_\b _\bi_\bt_\be_\bm_\b _\b>\n-\u00a0 A set consisting only of one item. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be_\b<_\b _\bT_\bA_\b,_\b _\bf_\br_\bo_\bm_\b,_\b _\be_\bn_\bd_\b _\b>\n-\u00a0 A set representing a range including the borders. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\be_\bg_\ba_\bt_\be_\bS_\be_\bt_\b<_\b _\bS_\b _\b>\n-\u00a0 The negation of a set. An item is contained in the set if and only if\n- it is not contained in the negated set. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\b<_\b _\bT_\bI_\b1_\b,_\b _\bT_\bI_\b2_\b,_\b _\bT_\bA_\b _\b>\n-\u00a0 A set combining two other sets. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0 _\bD_\bu_\bn_\be namespace.\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os,\n- const _\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm< TA, i > &)\n-\u00a0\n-template\n- std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os,\n- const _\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be< TA, from, to > &)\n-\u00a0\n-template\n-_\bC_\bo_\bm_\bb_\bi_\bn_\be< TI1, TI2, typename TI1::Type >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bb_\bi_\bn_\be (const TI1 &set1, const\n- TI2 &set2)\n-\u00a0\n-template\n- std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os,\n- const _\bC_\bo_\bm_\bb_\bi_\bn_\be< TI1, TI2, T > &)\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Classes for building sets out of enumeration values.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00044_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00044_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: enumset.hh Source File\n+dune-common: mpicollectivecommunication.hh Source File\n \n \n \n \n \n \n \n@@ -70,194 +70,27 @@\n \n \n \n \n \n \n \n
    \n-
    enumset.hh
    \n+
    mpicollectivecommunication.hh
    \n
    \n
    \n-Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    2// vi: set et ts=4 sw=2 sts=2:
    \n-
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n-
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_ENUMSET_HH
    \n-
    6#define DUNE_ENUMSET_HH
    \n-
    7
    \n-
    8#include <iostream>
    \n-
    9
    \n-
    10namespace Dune
    \n-
    11{
    \n-
    25 template<typename TA>
    \n-
    \n-\n-
    27 {
    \n-
    28 public:
    \n-
    32 typedef TA Type;
    \n-
    36 static bool contains(const Type& attribute);
    \n-
    37 };
    \n-
    \n-
    38
    \n-
    42 template<typename TA>
    \n-
    \n-
    43 class AllSet
    \n-
    44 {
    \n-
    45 public:
    \n-
    49 typedef TA Type;
    \n-
    53 static bool contains(const Type& attribute);
    \n-
    54 };
    \n-
    \n-
    55
    \n-
    59 template<typename TA, int item>
    \n-
    \n-\n-
    61 {
    \n-
    62 public:
    \n-
    66 typedef TA Type;
    \n-
    67
    \n-
    72 static bool contains(const Type& attribute);
    \n-
    73 };
    \n-
    \n-
    74
    \n-
    78 template<typename TA,int from, int end>
    \n-
    \n-
    79 class EnumRange //: public PODSet<EnumRange<T,from,end>,T>
    \n-
    80 {
    \n-
    81 public:
    \n-
    85 typedef TA Type;
    \n-
    86 static bool contains(const Type& item);
    \n-
    87 };
    \n-
    \n-
    88
    \n-
    94 template<typename S>
    \n-
    \n-\n-
    96 {
    \n-
    97 public:
    \n-
    98 typedef typename S::Type Type;
    \n-
    99
    \n-
    \n-
    100 static bool contains(const Type& item)
    \n-
    101 {
    \n-
    102 return !S::contains(item);
    \n-
    103 }
    \n-
    \n-
    104 };
    \n-
    \n-
    105
    \n-
    109 template<class TI1, class TI2, typename TA=typename TI1::Type>
    \n-
    \n-\n-
    111 {
    \n-
    112 public:
    \n-
    113 static bool contains(const TA& item);
    \n-
    114 };
    \n-
    \n-
    115
    \n-
    116 template<typename TA>
    \n-
    \n-
    117 inline bool EmptySet<TA>::contains([[maybe_unused]] const Type& attribute)
    \n-
    118 {
    \n-
    119 return false;
    \n-
    120 }
    \n-
    \n-
    121
    \n-
    122 template<typename TA>
    \n-
    \n-
    123 inline bool AllSet<TA>::contains([[maybe_unused]] const Type& attribute)
    \n-
    124 {
    \n-
    125 return true;
    \n-
    126 }
    \n-
    \n-
    127
    \n-
    128 template<typename TA,int i>
    \n-
    \n-
    129 inline bool EnumItem<TA,i>::contains(const Type& item)
    \n-
    130 {
    \n-
    131 return item==i;
    \n-
    132 }
    \n-
    \n-
    133
    \n-
    134 template<typename TA,int i>
    \n-
    \n-
    135 inline std::ostream& operator<<(std::ostream& os, const EnumItem<TA,i>&)
    \n-
    136 {
    \n-
    137 return os<<i;
    \n-
    138 }
    \n-
    \n-
    139
    \n-
    140 template<typename TA, int from, int to>
    \n-
    \n-
    141 inline bool EnumRange<TA,from,to>::contains(const Type& item)
    \n-
    142 {
    \n-
    143 return from<=item && item<=to;
    \n-
    144 }
    \n-
    \n-
    145
    \n-
    146 template<typename TA, int from, int to>
    \n-
    \n-
    147 inline std::ostream& operator<<(std::ostream& os, const EnumRange<TA,from,to>&)
    \n-
    148 {
    \n-
    149 return os<<"["<<from<<" - "<<to<<"]";
    \n-
    150 }
    \n-
    \n-
    151
    \n-
    152 template<class TI1, class TI2, typename TA>
    \n-
    \n-
    153 inline bool Combine<TI1,TI2,TA>::contains(const TA& item)
    \n-
    154 {
    \n-
    155 return TI1::contains(item) ||
    \n-
    156 TI2::contains(item);
    \n-
    157 }
    \n-
    \n-
    158
    \n-
    159 template<class TI1, class TI2>
    \n-
    \n-
    160 inline Combine<TI1,TI2,typename TI1::Type> combine([[maybe_unused]] const TI1& set1,
    \n-
    161 [[maybe_unused]] const TI2& set2)
    \n-
    162 {
    \n-\n-
    164 }
    \n-
    \n-
    165
    \n-
    166 template<class TI1, class TI2, class T>
    \n-
    \n-
    167 inline std::ostream& operator<<(std::ostream& os, const Combine<TI1,TI2,T>&)
    \n-
    168 {
    \n-
    169 return os << TI1()<<" "<<TI2();
    \n-
    170 }
    \n-
    \n-
    172}
    \n-
    173
    \n-
    174#endif
    \n-
    static bool contains(const Type &attribute)
    Always returns true.
    Definition enumset.hh:123
    \n-
    static bool contains(const Type &item)
    Definition enumset.hh:141
    \n-
    static bool contains(const TA &item)
    Definition enumset.hh:153
    \n-
    static bool contains(const Type &attribute)
    Always returns false.
    Definition enumset.hh:117
    \n-
    static bool contains(const Type &attribute)
    Tests whether an item is in the set.
    Definition enumset.hh:129
    \n-
    Combine< TI1, TI2, typename TI1::Type > combine(const TI1 &set1, const TI2 &set2)
    Definition enumset.hh:160
    \n-
    std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
    Definition bigunsignedint.hh:278
    \n-
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    An empty set.
    Definition enumset.hh:27
    \n-
    TA Type
    The POD type the set holds.
    Definition enumset.hh:32
    \n-
    A set containing everything.
    Definition enumset.hh:44
    \n-
    TA Type
    The POD type the set holds.
    Definition enumset.hh:49
    \n-
    A set consisting only of one item.
    Definition enumset.hh:61
    \n-
    TA Type
    The type the set holds.
    Definition enumset.hh:66
    \n-
    A set representing a range including the borders.
    Definition enumset.hh:80
    \n-
    TA Type
    The type the set holds.
    Definition enumset.hh:85
    \n-
    The negation of a set. An item is contained in the set if and only if it is not contained in the nega...
    Definition enumset.hh:96
    \n-
    S::Type Type
    Definition enumset.hh:98
    \n-
    static bool contains(const Type &item)
    Definition enumset.hh:100
    \n-
    A set combining two other sets.
    Definition enumset.hh:111
    \n+Go to the documentation of this file.
    1// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n+
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n+
    3// Will be removed after the 2.7 release
    \n+
    4#warning "Deprecated header, use #include <dune/common/parallel/mpicommunication.hh> instead!"
    \n+\n+
    Implements an utility class that provides MPI's collective communication methods.
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,204 +1,21 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-enumset.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpicollectivecommunication.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-2// vi: set et ts=4 sw=2 sts=2:\n-3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n+1// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n-4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_ENUMSET_HH\n-6#define DUNE_ENUMSET_HH\n-7\n-8#include \n-9\n-10namespace _\bD_\bu_\bn_\be\n-11{\n-25 template\n-_\b2_\b6 class _\bE_\bm_\bp_\bt_\by_\bS_\be_\bt\n-27 {\n-28 public:\n-_\b3_\b2 typedef TA _\bT_\by_\bp_\be;\n-36 static bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& attribute);\n-37 };\n-38\n-42 template\n-_\b4_\b3 class _\bA_\bl_\bl_\bS_\be_\bt\n-44 {\n-45 public:\n-_\b4_\b9 typedef TA _\bT_\by_\bp_\be;\n-53 static bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& attribute);\n-54 };\n-55\n-59 template\n-_\b6_\b0 class _\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm\n-61 {\n-62 public:\n-_\b6_\b6 typedef TA _\bT_\by_\bp_\be;\n-67\n-72 static bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& attribute);\n-73 };\n-74\n-78 template\n-_\b7_\b9 class _\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be //: public PODSet,T>\n-80 {\n-81 public:\n-_\b8_\b5 typedef TA _\bT_\by_\bp_\be;\n-86 static bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& item);\n-87 };\n-88\n-94 template\n-_\b9_\b5 class _\bN_\be_\bg_\ba_\bt_\be_\bS_\be_\bt\n-96 {\n-97 public:\n-_\b9_\b8 typedef typename S::Type _\bT_\by_\bp_\be;\n-99\n-_\b1_\b0_\b0 static bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& item)\n-101 {\n-102 return !S::contains(item);\n-103 }\n-104 };\n-105\n-109 template\n-_\b1_\b1_\b0 class _\bC_\bo_\bm_\bb_\bi_\bn_\be\n-111 {\n-112 public:\n-113 static bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const TA& item);\n-114 };\n-115\n-116 template\n-_\b1_\b1_\b7 inline bool _\bE_\bm_\bp_\bt_\by_\bS_\be_\bt_\b<_\bT_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs([[maybe_unused]] const _\bT_\by_\bp_\be& attribute)\n-118 {\n-119 return false;\n-120 }\n-121\n-122 template\n-_\b1_\b2_\b3 inline bool _\bA_\bl_\bl_\bS_\be_\bt_\b<_\bT_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs([[maybe_unused]] const _\bT_\by_\bp_\be& attribute)\n-124 {\n-125 return true;\n-126 }\n-127\n-128 template\n-_\b1_\b2_\b9 inline bool _\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm_\b<_\bT_\bA_\b,_\bi_\b>_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& item)\n-130 {\n-131 return item==i;\n-132 }\n-133\n-134 template\n-_\b1_\b3_\b5 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm_\b<_\bT_\bA_\b,_\bi_\b>&)\n-136 {\n-137 return os<\n-_\b1_\b4_\b1 inline bool _\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be_\b<_\bT_\bA_\b,_\bf_\br_\bo_\bm_\b,_\bt_\bo_\b>_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const _\bT_\by_\bp_\be& item)\n-142 {\n-143 return from<=item && item<=to;\n-144 }\n-145\n-146 template\n-_\b1_\b4_\b7 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const\n-_\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be_\b<_\bT_\bA_\b,_\bf_\br_\bo_\bm_\b,_\bt_\bo_\b>&)\n-148 {\n-149 return os<<\"[\"<\n-_\b1_\b5_\b3 inline bool _\bC_\bo_\bm_\bb_\bi_\bn_\be_\b<_\bT_\bI_\b1_\b,_\bT_\bI_\b2_\b,_\bT_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(const TA& item)\n-154 {\n-155 return TI1::contains(item) ||\n-156 TI2::contains(item);\n-157 }\n-158\n-159 template\n-_\b1_\b6_\b0 inline _\bC_\bo_\bm_\bb_\bi_\bn_\be_\b<_\bT_\bI_\b1_\b,_\bT_\bI_\b2_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\bI_\b1_\b:_\b:_\bT_\by_\bp_\be_\b> _\bc_\bo_\bm_\bb_\bi_\bn_\be([[maybe_unused]] const\n-TI1& set1,\n-161 [[maybe_unused]] const TI2& set2)\n-162 {\n-163 return _\bC_\bo_\bm_\bb_\bi_\bn_\be_\b<_\bT_\bI_\b1_\b,_\bT_\bI_\b2_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\bI_\b1_\b:_\b:_\bT_\by_\bp_\be_\b>();\n-164 }\n-165\n-166 template\n-_\b1_\b6_\b7 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const\n-_\bC_\bo_\bm_\bb_\bi_\bn_\be_\b<_\bT_\bI_\b1_\b,_\bT_\bI_\b2_\b,_\bT_\b>&)\n-168 {\n-169 return os << TI1()<<\" \"< combine(const TI1 &set1, const TI2\n-&set2)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:160\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:278\n-_\bD_\bu_\bn_\be\n-Dune namespace.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bm_\bp_\bt_\by_\bS_\be_\bt\n-An empty set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bm_\bp_\bt_\by_\bS_\be_\bt_\b:_\b:_\bT_\by_\bp_\be\n-TA Type\n-The POD type the set holds.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bS_\be_\bt\n-A set containing everything.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bS_\be_\bt_\b:_\b:_\bT_\by_\bp_\be\n-TA Type\n-The POD type the set holds.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm\n-A set consisting only of one item.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bu_\bm_\bI_\bt_\be_\bm_\b:_\b:_\bT_\by_\bp_\be\n-TA Type\n-The type the set holds.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be\n-A set representing a range including the borders.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bu_\bm_\bR_\ba_\bn_\bg_\be_\b:_\b:_\bT_\by_\bp_\be\n-TA Type\n-The type the set holds.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:85\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\be_\bg_\ba_\bt_\be_\bS_\be_\bt\n-The negation of a set. An item is contained in the set if and only if it is not\n-contained in the nega...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:96\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\be_\bg_\ba_\bt_\be_\bS_\be_\bt_\b:_\b:_\bT_\by_\bp_\be\n-S::Type Type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:98\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\be_\bg_\ba_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs\n-static bool contains(const Type &item)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:100\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be\n-A set combining two other sets.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn enumset.hh:111\n+2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n+3// Will be removed after the 2.7 release\n+4#warning \"Deprecated header, use #include instead!\"\n+5#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides MPI's collective communication\n+methods.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00047.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00047.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: overloadset.hh File Reference\n+dune-common: mpipack.hh File Reference\n \n \n \n \n \n \n \n@@ -65,47 +65,52 @@\n
    \n \n \n \n \n \n \n
    \n \n-
    overloadset.hh File Reference
    \n+Classes |\n+Namespaces
    \n+
    mpipack.hh File Reference
    \n \n
    \n-
    #include <utility>
    \n-#include <type_traits>
    \n-#include <dune/common/typetraits.hh>
    \n+\n+

    See MPI_Pack. \n+More...

    \n+
    #include <type_traits>
    \n+#include <vector>
    \n+#include <mpi.h>
    \n+#include <dune/common/parallel/mpicommunication.hh>
    \n+#include <dune/common/parallel/mpidata.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+

    \n+Classes

    class  Dune::MPIPack
     
    struct  Dune::MPIData< P, std::enable_if_t< std::is_same< std::remove_const_t< P >, MPIPack >::value > >
     
    \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<class... F>
    auto Dune::overload (F &&... f)
     Create an overload set.
     
    template<class... F>
    auto Dune::orderedOverload (F &&... f)
     Create an ordered overload set.
     
    \n-
    \n+

    Detailed Description

    \n+

    See MPI_Pack.

    \n+

    This Wrapper class takes care of the memory management and provides methods to pack and unpack objects. All objects that can be used for MPI communication can also be packed and unpacked to/from MPIPack.

    \n+
    Author
    Nils-Arne Dreier
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,27 +1,36 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-overloadset.hh File Reference\n-#include \n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+mpipack.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+See MPI_Pack. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bd_\ba_\bt_\ba_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<\n+ _\bP_\b _\b>_\b,_\b _\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bv_\be_\br_\bl_\bo_\ba_\bd (F &&... f)\n-\u00a0 Create an overload set.\n-\u00a0\n-template\n-auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\br_\bd_\be_\br_\be_\bd_\bO_\bv_\be_\br_\bl_\bo_\ba_\bd (F &&... f)\n-\u00a0 Create an ordered overload set.\n-\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+See MPI_Pack.\n+This Wrapper class takes care of the memory management and provides methods to\n+pack and unpack objects. All objects that can be used for MPI communication can\n+also be packed and unpacked to/from MPIPack.\n+ Author\n+ Nils-Arne Dreier\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00047_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00047_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: overloadset.hh Source File\n+dune-common: mpipack.hh Source File\n \n \n \n \n \n \n \n@@ -70,143 +70,287 @@\n \n \n \n \n \n \n \n
    \n-
    overloadset.hh
    \n+
    mpipack.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_OVERLOADSET_HH
    \n-
    6#define DUNE_COMMON_OVERLOADSET_HH
    \n-
    7
    \n-
    8#include <utility>
    \n-
    9#include <type_traits>
    \n-\n-
    11
    \n-
    12namespace Dune {
    \n-
    13
    \n-
    14namespace Impl {
    \n-
    15
    \n-
    16 template<typename... F>
    \n-
    17 class OverloadSet
    \n-
    18 : public F...
    \n-
    19 {
    \n-
    20
    \n-
    21 public:
    \n+
    20#ifndef DUNE_COMMON_PARALLEL_MPIPACK_HH
    \n+
    21#define DUNE_COMMON_PARALLEL_MPIPACK_HH
    \n
    22
    \n-
    23 template<typename... FF>
    \n-
    24 OverloadSet(FF&&... ff)
    \n-
    25 : F(std::forward<FF>(ff))...
    \n-
    26 {}
    \n+
    23#if HAVE_MPI
    \n+
    24
    \n+
    25#include <type_traits>
    \n+
    26#include <vector>
    \n
    27
    \n-
    28 using F::operator()...;
    \n+
    28#include <mpi.h>
    \n
    29
    \n-
    30 };
    \n-
    31
    \n-
    32} // end namespace Impl
    \n+\n+\n+
    32
    \n
    33
    \n-
    34
    \n+
    34namespace Dune {
    \n
    35
    \n-
    60template<class... F>
    \n-
    \n-
    61auto overload(F&&... f)
    \n-
    62{
    \n-
    63 return Impl::OverloadSet<std::decay_t<F>...>(std::forward<F>(f)...);
    \n-
    64}
    \n-
    \n-
    65
    \n-
    66
    \n-
    67
    \n-
    68namespace Impl {
    \n-
    69
    \n-
    70 template<class F0, class... F>
    \n-
    71 class OrderedOverloadSet: public OrderedOverloadSet<F...>, F0
    \n-
    72 {
    \n-
    73 using Base = OrderedOverloadSet<F...>;
    \n-
    74 public:
    \n-
    75
    \n-
    76 template<class FF0, class... FF>
    \n-
    77 OrderedOverloadSet(FF0&& f0, FF&&... ff) :
    \n-
    78 Base(std::forward<FF>(ff)...),
    \n-
    79 F0(std::forward<FF0>(f0))
    \n-
    80 {}
    \n-
    81
    \n-
    82 // Forward to operator() of F0 if it can be called with the given arguments.
    \n-
    83 template<class... Args,
    \n-
    84 std::enable_if_t<IsCallable<F0(Args&&...)>::value, int> = 0>
    \n-
    85 decltype(auto) operator()(Args&&... args)
    \n-
    86 {
    \n-
    87 return F0::operator()(std::forward<Args>(args)...);
    \n-
    88 }
    \n-
    89
    \n-
    90 // Forward to operator() of base class if F0 cannot be called with the given
    \n-
    91 // arguments. In this case the base class will successively try operator()
    \n-
    92 // of all F... .
    \n-
    93 template<class... Args,
    \n-
    94 std::enable_if_t<not IsCallable<F0(Args&&...)>::value, int> = 0>
    \n-
    95 decltype(auto) operator()(Args&&... args)
    \n-
    96 {
    \n-
    97 return Base::operator()(std::forward<Args>(args)...);
    \n-
    98 }
    \n-
    99
    \n-
    100 };
    \n-
    101
    \n-
    102 template<class F0>
    \n-
    103 class OrderedOverloadSet<F0>: public F0
    \n-
    104 {
    \n-
    105 public:
    \n-
    106
    \n-
    107 template<class FF0>
    \n-
    108 OrderedOverloadSet(FF0&& f0) :
    \n-
    109 F0(std::forward<FF0>(f0))
    \n-
    110 {}
    \n-
    111
    \n-
    112 // Forward to operator() of F0. If it cannot be called with
    \n-
    113 // the given arguments a static assertion will fail.
    \n-
    114 template<class... Args>
    \n-
    115 decltype(auto) operator()(Args&&... args)
    \n-
    116 {
    \n-
    117 static_assert(IsCallable<F0(Args&&...)>::value,
    \n-
    118 "No matching overload found in OrderedOverloadSet");
    \n-
    119 return F0::operator()(std::forward<Args>(args)...);
    \n-
    120 }
    \n-
    121 };
    \n-
    122
    \n-
    123} // end namespace Impl
    \n-
    124
    \n-
    125
    \n-
    126
    \n-
    149template<class... F>
    \n-
    \n-
    150auto orderedOverload(F&&... f)
    \n-
    151{
    \n-
    152 return Impl::OrderedOverloadSet<std::decay_t<F>...>(std::forward<F>(f)...);
    \n-
    153}
    \n+
    \n+
    36 class MPIPack {
    \n+
    37 std::vector<char> _buffer;
    \n+
    38 int _position;
    \n+
    39 MPI_Comm _comm;
    \n+
    40
    \n+
    41 friend struct MPIData<MPIPack>;
    \n+
    42 friend struct MPIData<const MPIPack>;
    \n+
    43 public:
    \n+
    \n+
    44 MPIPack(Communication<MPI_Comm> comm, std::size_t size = 0)
    \n+
    45 : _buffer(size)
    \n+
    46 , _position(0)
    \n+
    47 , _comm(comm)
    \n+
    48 {}
    \n+
    \n+
    49
    \n+
    50 // Its not valid to copy a MPIPack but you can move it
    \n+
    51 MPIPack(const MPIPack&) = delete;
    \n+
    52 MPIPack& operator = (const MPIPack& other) = delete;
    \n+
    53 MPIPack(MPIPack&&) = default;
    \n+
    54 MPIPack& operator = (MPIPack&& other) = default;
    \n+
    55
    \n+
    61 template<class T>
    \n+
    \n+
    62 void pack(const T& data){
    \n+
    63 auto mpidata = getMPIData(data);
    \n+
    64 int size = getPackSize(mpidata.size(), _comm, mpidata.type());
    \n+
    65 constexpr bool has_static_size = decltype(getMPIData(std::declval<T&>()))::static_size;
    \n+
    66 if(!has_static_size)
    \n+
    67 size += getPackSize(1, _comm, MPI_INT);
    \n+
    68 if (_position + size > 0 && size_t(_position + size) > _buffer.size()) // resize buffer if necessary
    \n+
    69 _buffer.resize(_position + size);
    \n+
    70 if(!has_static_size){
    \n+
    71 int size = mpidata.size();
    \n+
    72 MPI_Pack(&size, 1, MPI_INT, _buffer.data(), _buffer.size(),
    \n+
    73 &_position, _comm);
    \n+
    74 }
    \n+
    75 MPI_Pack(mpidata.ptr(), mpidata.size(),
    \n+
    76 mpidata.type(), _buffer.data(), _buffer.size(),
    \n+
    77 &_position, _comm);
    \n+
    78 }
    \n+
    \n+
    79
    \n+
    84 template<class T>
    \n+
    \n+
    85 auto /*void*/ unpack(T& data)
    \n+
    86 -> std::enable_if_t<decltype(getMPIData(data))::static_size, void>
    \n+
    87 {
    \n+
    88 auto mpidata = getMPIData(data);
    \n+
    89 MPI_Unpack(_buffer.data(), _buffer.size(), &_position,
    \n+
    90 mpidata.ptr(), mpidata.size(),
    \n+
    91 mpidata.type(), _comm);
    \n+
    92 }
    \n+
    \n+
    93
    \n+
    98 template<class T>
    \n+
    \n+
    99 auto /*void*/ unpack(T& data)
    \n+
    100 -> std::enable_if_t<!decltype(getMPIData(data))::static_size, void>
    \n+
    101 {
    \n+
    102 auto mpidata = getMPIData(data);
    \n+
    103 int size = 0;
    \n+
    104 MPI_Unpack(_buffer.data(), _buffer.size(), &_position,
    \n+
    105 &size, 1,
    \n+
    106 MPI_INT, _comm);
    \n+
    107 mpidata.resize(size);
    \n+
    108 MPI_Unpack(_buffer.data(), _buffer.size(), &_position,
    \n+
    109 mpidata.ptr(), mpidata.size(),
    \n+
    110 mpidata.type(), _comm);
    \n+
    111 }
    \n+
    \n+
    112
    \n+
    113
    \n+
    115 template<typename T>
    \n+
    \n+
    116 friend MPIPack& operator << (MPIPack& p, const T& t){
    \n+
    117 p.pack(t);
    \n+
    118 return p;
    \n+
    119 }
    \n+
    \n+
    120
    \n+
    122 template<typename T>
    \n+
    \n+
    123 friend MPIPack& operator >> (MPIPack& p, T& t){
    \n+
    124 p.unpack(t);
    \n+
    125 return p;
    \n+
    126 }
    \n+
    \n+
    127
    \n+
    129 template<typename T>
    \n+
    \n+
    130 MPIPack& read(T& t){
    \n+
    131 unpack(t);
    \n+
    132 return *this;
    \n+
    133 }
    \n+
    \n+
    134
    \n+
    136 template<typename T>
    \n+
    \n+
    137 MPIPack& write(const T& t){
    \n+
    138 pack(t);
    \n+
    139 return *this;
    \n+
    140 }
    \n+
    \n+
    141
    \n+
    \n+
    145 void resize(size_t size){
    \n+
    146 _buffer.resize(size);
    \n+
    147 }
    \n+
    \n+
    148
    \n+
    \n+
    151 void enlarge(int s) {
    \n+
    152 _buffer.resize(_buffer.size() + s);
    \n+
    153 }
    \n
    \n
    154
    \n-
    155
    \n-
    156
    \n-
    157} // end namespace Dune
    \n-
    158
    \n-
    159#endif // DUNE_COMMON_OVERLOADSET_HH
    \n-
    Traits for type conversions and type information.
    \n-
    auto orderedOverload(F &&... f)
    Create an ordered overload set.
    Definition overloadset.hh:150
    \n-
    auto overload(F &&... f)
    Create an overload set.
    Definition overloadset.hh:61
    \n+
    \n+
    157 size_t size() const {
    \n+
    158 return _buffer.size();
    \n+
    159 }
    \n+
    \n+
    160
    \n+
    \n+
    164 void seek(int p){
    \n+
    165 _position = p;
    \n+
    166 }
    \n+
    \n+
    167
    \n+
    \n+
    171 int tell() const{
    \n+
    172 return _position;
    \n+
    173 }
    \n+
    \n+
    174
    \n+
    \n+
    177 bool eof() const{
    \n+
    178 return std::size_t(_position)==_buffer.size();
    \n+
    179 }
    \n+
    \n+
    180
    \n+
    \n+
    184 static int getPackSize(int len, const MPI_Comm& comm, const MPI_Datatype& dt){
    \n+
    185 int size;
    \n+
    186 MPI_Pack_size(len, dt, comm, &size);
    \n+
    187 return size;
    \n+
    188 }
    \n+
    \n+
    189
    \n+
    \n+
    190 friend bool operator==(const MPIPack& a, const MPIPack& b) {
    \n+
    191 return a._buffer == b._buffer && a._comm == b._comm;
    \n+
    192 }
    \n+
    \n+
    \n+
    193 friend bool operator!=(const MPIPack& a, const MPIPack& b) {
    \n+
    194 return !(a==b);
    \n+
    195 }
    \n+
    \n+
    196
    \n+
    197 };
    \n+
    \n+
    198
    \n+
    199 template<class P>
    \n+
    \n+
    200 struct MPIData<P, std::enable_if_t<std::is_same<std::remove_const_t<P>, MPIPack>::value>> {
    \n+
    201 protected:
    \n+
    202 friend auto getMPIData<P>(P& t);
    \n+
    \n+
    203 MPIData(P& t) :
    \n+
    204 data_(t)
    \n+
    205 {}
    \n+
    \n+
    206 public:
    \n+
    207 static constexpr bool static_size = std::is_const<P>::value;
    \n+
    208
    \n+
    \n+
    209 void* ptr() {
    \n+
    210 return (void*) data_._buffer.data();
    \n+
    211 }
    \n+
    \n+
    212
    \n+
    \n+
    213 int size() {
    \n+
    214 return data_.size();
    \n+
    215 }
    \n+
    \n+
    216
    \n+
    \n+
    217 MPI_Datatype type() const{
    \n+
    218 return MPI_PACKED;
    \n+
    219 }
    \n+
    \n+
    220
    \n+
    \n+
    221 void resize(int size){
    \n+
    222 data_.resize(size);
    \n+
    223 }
    \n+
    \n+
    224 protected:
    \n+\n+
    226 };
    \n+
    \n+
    227
    \n+
    228} // end namespace Dune
    \n+
    229
    \n+
    230#endif // HAVE_MPI
    \n+
    231#endif // DUNE_COMMON_PARALLEL_MPIPACK_HH
    \n+
    Interface class to translate objects to a MPI_Datatype, void* and size used for MPI calls.
    \n+
    Implements an utility class that provides MPI's collective communication methods.
    \n
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n+
    auto getMPIData(T &t)
    Definition mpidata.hh:44
    \n+
    Collective communication interface and sequential default implementation.
    Definition communication.hh:100
    \n+
    Definition mpidata.hh:51
    \n+
    T & data_
    Definition mpidata.hh:54
    \n+
    int size() const
    Definition mpidata.hh:68
    \n+
    static constexpr bool static_size
    Definition mpidata.hh:66
    \n+
    Definition mpipack.hh:36
    \n+
    void enlarge(int s)
    Enlarges the internal buffer.
    Definition mpipack.hh:151
    \n+
    friend MPIPack & operator>>(MPIPack &p, T &t)
    Unpacks data from the object.
    Definition mpipack.hh:123
    \n+
    friend MPIPack & operator<<(MPIPack &p, const T &t)
    Packs the data into the object. Enlarges the internal buffer if necessary.
    Definition mpipack.hh:116
    \n+
    friend bool operator!=(const MPIPack &a, const MPIPack &b)
    Definition mpipack.hh:193
    \n+
    size_t size() const
    Returns the size of the internal buffer.
    Definition mpipack.hh:157
    \n+
    MPIPack & operator=(const MPIPack &other)=delete
    \n+
    MPIPack(Communication< MPI_Comm > comm, std::size_t size=0)
    Definition mpipack.hh:44
    \n+
    void pack(const T &data)
    Packs the data into the object. Enlarges the internal buffer if necessary.
    Definition mpipack.hh:62
    \n+
    auto unpack(T &data) -> std::enable_if_t<!decltype(getMPIData(data))::static_size, void >
    Unpacks data from the object.
    Definition mpipack.hh:99
    \n+
    auto unpack(T &data) -> std::enable_if_t< decltype(getMPIData(data))::static_size, void >
    Unpacks data from the object.
    Definition mpipack.hh:85
    \n+
    friend bool operator==(const MPIPack &a, const MPIPack &b)
    Definition mpipack.hh:190
    \n+
    MPIPack(const MPIPack &)=delete
    \n+
    void seek(int p)
    Sets the position in the buffer where the next pack/unpack operation should take place.
    Definition mpipack.hh:164
    \n+
    bool eof() const
    Checks whether the end of the buffer is reached.
    Definition mpipack.hh:177
    \n+
    void resize(size_t size)
    Resizes the internal buffer.
    Definition mpipack.hh:145
    \n+
    int tell() const
    Gets the position in the buffer where the next pack/unpack operation should take place.
    Definition mpipack.hh:171
    \n+
    MPIPack(MPIPack &&)=default
    \n+
    MPIPack & read(T &t)
    Unpacks data from the object.
    Definition mpipack.hh:130
    \n+
    static int getPackSize(int len, const MPI_Comm &comm, const MPI_Datatype &dt)
    Returns the size of the data needed to store the data in an MPIPack. See MPI_Pack_size.
    Definition mpipack.hh:184
    \n+
    MPIPack & write(const T &t)
    Packs the data into the object. Enlarges the internal buffer if necessary.
    Definition mpipack.hh:137
    \n+\n+\n+\n+\n+\n+\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,139 +1,327 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-overloadset.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpipack.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_OVERLOADSET_HH\n-6#define DUNE_COMMON_OVERLOADSET_HH\n-7\n-8#include \n-9#include \n-10#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-11\n-12namespace _\bD_\bu_\bn_\be {\n-13\n-14namespace Impl {\n-15\n-16 template\n-17 class OverloadSet\n-18 : public F...\n-19 {\n-20\n-21 public:\n+20#ifndef DUNE_COMMON_PARALLEL_MPIPACK_HH\n+21#define DUNE_COMMON_PARALLEL_MPIPACK_HH\n 22\n-23 template\n-24 OverloadSet(FF&&... ff)\n-25 : F(_\bs_\bt_\bd::forward(ff))...\n-26 {}\n+23#if HAVE_MPI\n+24\n+25#include \n+26#include \n 27\n-28 using F::operator()...;\n+28#include \n 29\n-30 };\n-31\n-32} // end namespace Impl\n+30#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+31#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bd_\ba_\bt_\ba_\b._\bh_\bh>\n+32\n 33\n-34\n+34namespace _\bD_\bu_\bn_\be {\n 35\n-60template\n-_\b6_\b1auto _\bo_\bv_\be_\br_\bl_\bo_\ba_\bd(F&&... f)\n-62{\n-63 return Impl::OverloadSet...>(std::forward(f)...);\n-64}\n-65\n-66\n-67\n-68namespace Impl {\n-69\n-70 template\n-71 class OrderedOverloadSet: public OrderedOverloadSet, F0\n-72 {\n-73 using Base = OrderedOverloadSet;\n-74 public:\n-75\n-76 template\n-77 OrderedOverloadSet(FF0&& f0, FF&&... ff) :\n-78 Base(_\bs_\bt_\bd::forward(ff)...),\n-79 F0(_\bs_\bt_\bd::forward(f0))\n-80 {}\n-81\n-82 // Forward to operator() of F0 if it can be called with the given arguments.\n-83 template::value, int> = 0>\n-85 decltype(auto) operator()(Args&&... args)\n-86 {\n-87 return F0::operator()(std::forward(args)...);\n-88 }\n-89\n-90 // Forward to operator() of base class if F0 cannot be called with the given\n-91 // arguments. In this case the base class will successively try operator()\n-92 // of all F... .\n-93 template::value, int> = 0>\n-95 decltype(auto) operator()(Args&&... args)\n-96 {\n-97 return Base::operator()(std::forward(args)...);\n-98 }\n-99\n-100 };\n-101\n-102 template\n-103 class OrderedOverloadSet: public F0\n-104 {\n-105 public:\n-106\n-107 template\n-108 OrderedOverloadSet(FF0&& f0) :\n-109 F0(_\bs_\bt_\bd::forward(f0))\n-110 {}\n-111\n-112 // Forward to operator() of F0. If it cannot be called with\n-113 // the given arguments a static assertion will fail.\n-114 template\n-115 decltype(auto) operator()(Args&&... args)\n-116 {\n-117 static_assert(IsCallable::value,\n-118 \"No matching overload found in OrderedOverloadSet\");\n-119 return F0::operator()(std::forward(args)...);\n-120 }\n-121 };\n-122\n-123} // end namespace Impl\n-124\n-125\n-126\n-149template\n-_\b1_\b5_\b0auto _\bo_\br_\bd_\be_\br_\be_\bd_\bO_\bv_\be_\br_\bl_\bo_\ba_\bd(F&&... f)\n-151{\n-152 return Impl::OrderedOverloadSet...>(std::forward(f)...);\n-153}\n+_\b3_\b6 class _\bM_\bP_\bI_\bP_\ba_\bc_\bk {\n+37 std::vector _buffer;\n+38 int _position;\n+_\b3_\b9 MPI_Comm _comm;\n+40\n+41 friend struct _\bM_\bP_\bI_\bD_\ba_\bt_\ba<_\bM_\bP_\bI_\bP_\ba_\bc_\bk>;\n+42 friend struct _\bM_\bP_\bI_\bD_\ba_\bt_\ba;\n+43 public:\n+_\b4_\b4 _\bM_\bP_\bI_\bP_\ba_\bc_\bk(_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bM_\bP_\bI_\b__\bC_\bo_\bm_\bm_\b> comm, std::size_t _\bs_\bi_\bz_\be = 0)\n+45 : _buffer(_\bs_\bi_\bz_\be)\n+46 , _position(0)\n+47 , _comm(comm)\n+48 {}\n+49\n+50 // Its not valid to copy a MPIPack but you can move it\n+_\b5_\b1 _\bM_\bP_\bI_\bP_\ba_\bc_\bk(const _\bM_\bP_\bI_\bP_\ba_\bc_\bk&) = delete;\n+_\b5_\b2 _\bM_\bP_\bI_\bP_\ba_\bc_\bk& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b=_\b (const _\bM_\bP_\bI_\bP_\ba_\bc_\bk& other) = delete;\n+_\b5_\b3 _\bM_\bP_\bI_\bP_\ba_\bc_\bk(_\bM_\bP_\bI_\bP_\ba_\bc_\bk&&) = default;\n+_\b5_\b4 _\bM_\bP_\bI_\bP_\ba_\bc_\bk& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b=_\b (_\bM_\bP_\bI_\bP_\ba_\bc_\bk&& other) = default;\n+55\n+61 template\n+_\b6_\b2 void _\bp_\ba_\bc_\bk(const T& data){\n+63 auto mpidata = _\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(data);\n+64 int _\bs_\bi_\bz_\be = _\bg_\be_\bt_\bP_\ba_\bc_\bk_\bS_\bi_\bz_\be(mpidata.size(), _comm, mpidata.type());\n+65 constexpr bool has_static_size = decltype(_\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(std::declval()))::\n+static_size;\n+66 if(!has_static_size)\n+67 _\bs_\bi_\bz_\be += _\bg_\be_\bt_\bP_\ba_\bc_\bk_\bS_\bi_\bz_\be(1, _comm, MPI_INT);\n+68 if (_position + _\bs_\bi_\bz_\be > 0 && size_t(_position + _\bs_\bi_\bz_\be) > _buffer.size()) /\n+/ resize buffer if necessary\n+69 _buffer.resize(_position + _\bs_\bi_\bz_\be);\n+70 if(!has_static_size){\n+71 int _\bs_\bi_\bz_\be = mpidata.size();\n+72 MPI_Pack(&_\bs_\bi_\bz_\be, 1, MPI_INT, _buffer.data(), _buffer.size(),\n+73 &_position, _comm);\n+74 }\n+75 MPI_Pack(mpidata.ptr(), mpidata.size(),\n+76 mpidata.type(), _buffer.data(), _buffer.size(),\n+77 &_position, _comm);\n+78 }\n+79\n+84 template\n+_\b8_\b5 auto /*void*/ _\bu_\bn_\bp_\ba_\bc_\bk(T& data)\n+86 -> std::enable_if_t\n+87 {\n+88 auto mpidata = _\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(data);\n+89 MPI_Unpack(_buffer.data(), _buffer.size(), &_position,\n+90 mpidata.ptr(), mpidata.size(),\n+91 mpidata.type(), _comm);\n+92 }\n+93\n+98 template\n+_\b9_\b9 auto /*void*/ _\bu_\bn_\bp_\ba_\bc_\bk(T& data)\n+100 -> std::enable_if_t\n+101 {\n+102 auto mpidata = _\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(data);\n+103 int _\bs_\bi_\bz_\be = 0;\n+104 MPI_Unpack(_buffer.data(), _buffer.size(), &_position,\n+105 &_\bs_\bi_\bz_\be, 1,\n+106 MPI_INT, _comm);\n+107 mpidata.resize(_\bs_\bi_\bz_\be);\n+108 MPI_Unpack(_buffer.data(), _buffer.size(), &_position,\n+109 mpidata.ptr(), mpidata.size(),\n+110 mpidata.type(), _comm);\n+111 }\n+112\n+113\n+115 template\n+_\b1_\b1_\b6 friend _\bM_\bP_\bI_\bP_\ba_\bc_\bk& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b<_\b<_\b (_\bM_\bP_\bI_\bP_\ba_\bc_\bk& p, const T& t){\n+117 p._\bp_\ba_\bc_\bk(t);\n+118 return p;\n+119 }\n+120\n+122 template\n+_\b1_\b2_\b3 friend _\bM_\bP_\bI_\bP_\ba_\bc_\bk& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>_\b>_\b (_\bM_\bP_\bI_\bP_\ba_\bc_\bk& p, T& t){\n+124 p._\bu_\bn_\bp_\ba_\bc_\bk(t);\n+125 return p;\n+126 }\n+127\n+129 template\n+_\b1_\b3_\b0 _\bM_\bP_\bI_\bP_\ba_\bc_\bk& _\br_\be_\ba_\bd(T& t){\n+131 _\bu_\bn_\bp_\ba_\bc_\bk(t);\n+132 return *this;\n+133 }\n+134\n+136 template\n+_\b1_\b3_\b7 _\bM_\bP_\bI_\bP_\ba_\bc_\bk& _\bw_\br_\bi_\bt_\be(const T& t){\n+138 _\bp_\ba_\bc_\bk(t);\n+139 return *this;\n+140 }\n+141\n+_\b1_\b4_\b5 void _\br_\be_\bs_\bi_\bz_\be(size_t _\bs_\bi_\bz_\be){\n+146 _buffer.resize(_\bs_\bi_\bz_\be);\n+147 }\n+148\n+_\b1_\b5_\b1 void _\be_\bn_\bl_\ba_\br_\bg_\be(int s) {\n+152 _buffer.resize(_buffer.size() + s);\n+153 }\n 154\n-155\n-156\n-157} // end namespace Dune\n-158\n-159#endif // DUNE_COMMON_OVERLOADSET_HH\n-_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Traits for type conversions and type information.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\br_\bd_\be_\br_\be_\bd_\bO_\bv_\be_\br_\bl_\bo_\ba_\bd\n-auto orderedOverload(F &&... f)\n-Create an ordered overload set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overloadset.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bv_\be_\br_\bl_\bo_\ba_\bd\n-auto overload(F &&... f)\n-Create an overload set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overloadset.hh:61\n+_\b1_\b5_\b7 size_t _\bs_\bi_\bz_\be() const {\n+158 return _buffer.size();\n+159 }\n+160\n+_\b1_\b6_\b4 void _\bs_\be_\be_\bk(int p){\n+165 _position = p;\n+166 }\n+167\n+_\b1_\b7_\b1 int _\bt_\be_\bl_\bl() const{\n+172 return _position;\n+173 }\n+174\n+_\b1_\b7_\b7 bool _\be_\bo_\bf() const{\n+178 return std::size_t(_position)==_buffer.size();\n+179 }\n+180\n+_\b1_\b8_\b4 static int _\bg_\be_\bt_\bP_\ba_\bc_\bk_\bS_\bi_\bz_\be(int len, const MPI_Comm& comm, const MPI_Datatype&\n+dt){\n+185 int _\bs_\bi_\bz_\be;\n+186 MPI_Pack_size(len, dt, comm, &_\bs_\bi_\bz_\be);\n+187 return _\bs_\bi_\bz_\be;\n+188 }\n+189\n+_\b1_\b9_\b0 friend bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bM_\bP_\bI_\bP_\ba_\bc_\bk& a, const _\bM_\bP_\bI_\bP_\ba_\bc_\bk& b) {\n+191 return a._buffer == b._buffer && a._comm == b._comm;\n+192 }\n+_\b1_\b9_\b3 friend bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bM_\bP_\bI_\bP_\ba_\bc_\bk& a, const _\bM_\bP_\bI_\bP_\ba_\bc_\bk& b) {\n+194 return !(a==b);\n+195 }\n+196\n+197 };\n+198\n+199 template\n+_\b2_\b0_\b0 struct _\bM_\bP_\bI_\bD_\ba_\bt_\ba,\n+MPIPack>::value>> {\n+201 protected:\n+_\b2_\b0_\b2 friend auto getMPIData

    (P& t);\n+_\b2_\b0_\b3 _\bM_\bP_\bI_\bD_\ba_\bt_\ba(P& t) :\n+204 _\bd_\ba_\bt_\ba_\b_(t)\n+205 {}\n+206 public:\n+_\b2_\b0_\b7 static constexpr bool _\bs_\bt_\ba_\bt_\bi_\bc_\b__\bs_\bi_\bz_\be = std::is_const

    ::value;\n+208\n+_\b2_\b0_\b9 void* _\bp_\bt_\br() {\n+210 return (void*) _\bd_\ba_\bt_\ba_\b_._buffer.data();\n+211 }\n+212\n+_\b2_\b1_\b3 int _\bs_\bi_\bz_\be() {\n+214 return _\bd_\ba_\bt_\ba_\b_.size();\n+215 }\n+216\n+_\b2_\b1_\b7 MPI_Datatype _\bt_\by_\bp_\be() const{\n+218 return MPI_PACKED;\n+219 }\n+220\n+_\b2_\b2_\b1 void _\br_\be_\bs_\bi_\bz_\be(int _\bs_\bi_\bz_\be){\n+222 _\bd_\ba_\bt_\ba_\b_.resize(_\bs_\bi_\bz_\be);\n+223 }\n+224 protected:\n+_\b2_\b2_\b5 P& _\bd_\ba_\bt_\ba_\b_;\n+226 };\n+227\n+228} // end namespace Dune\n+229\n+230#endif // HAVE_MPI\n+231#endif // DUNE_COMMON_PARALLEL_MPIPACK_HH\n+_\bm_\bp_\bi_\bd_\ba_\bt_\ba_\b._\bh_\bh\n+Interface class to translate objects to a MPI_Datatype, void* and size used for\n+MPI calls.\n+_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides MPI's collective communication\n+methods.\n _\bs_\bt_\bd\n STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba\n+auto getMPIData(T &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpidata.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Collective communication interface and sequential default implementation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpidata.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b:_\b:_\bd_\ba_\bt_\ba_\b_\n+T & data_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpidata.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b:_\b:_\bs_\bi_\bz_\be\n+int size() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpidata.hh:68\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b:_\b:_\bs_\bt_\ba_\bt_\bi_\bc_\b__\bs_\bi_\bz_\be\n+static constexpr bool static_size\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpidata.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\be_\bn_\bl_\ba_\br_\bg_\be\n+void enlarge(int s)\n+Enlarges the internal buffer.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+friend MPIPack & operator>>(MPIPack &p, T &t)\n+Unpacks data from the object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:123\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+friend MPIPack & operator<<(MPIPack &p, const T &t)\n+Packs the data into the object. Enlarges the internal buffer if necessary.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+friend bool operator!=(const MPIPack &a, const MPIPack &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:193\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\bi_\bz_\be\n+size_t size() const\n+Returns the size of the internal buffer.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:157\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+MPIPack & operator=(const MPIPack &other)=delete\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk\n+MPIPack(Communication< MPI_Comm > comm, std::size_t size=0)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bp_\ba_\bc_\bk\n+void pack(const T &data)\n+Packs the data into the object. Enlarges the internal buffer if necessary.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:62\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bu_\bn_\bp_\ba_\bc_\bk\n+auto unpack(T &data) -> std::enable_if_t\n+Unpacks data from the object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bu_\bn_\bp_\ba_\bc_\bk\n+auto unpack(T &data) -> std::enable_if_t< decltype(getMPIData(data))::\n+static_size, void >\n+Unpacks data from the object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:85\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+friend bool operator==(const MPIPack &a, const MPIPack &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk\n+MPIPack(const MPIPack &)=delete\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\be_\bk\n+void seek(int p)\n+Sets the position in the buffer where the next pack/unpack operation should\n+take place.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:164\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\be_\bo_\bf\n+bool eof() const\n+Checks whether the end of the buffer is reached.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:177\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_t size)\n+Resizes the internal buffer.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:145\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bt_\be_\bl_\bl\n+int tell() const\n+Gets the position in the buffer where the next pack/unpack operation should\n+take place.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:171\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk\n+MPIPack(MPIPack &&)=default\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\br_\be_\ba_\bd\n+MPIPack & read(T &t)\n+Unpacks data from the object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:130\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bg_\be_\bt_\bP_\ba_\bc_\bk_\bS_\bi_\bz_\be\n+static int getPackSize(int len, const MPI_Comm &comm, const MPI_Datatype &dt)\n+Returns the size of the data needed to store the data in an MPIPack. See\n+MPI_Pack_size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b:_\b:_\bw_\br_\bi_\bt_\be\n+MPIPack & write(const T &t)\n+Packs the data into the object. Enlarges the internal buffer if necessary.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<_\b _\bP_\b _\b>_\b,\n+_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+MPI_Datatype type() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:217\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<_\b _\bP_\b _\b>_\b,\n+_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba\n+MPIData(P &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<_\b _\bP_\b _\b>_\b,\n+_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be\n+int size()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:213\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<_\b _\bP_\b _\b>_\b,\n+_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>_\b:_\b:_\bp_\bt_\br\n+void * ptr()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:209\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<_\b _\bP_\b _\b>_\b,\n+_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>_\b:_\b:_\bd_\ba_\bt_\ba_\b_\n+P & data_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:225\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bP_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bo_\bn_\bs_\bt_\b__\bt_\b<_\b _\bP_\b _\b>_\b,\n+_\bM_\bP_\bI_\bP_\ba_\bc_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(int size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpipack.hh:221\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00050.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00050.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: stdstreams.hh File Reference\n+dune-common: future.hh File Reference\n \n \n \n \n \n \n \n@@ -65,90 +65,50 @@\n

    \n \n \n \n \n \n \n
    \n \n-
    stdstreams.hh File Reference
    \n+Classes |\n+Namespaces
    \n+
    future.hh File Reference
    \n \n
    \n-\n-

    Standard Dune debug streams. \n-More...

    \n-
    #include <dune-common-config.hh>
    \n-#include "debugstream.hh"
    \n+
    #include <memory>
    \n+#include <type_traits>
    \n+#include <dune/common/exceptions.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    class  Dune::InvalidFutureException
     This exception is thrown when ready(), wait() or get() is called on an invalid future. A future is valid until get() is called and if it is not default-constructed and it was not moved from. More...
     
    class  Dune::Future< T >
     Type-erasure for future-like objects. A future-like object is a object satisfying the interface of FutureBase. More...
     
    class  Dune::PseudoFuture< T >
     A wrapper-class for a object which is ready immediately. More...
     
    class  Dune::PseudoFuture< void >
     
    \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n-

    \n-Macros

    #define DUNE_MINIMAL_DEBUG_LEVEL   4
     The default minimum debug level.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Typedefs

    typedef DebugStream< VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVELDune::DVVerbType
     Type of very verbose debug stream.
     
    typedef DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVELDune::DVerbType
     Type of more verbose debug stream.
     
    typedef DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVELDune::DInfoType
     Type of debug stream with info level.
     
    typedef DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVELDune::DWarnType
     Type of debug stream with warn level.
     
    typedef DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVELDune::DGraveType
     Type of debug stream for fatal errors.
     
    typedef DebugStream< 1 > Dune::DErrType
     The type of the stream used for error messages.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Variables

    static const DebugLevel Dune::MINIMAL_DEBUG_LEVEL = DUNE_MINIMAL_DEBUG_LEVEL
     
    static const DebugLevel Dune::VERY_VERBOSE_DEBUG_LEVEL = 1
     The level of the very verbose debug stream.
     
    static const DebugLevel Dune::VERBOSE_DEBUG_LEVEL = 2
     The level of the verbose debug stream.
     
    static const DebugLevel Dune::INFO_DEBUG_LEVEL = 3
     The level of the informative debug stream.
     
    static const DebugLevel Dune::WARN_DEBUG_LEVEL = 4
     The level of the debug stream for warnings.
     
    static const DebugLevel Dune::GRAVE_DEBUG_LEVEL = 5
     The level of the debug stream for fatal errors.
     
    \n-

    Detailed Description

    \n-

    Standard Dune debug streams.

    \n-

    The standard debug streams are compiled into libdune to exist globally. This file declares the stream types and the global debug level.

    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,71 +1,34 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n-stdstreams.hh File Reference\n-Standard _\bD_\bu_\bn_\be debug streams. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \"_\bd_\be_\bb_\bu_\bg_\bs_\bt_\br_\be_\ba_\bm_\b._\bh_\bh\"\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+future.hh File Reference\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0 _\bD_\bu_\bn_\be namespace.\n-\u00a0\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\u00a0\u00a0\u00a04\n-\u00a0 The default minimum debug level.\n-\u00a0\n-T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n- typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm<\n- _\bV_\bE_\bR_\bY_\b__\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL,\n- _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bV_\bV_\be_\br_\bb_\bT_\by_\bp_\be\n-\u00a0 Type of very verbose debug stream.\n-\u00a0\n- typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm<\n-_\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL, _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n- >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bV_\be_\br_\bb_\bT_\by_\bp_\be\n-\u00a0 Type of more verbose debug stream.\n-\u00a0\n- typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm< _\bI_\bN_\bF_\bO_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL,\n- _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be\n-\u00a0 Type of debug stream with info level.\n-\u00a0\n- typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm< _\bW_\bA_\bR_\bN_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL,\n- _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bW_\ba_\br_\bn_\bT_\by_\bp_\be\n-\u00a0 Type of debug stream with warn level.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n+ This exception is thrown when ready(), wait() or _\bg_\be_\bt_\b(_\b) is called on an\n+\u00a0 invalid future. A future is valid until _\bg_\be_\bt_\b(_\b) is called and if it is\n+ not default-constructed and it was not moved from. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 Type-erasure for future-like objects. A future-like object is a object\n+ satisfying the interface of FutureBase. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm< _\bG_\bR_\bA_\bV_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL,\n- _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bG_\br_\ba_\bv_\be_\bT_\by_\bp_\be\n-\u00a0 Type of debug stream for fatal errors.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 A wrapper-class for a object which is ready immediately. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm< 1 >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bE_\br_\br_\bT_\by_\bp_\be\n-\u00a0 The type of the stream used for error\n- messages.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>\n \u00a0\n-V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n-static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = _\bD_\bU_\bN_\bE_\b__\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-\u00a0\n-static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\bE_\bR_\bY_\b__\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 1\n-\u00a0 The level of the very verbose debug stream.\n-\u00a0\n-static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 2\n-\u00a0 The level of the verbose debug stream.\n-\u00a0\n-static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bN_\bF_\bO_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 3\n-\u00a0 The level of the informative debug stream.\n-\u00a0\n-static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bW_\bA_\bR_\bN_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 4\n-\u00a0 The level of the debug stream for warnings.\n-\u00a0\n-static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\bR_\bA_\bV_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 5\n-\u00a0 The level of the debug stream for fatal errors.\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n+\u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Standard _\bD_\bu_\bn_\be debug streams.\n-The standard debug streams are compiled into libdune to exist globally. This\n-file declares the stream types and the global debug level.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00050_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00050_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: stdstreams.hh Source File\n+dune-common: future.hh Source File\n \n \n \n \n \n \n \n@@ -70,99 +70,256 @@\n \n \n \n \n \n \n \n
    \n-
    stdstreams.hh
    \n+
    future.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5
    \n-
    15#ifndef DUNE_COMMON_STDSTREAMS_HH
    \n-
    16#define DUNE_COMMON_STDSTREAMS_HH
    \n-
    17
    \n-
    18#include <dune-common-config.hh> // DUNE_MINIMAL_DEBUG_LEVEL
    \n-
    19#include "debugstream.hh"
    \n-
    20
    \n-
    21namespace Dune {
    \n-
    22
    \n-
    67#ifndef DUNE_MINIMAL_DEBUG_LEVEL
    \n-
    68#define DUNE_MINIMAL_DEBUG_LEVEL 4
    \n-
    69#endif
    \n-\n+
    5#ifndef DUNE_COMMON_PARALLEL_FUTURE_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_FUTURE_HH
    \n+
    7
    \n+
    8#include <memory>
    \n+
    9#include <type_traits>
    \n+
    10
    \n+\n+
    12
    \n+
    13namespace Dune{
    \n+
    14
    \n+
    \n+\n+
    20 {};
    \n+
    \n+
    21
    \n+
    22 // forward declaration
    \n+
    23 template<class T>
    \n+
    24 class PseudoFuture;
    \n+
    25
    \n+
    29 template<class T>
    \n+
    \n+
    30 class Future{
    \n+
    31 // Future interface:
    \n+
    32 class FutureBase{
    \n+
    33 public:
    \n+
    34 virtual ~FutureBase() = default;
    \n+
    35 virtual void wait() = 0;
    \n+
    36 virtual bool ready() const = 0;
    \n+
    37 virtual bool valid() const = 0;
    \n+
    38 virtual T get() = 0;
    \n+
    39 };
    \n+
    40
    \n+
    41 // model class
    \n+
    42 template<class F>
    \n+
    43 class FutureModel
    \n+
    44 : public FutureBase
    \n+
    45 {
    \n+
    46 F _future;
    \n+
    47 public:
    \n+
    48 FutureModel(F&& f)
    \n+
    49 : _future(std::forward<F>(f))
    \n+
    50 {}
    \n+
    51
    \n+
    52 virtual void wait() override
    \n+
    53 {
    \n+
    54 _future.wait();
    \n+
    55 }
    \n+
    56
    \n+
    57 virtual bool ready() const override
    \n+
    58 {
    \n+
    59 return _future.ready();
    \n+
    60 }
    \n+
    61
    \n+
    62 virtual bool valid() const override
    \n+
    63 {
    \n+
    64 return _future.valid();
    \n+
    65 }
    \n+
    66
    \n+
    67 virtual T get() override{
    \n+
    68 return (T)_future.get();
    \n+
    69 }
    \n+
    70 };
    \n
    71
    \n-\n-
    77
    \n-\n+
    72 std::unique_ptr<FutureBase> _future;
    \n+
    73 public:
    \n+
    74 template<class F>
    \n+
    \n+
    75 Future(F&& f)
    \n+
    76 : _future(std::make_unique<FutureModel<F>>(std::forward<F>(f)))
    \n+
    77 {}
    \n+
    \n+
    78
    \n+
    79 template<class U, std::enable_if_t<std::is_same<U,T>::value && !std::is_same<T,void>::value>>
    \n+
    \n+
    80 Future(U&& data)
    \n+
    81 : _future(std::make_unique<FutureModel<PseudoFuture<T>>>(PseudoFuture<T>(std::forward<U>(data))))
    \n+
    82 {}
    \n+
    \n
    83
    \n-\n-
    97
    \n-\n-
    103
    \n-\n-
    109
    \n-\n-
    118
    \n-
    123 static const DebugLevel INFO_DEBUG_LEVEL = 3;
    \n-
    124
    \n-\n-
    130
    \n-\n+
    84 Future() = default;
    \n+
    85
    \n+
    \n+
    89 void wait(){
    \n+
    90 _future->wait();
    \n+
    91 }
    \n+
    \n+
    92
    \n+
    \n+
    97 T get() {
    \n+
    98 return _future->get();
    \n+
    99 }
    \n+
    \n+
    100
    \n+
    \n+
    105 bool ready() const {
    \n+
    106 return _future->ready();
    \n+
    107 }
    \n+
    \n+
    108
    \n+
    \n+
    114 bool valid() const {
    \n+
    115 if(_future)
    \n+
    116 return _future->valid();
    \n+
    117 return false;
    \n+
    118 }
    \n+
    \n+
    119 };
    \n+
    \n+
    120
    \n+
    123 template<class T>
    \n+
    \n+\n+
    125 bool valid_;
    \n+
    126 T data_;
    \n+
    127 public:
    \n+
    \n+\n+
    129 valid_(false)
    \n+
    130 {}
    \n+
    \n+
    131
    \n+
    132 template<class U>
    \n+
    \n+\n+
    134 valid_(true),
    \n+
    135 data_(std::forward<U>(u))
    \n+
    136 {}
    \n+
    \n+
    137
    \n+
    \n+
    138 void wait() {
    \n+
    139 if(!valid_)
    \n+
    140 DUNE_THROW(InvalidFutureException, "The PseudoFuture is not valid");
    \n+
    141 }
    \n+
    \n
    142
    \n-
    147 static const DebugLevel WARN_DEBUG_LEVEL = 4;
    \n+
    \n+
    143 bool ready() const {
    \n+
    144 if(!valid_)
    \n+
    145 DUNE_THROW(InvalidFutureException, "The PseudoFuture is not valid");
    \n+
    146 return true;
    \n+
    147 }
    \n+
    \n
    148
    \n-\n-
    154
    \n-\n-
    163
    \n-\n-
    169
    \n-\n-
    172
    \n-\n-
    181
    \n-\n+
    \n+
    149 T get() {
    \n+
    150 if(!valid_)
    \n+
    151 DUNE_THROW(InvalidFutureException, "The PseudoFuture is not valid");
    \n+
    152 valid_ = false;
    \n+
    153 return std::forward<T>(data_);
    \n+
    154 }
    \n+
    \n+
    155
    \n+
    \n+
    156 bool valid() const {
    \n+
    157 return valid_;
    \n+
    158 }
    \n+
    \n+
    159 };
    \n+
    \n+
    160
    \n+
    161 template<>
    \n+
    \n+
    162 class PseudoFuture<void>{
    \n+
    163 bool valid_;
    \n+
    164 public:
    \n+
    \n+
    165 PseudoFuture(bool valid = false) :
    \n+
    166 valid_(valid)
    \n+
    167 {}
    \n+
    \n+
    168
    \n+
    \n+
    169 void wait(){
    \n+
    170 if(!valid_)
    \n+
    171 DUNE_THROW(InvalidFutureException, "The PseudoFuture is not valid");
    \n+
    172 }
    \n+
    \n+
    \n+
    173 bool ready() const{
    \n+
    174 if(!valid_)
    \n+
    175 DUNE_THROW(InvalidFutureException, "The PseudoFuture is not valid");
    \n+
    176 return true;
    \n+
    177 }
    \n+
    \n+
    178
    \n+
    \n+
    179 void get(){
    \n+
    180 if(!valid_)
    \n+
    181 DUNE_THROW(InvalidFutureException, "The PseudoFuture is not valid");
    \n+
    182 valid_ = false;
    \n+
    183 }
    \n+
    \n
    184
    \n-\n-
    197
    \n-
    199}
    \n-
    200
    \n-
    201#endif
    \n-
    Defines several output streams for messages of different importance.
    \n-
    unsigned int DebugLevel
    Type for debug levels.
    Definition debugstream.hh:118
    \n-
    DebugStream< VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVVerbType
    Type of very verbose debug stream.
    Definition stdstreams.hh:82
    \n-
    DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DWarnType
    Type of debug stream with warn level.
    Definition stdstreams.hh:153
    \n-
    DVVerbType dvverb(std::cout)
    stream for very verbose output.
    Definition stdstreams.hh:96
    \n-
    static const DebugLevel MINIMAL_DEBUG_LEVEL
    Definition stdstreams.hh:70
    \n-
    #define DUNE_MINIMAL_DEBUG_LEVEL
    The default minimum debug level.
    Definition stdstreams.hh:68
    \n-
    static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL
    The level of the very verbose debug stream.
    Definition stdstreams.hh:76
    \n-
    DWarnType dwarn(std::cerr)
    Stream for warnings indicating problems.
    Definition stdstreams.hh:162
    \n-
    static const DebugLevel GRAVE_DEBUG_LEVEL
    The level of the debug stream for fatal errors.
    Definition stdstreams.hh:168
    \n-
    DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVerbType
    Type of more verbose debug stream.
    Definition stdstreams.hh:108
    \n-
    DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DGraveType
    Type of debug stream for fatal errors.
    Definition stdstreams.hh:171
    \n-
    DGraveType dgrave(std::cerr)
    Stream for warnings indicating fatal errors.
    Definition stdstreams.hh:180
    \n-
    DebugStream< 1 > DErrType
    The type of the stream used for error messages.
    Definition stdstreams.hh:183
    \n-
    static const DebugLevel INFO_DEBUG_LEVEL
    The level of the informative debug stream.
    Definition stdstreams.hh:123
    \n-
    DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DInfoType
    Type of debug stream with info level.
    Definition stdstreams.hh:129
    \n-
    DInfoType dinfo(std::cout)
    Stream for informative output.
    Definition stdstreams.hh:141
    \n-
    DVerbType dverb(std::cout)
    Singleton of verbose debug stream.
    Definition stdstreams.hh:117
    \n-
    static const DebugLevel VERBOSE_DEBUG_LEVEL
    The level of the verbose debug stream.
    Definition stdstreams.hh:102
    \n-
    DErrType derr(std::cerr)
    Stream for error messages.
    Definition stdstreams.hh:196
    \n-
    static const DebugLevel WARN_DEBUG_LEVEL
    The level of the debug stream for warnings.
    Definition stdstreams.hh:147
    \n+
    \n+
    185 bool valid() const{
    \n+
    186 return valid_;
    \n+
    187 }
    \n+
    \n+
    188 };
    \n+
    \n+
    189}
    \n+
    190
    \n+
    191#endif // DUNE_COMMON_PARALLEL_FUTURE_HH
    \n+
    A few common exception classes.
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n+
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    Generic class to implement debug output streams.
    Definition debugstream.hh:192
    \n+
    constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
    Return the entry at position pos of the given sequence.
    Definition integersequence.hh:22
    \n+
    Default exception if a function was called while the object is not in a valid state for that function...
    Definition exceptions.hh:281
    \n+
    This exception is thrown when ready(), wait() or get() is called on an invalid future....
    Definition future.hh:20
    \n+
    A wrapper-class for a object which is ready immediately.
    Definition future.hh:124
    \n+
    bool ready() const
    Definition future.hh:143
    \n+
    T get()
    Definition future.hh:149
    \n+
    PseudoFuture(U &&u)
    Definition future.hh:133
    \n+
    PseudoFuture()
    Definition future.hh:128
    \n+
    void wait()
    Definition future.hh:138
    \n+
    bool valid() const
    Definition future.hh:156
    \n+
    Type-erasure for future-like objects. A future-like object is a object satisfying the interface of Fu...
    Definition future.hh:30
    \n+
    bool ready() const
    Definition future.hh:105
    \n+
    void wait()
    wait until the future is ready
    Definition future.hh:89
    \n+
    Future(U &&data)
    Definition future.hh:80
    \n+
    T get()
    Waits until the future is ready and returns the resulting value.
    Definition future.hh:97
    \n+
    Future()=default
    \n+
    bool valid() const
    Checks whether the future is valid. I.e. \u2018get()\u2019 was not called on that future and when it was not de...
    Definition future.hh:114
    \n+
    Future(F &&f)
    Definition future.hh:75
    \n+
    bool ready() const
    Definition future.hh:173
    \n+
    bool valid() const
    Definition future.hh:185
    \n+
    void get()
    Definition future.hh:179
    \n+
    PseudoFuture(bool valid=false)
    Definition future.hh:165
    \n+
    void wait()
    Definition future.hh:169
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,154 +1,267 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-stdstreams.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+future.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5\n-15#ifndef DUNE_COMMON_STDSTREAMS_HH\n-16#define DUNE_COMMON_STDSTREAMS_HH\n-17\n-18#include // DUNE_MINIMAL_DEBUG_LEVEL\n-19#include \"_\bd_\be_\bb_\bu_\bg_\bs_\bt_\br_\be_\ba_\bm_\b._\bh_\bh\"\n-20\n-21namespace _\bD_\bu_\bn_\be {\n-22\n-67#ifndef DUNE_MINIMAL_DEBUG_LEVEL\n-_\b6_\b8#define DUNE_MINIMAL_DEBUG_LEVEL 4\n-69#endif\n-_\b7_\b0 static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = _\bD_\bU_\bN_\bE_\b__\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL;\n+5#ifndef DUNE_COMMON_PARALLEL_FUTURE_HH\n+6#define DUNE_COMMON_PARALLEL_FUTURE_HH\n+7\n+8#include \n+9#include \n+10\n+11#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+12\n+13namespace _\bD_\bu_\bn_\be{\n+14\n+_\b1_\b9 class _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn : public _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bt_\ba_\bt_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n+20 {};\n+21\n+22 // forward declaration\n+23 template\n+24 class _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be;\n+25\n+29 template\n+_\b3_\b0 class _\bF_\bu_\bt_\bu_\br_\be{\n+31 // Future interface:\n+32 class FutureBase{\n+33 public:\n+34 virtual ~FutureBase() = default;\n+35 virtual void wait() = 0;\n+36 virtual bool ready() const = 0;\n+37 virtual bool valid() const = 0;\n+38 virtual T _\bg_\be_\bt() = 0;\n+39 };\n+40\n+41 // model class\n+42 template\n+43 class FutureModel\n+44 : public FutureBase\n+45 {\n+46 F _future;\n+47 public:\n+48 FutureModel(F&& f)\n+49 : _future(std::forward(f))\n+50 {}\n+51\n+52 virtual void wait() override\n+53 {\n+54 _future.wait();\n+55 }\n+56\n+57 virtual bool ready() const override\n+58 {\n+59 return _future.ready();\n+60 }\n+61\n+62 virtual bool valid() const override\n+63 {\n+64 return _future.valid();\n+65 }\n+66\n+67 virtual T _\bg_\be_\bt() override{\n+68 return (T)_future.get();\n+69 }\n+70 };\n 71\n-_\b7_\b6 static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl _\bV_\bE_\bR_\bY_\b__\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 1;\n-77\n-_\b8_\b2 typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm_\b<_\bV_\bE_\bR_\bY_\b__\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b,_\b _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b>\n-_\bD_\bV_\bV_\be_\br_\bb_\bT_\by_\bp_\be;\n+72 std::unique_ptr _future;\n+73 public:\n+74 template\n+_\b7_\b5 _\bF_\bu_\bt_\bu_\br_\be(F&& f)\n+76 : _future(_\bs_\bt_\bd::make_unique>(_\bs_\bt_\bd::forward(f)))\n+77 {}\n+78\n+79 template::value && !std::\n+is_same::value>>\n+_\b8_\b0 _\bF_\bu_\bt_\bu_\br_\be(U&& data)\n+81 : _future(_\bs_\bt_\bd::make_unique>>(_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be\n+(_\bs_\bt_\bd::forward(data))))\n+82 {}\n 83\n-_\b9_\b6 extern _\bD_\bV_\bV_\be_\br_\bb_\bT_\by_\bp_\be _\bd_\bv_\bv_\be_\br_\bb;\n-97\n-_\b1_\b0_\b2 static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl _\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 2;\n-103\n-_\b1_\b0_\b8 typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm_\b<_\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b,_\b _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b> _\bD_\bV_\be_\br_\bb_\bT_\by_\bp_\be;\n-109\n-_\b1_\b1_\b7 extern _\bD_\bV_\be_\br_\bb_\bT_\by_\bp_\be _\bd_\bv_\be_\br_\bb;\n-118\n-_\b1_\b2_\b3 static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl _\bI_\bN_\bF_\bO_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 3;\n-124\n-_\b1_\b2_\b9 typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm_\b<_\bI_\bN_\bF_\bO_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b,_\b _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b> _\bD_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be;\n-130\n-_\b1_\b4_\b1 extern _\bD_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be _\bd_\bi_\bn_\bf_\bo;\n+_\b8_\b4 _\bF_\bu_\bt_\bu_\br_\be() = default;\n+85\n+_\b8_\b9 void _\bw_\ba_\bi_\bt(){\n+90 _future->wait();\n+91 }\n+92\n+_\b9_\b7 T _\bg_\be_\bt() {\n+98 return _future->get();\n+99 }\n+100\n+_\b1_\b0_\b5 bool _\br_\be_\ba_\bd_\by() const {\n+106 return _future->ready();\n+107 }\n+108\n+_\b1_\b1_\b4 bool _\bv_\ba_\bl_\bi_\bd() const {\n+115 if(_future)\n+116 return _future->valid();\n+117 return false;\n+118 }\n+119 };\n+120\n+123 template\n+_\b1_\b2_\b4 class _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be{\n+125 bool valid_;\n+126 T data_;\n+127 public:\n+_\b1_\b2_\b8 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be() :\n+129 valid_(false)\n+130 {}\n+131\n+132 template\n+_\b1_\b3_\b3 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be(U&& u) :\n+134 valid_(true),\n+135 data_(_\bs_\bt_\bd::forward(u))\n+136 {}\n+137\n+_\b1_\b3_\b8 void _\bw_\ba_\bi_\bt() {\n+139 if(!valid_)\n+140 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The PseudoFuture is not valid\");\n+141 }\n 142\n-_\b1_\b4_\b7 static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl _\bW_\bA_\bR_\bN_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 4;\n+_\b1_\b4_\b3 bool _\br_\be_\ba_\bd_\by() const {\n+144 if(!valid_)\n+145 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The PseudoFuture is not valid\");\n+146 return true;\n+147 }\n 148\n-_\b1_\b5_\b3 typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm_\b<_\bW_\bA_\bR_\bN_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b,_\b _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b> _\bD_\bW_\ba_\br_\bn_\bT_\by_\bp_\be;\n-154\n-_\b1_\b6_\b2 extern _\bD_\bW_\ba_\br_\bn_\bT_\by_\bp_\be _\bd_\bw_\ba_\br_\bn;\n-163\n-_\b1_\b6_\b8 static const _\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl _\bG_\bR_\bA_\bV_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL = 5;\n-169\n-_\b1_\b7_\b1 typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm_\b<_\bG_\bR_\bA_\bV_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b,_\b _\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL_\b> _\bD_\bG_\br_\ba_\bv_\be_\bT_\by_\bp_\be;\n-172\n-_\b1_\b8_\b0 extern _\bD_\bG_\br_\ba_\bv_\be_\bT_\by_\bp_\be _\bd_\bg_\br_\ba_\bv_\be;\n-181\n-_\b1_\b8_\b3 typedef _\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm_\b<_\b1_\b> _\bD_\bE_\br_\br_\bT_\by_\bp_\be;\n+_\b1_\b4_\b9 T _\bg_\be_\bt() {\n+150 if(!valid_)\n+151 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The PseudoFuture is not valid\");\n+152 valid_ = false;\n+153 return std::forward(data_);\n+154 }\n+155\n+_\b1_\b5_\b6 bool _\bv_\ba_\bl_\bi_\bd() const {\n+157 return valid_;\n+158 }\n+159 };\n+160\n+161 template<>\n+_\b1_\b6_\b2 class _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be{\n+163 bool valid_;\n+164 public:\n+_\b1_\b6_\b5 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be(bool _\bv_\ba_\bl_\bi_\bd = false) :\n+166 valid_(_\bv_\ba_\bl_\bi_\bd)\n+167 {}\n+168\n+_\b1_\b6_\b9 void _\bw_\ba_\bi_\bt(){\n+170 if(!valid_)\n+171 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The PseudoFuture is not valid\");\n+172 }\n+_\b1_\b7_\b3 bool _\br_\be_\ba_\bd_\by() const{\n+174 if(!valid_)\n+175 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The PseudoFuture is not valid\");\n+176 return true;\n+177 }\n+178\n+_\b1_\b7_\b9 void _\bg_\be_\bt(){\n+180 if(!valid_)\n+181 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The PseudoFuture is not valid\");\n+182 valid_ = false;\n+183 }\n 184\n-_\b1_\b9_\b6 extern _\bD_\bE_\br_\br_\bT_\by_\bp_\be _\bd_\be_\br_\br;\n-197\n-199}\n-200\n-201#endif\n-_\bd_\be_\bb_\bu_\bg_\bs_\bt_\br_\be_\ba_\bm_\b._\bh_\bh\n-Defines several output streams for messages of different importance.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\n-unsigned int DebugLevel\n-Type for debug levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn debugstream.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bV_\bV_\be_\br_\bb_\bT_\by_\bp_\be\n-DebugStream< VERY_VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVVerbType\n-Type of very verbose debug stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bW_\ba_\br_\bn_\bT_\by_\bp_\be\n-DebugStream< WARN_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DWarnType\n-Type of debug stream with warn level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\bv_\be_\br_\bb\n-DVVerbType dvverb(std::cout)\n-stream for very verbose output.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:96\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-static const DebugLevel MINIMAL_DEBUG_LEVEL\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:70\n-_\bD_\bU_\bN_\bE_\b__\bM_\bI_\bN_\bI_\bM_\bA_\bL_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-#define DUNE_MINIMAL_DEBUG_LEVEL\n-The default minimum debug level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:68\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\bE_\bR_\bY_\b__\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-static const DebugLevel VERY_VERBOSE_DEBUG_LEVEL\n-The level of the very verbose debug stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bw_\ba_\br_\bn\n-DWarnType dwarn(std::cerr)\n-Stream for warnings indicating problems.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:162\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bR_\bA_\bV_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-static const DebugLevel GRAVE_DEBUG_LEVEL\n-The level of the debug stream for fatal errors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bV_\be_\br_\bb_\bT_\by_\bp_\be\n-DebugStream< VERBOSE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DVerbType\n-Type of more verbose debug stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bG_\br_\ba_\bv_\be_\bT_\by_\bp_\be\n-DebugStream< GRAVE_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DGraveType\n-Type of debug stream for fatal errors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:171\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bg_\br_\ba_\bv_\be\n-DGraveType dgrave(std::cerr)\n-Stream for warnings indicating fatal errors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bE_\br_\br_\bT_\by_\bp_\be\n-DebugStream< 1 > DErrType\n-The type of the stream used for error messages.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:183\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bN_\bF_\bO_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-static const DebugLevel INFO_DEBUG_LEVEL\n-The level of the informative debug stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:123\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be\n-DebugStream< INFO_DEBUG_LEVEL, MINIMAL_DEBUG_LEVEL > DInfoType\n-Type of debug stream with info level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bi_\bn_\bf_\bo\n-DInfoType dinfo(std::cout)\n-Stream for informative output.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bv_\be_\br_\bb\n-DVerbType dverb(std::cout)\n-Singleton of verbose debug stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:117\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\bE_\bR_\bB_\bO_\bS_\bE_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-static const DebugLevel VERBOSE_DEBUG_LEVEL\n-The level of the verbose debug stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:102\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\br_\br\n-DErrType derr(std::cerr)\n-Stream for error messages.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:196\n-_\bD_\bu_\bn_\be_\b:_\b:_\bW_\bA_\bR_\bN_\b__\bD_\bE_\bB_\bU_\bG_\b__\bL_\bE_\bV_\bE_\bL\n-static const DebugLevel WARN_DEBUG_LEVEL\n-The level of the debug stream for warnings.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn stdstreams.hh:147\n+_\b1_\b8_\b5 bool _\bv_\ba_\bl_\bi_\bd() const{\n+186 return valid_;\n+187 }\n+188 };\n+189}\n+190\n+191#endif // DUNE_COMMON_PARALLEL_FUTURE_HH\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bb_\bu_\bg_\bS_\bt_\br_\be_\ba_\bm\n-Generic class to implement debug output streams.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn debugstream.hh:192\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant<\n+std::size_t, pos >={})\n+Return the entry at position pos of the given sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bt_\ba_\bt_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n+Default exception if a function was called while the object is not in a valid\n+state for that function...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:281\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n+This exception is thrown when ready(), wait() or get() is called on an invalid\n+future....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:20\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be\n+A wrapper-class for a object which is ready immediately.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:124\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\br_\be_\ba_\bd_\by\n+bool ready() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:143\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bg_\be_\bt\n+T get()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be\n+PseudoFuture(U &&u)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:133\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be\n+PseudoFuture()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bw_\ba_\bi_\bt\n+void wait()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:138\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bv_\ba_\bl_\bi_\bd\n+bool valid() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:156\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be\n+Type-erasure for future-like objects. A future-like object is a object\n+satisfying the interface of Fu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\br_\be_\ba_\bd_\by\n+bool ready() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:105\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bw_\ba_\bi_\bt\n+void wait()\n+wait until the future is ready\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be\n+Future(U &&data)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bg_\be_\bt\n+T get()\n+Waits until the future is ready and returns the resulting value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:97\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be\n+Future()=default\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bv_\ba_\bl_\bi_\bd\n+bool valid() const\n+Checks whether the future is valid. I.e. \u00e2\u0080\u0098get()\u00e2\u0080\u0099 was not called on that\n+future and when it was not de...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be\n+Future(F &&f)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\br_\be_\ba_\bd_\by\n+bool ready() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:173\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bi_\bd\n+bool valid() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:185\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bg_\be_\bt\n+void get()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:179\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be\n+PseudoFuture(bool valid=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:165\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bw_\ba_\bi_\bt\n+void wait()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:169\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00053.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00053.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: densematrix.hh File Reference\n+dune-common: collectivecommunication.hh File Reference\n \n \n \n \n \n \n \n@@ -65,78 +65,24 @@\n \n \n \n \n \n \n \n
    \n- \n-
    densematrix.hh File Reference
    \n+
    collectivecommunication.hh File Reference
    \n
    \n
    \n-\n-

    Implements a matrix constructed from a given type representing a field and a compile-time given number of rows and columns. \n-More...

    \n-
    #include <cmath>
    \n-#include <cstddef>
    \n-#include <iostream>
    \n-#include <type_traits>
    \n-#include <utility>
    \n-#include <vector>
    \n-#include <dune/common/boundschecking.hh>
    \n-#include <dune/common/classname.hh>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/common/math.hh>
    \n-#include <dune/common/precision.hh>
    \n-#include <dune/common/simd/simd.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/scalarvectorview.hh>
    \n+\n

    Go to the source code of this file.

    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    struct  Dune::FieldTraits< DenseMatrix< M > >
     
    class  Dune::FMatrixError
     Error thrown if operations of a FieldMatrix fail. More...
     
    class  Dune::DenseMatrix< MAT >
     A dense n x m matrix. More...
     
    \n-\n-\n-\n-\n-\n-\n-

    \n-Namespaces

    namespace  Dune
     Dune namespace.
     
    namespace  Dune::DenseMatrixHelp
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Functions

    template<typename MAT , typename V1 , typename V2 >
    static void Dune::DenseMatrixHelp::multAssign (const DenseMatrix< MAT > &matrix, const DenseVector< V1 > &x, DenseVector< V2 > &ret)
     calculates ret = matrix * x
     
    template<typename MAT >
    std::ostream & Dune::operator<< (std::ostream &s, const DenseMatrix< MAT > &a)
     Sends the matrix to an output stream.
     
    \n-

    Detailed Description

    \n-

    Implements a matrix constructed from a given type representing a field and a compile-time given number of rows and columns.

    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,57 +1,12 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-densematrix.hh File Reference\n-_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bD_\be_\bn_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by\n-Implements a matrix constructed from a given type representing a field and a\n-compile-time given number of rows and columns. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bc_\bl_\ba_\bs_\bs_\bn_\ba_\bm_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bm_\ba_\bt_\bh_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bi_\bm_\bd_\b/_\bs_\bi_\bm_\bd_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bv_\be_\bc_\bt_\bo_\br_\bv_\bi_\be_\bw_\b._\bh_\bh>\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+collectivecommunication.hh File Reference\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bM_\b _\b>_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-\u00a0 Error thrown if operations of a _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx fail. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bM_\bA_\bT_\b _\b>\n-\u00a0 A dense n x m matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0 _\bD_\bu_\bn_\be namespace.\n-\u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bH_\be_\bl_\bp\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bH_\be_\bl_\bp_\b:_\b:_\bm_\bu_\bl_\bt_\bA_\bs_\bs_\bi_\bg_\bn (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx< MAT >\n- &matrix, const _\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br< V1 > &x, _\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br< V2 > &ret)\n-\u00a0 calculates ret = matrix * x\n-\u00a0\n-template\n-std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx< MAT > &a)\n-\u00a0 Sends the matrix to an output stream.\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implements a matrix constructed from a given type representing a field and a\n-compile-time given number of rows and columns.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00053_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00053_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: densematrix.hh Source File\n+dune-common: collectivecommunication.hh Source File\n \n \n \n \n \n \n \n@@ -70,1308 +70,27 @@\n \n \n \n \n \n \n \n
    \n-
    densematrix.hh
    \n+
    collectivecommunication.hh
    \n
    \n
    \n-Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    2// vi: set et ts=4 sw=2 sts=2:
    \n-
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n-
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_DENSEMATRIX_HH
    \n-
    6#define DUNE_DENSEMATRIX_HH
    \n-
    7
    \n-
    8#include <cmath>
    \n-
    9#include <cstddef>
    \n-
    10#include <iostream>
    \n-
    11#include <type_traits>
    \n-
    12#include <utility>
    \n-
    13#include <vector>
    \n-
    14
    \n-\n-\n-\n-\n-
    19#include <dune/common/math.hh>
    \n-\n-\n-\n-\n-
    24
    \n-
    25namespace Dune
    \n-
    26{
    \n-
    27
    \n-
    28 template<typename M> class DenseMatrix;
    \n-
    29
    \n-
    30 template<typename M>
    \n-\n-
    36
    \n-
    37 template<class K, int N, int M> class FieldMatrix;
    \n-
    38 template<class K, int N> class FieldVector;
    \n-
    39
    \n-
    58 template< class DenseMatrix, class RHS >
    \n-\n-
    60
    \n-
    61#ifndef DOXYGEN
    \n-
    62 namespace Impl
    \n-
    63 {
    \n-
    64
    \n-
    65 template< class DenseMatrix, class RHS, class = void >
    \n-\n-
    67 {};
    \n-
    68
    \n-
    69 template< class DenseMatrix, class RHS >
    \n-
    70 class DenseMatrixAssigner< DenseMatrix, RHS, std::enable_if_t< Dune::IsNumber< RHS >::value > >
    \n-
    71 {
    \n-
    72 public:
    \n-
    73 static void apply ( DenseMatrix &denseMatrix, const RHS &rhs )
    \n-
    74 {
    \n-
    75 typedef typename DenseMatrix::field_type field_type;
    \n-
    76 std::fill( denseMatrix.begin(), denseMatrix.end(), static_cast< field_type >( rhs ) );
    \n-
    77 }
    \n-
    78 };
    \n-
    79
    \n-
    80 template< class DenseMatrix, class RHS >
    \n-
    81 class DenseMatrixAssigner< DenseMatrix, RHS, std::enable_if_t< !std::is_same< typename RHS::const_iterator, void >::value
    \n-
    82 && std::is_convertible< typename RHS::const_iterator::value_type, typename DenseMatrix::iterator::value_type >::value > >
    \n-
    83 {
    \n-
    84 public:
    \n-
    85 static void apply ( DenseMatrix &denseMatrix, const RHS &rhs )
    \n-
    86 {
    \n-
    87 DUNE_ASSERT_BOUNDS(rhs.N() == denseMatrix.N());
    \n-
    88 DUNE_ASSERT_BOUNDS(rhs.M() == denseMatrix.M());
    \n-
    89 typename DenseMatrix::iterator tIt = std::begin(denseMatrix);
    \n-
    90 typename RHS::const_iterator sIt = std::begin(rhs);
    \n-
    91 for(; sIt != std::end(rhs); ++tIt, ++sIt)
    \n-
    92 std::copy(std::begin(*sIt), std::end(*sIt), std::begin(*tIt));
    \n-
    93 }
    \n-
    94 };
    \n-
    95
    \n-
    96 } // namespace Impl
    \n-
    97
    \n-
    98
    \n-
    99
    \n-
    100 template< class DenseMatrix, class RHS >
    \n-
    101 struct DenseMatrixAssigner
    \n-
    102 : public Impl::DenseMatrixAssigner< DenseMatrix, RHS >
    \n-
    103 {};
    \n-
    104
    \n-
    105
    \n-
    106 namespace Impl
    \n-
    107 {
    \n-
    108
    \n-
    109 template< class DenseMatrix, class RHS >
    \n-
    110 std::true_type hasDenseMatrixAssigner ( DenseMatrix &, const RHS &, decltype( Dune::DenseMatrixAssigner< DenseMatrix, RHS >::apply( std::declval< DenseMatrix & >(), std::declval< const RHS & >() ) ) * = nullptr );
    \n-
    111
    \n-
    112 std::false_type hasDenseMatrixAssigner ( ... );
    \n-
    113
    \n-
    114 } // namespace Impl
    \n-
    115
    \n-
    116 template< class DenseMatrix, class RHS >
    \n-
    117 struct HasDenseMatrixAssigner
    \n-
    118 : public decltype( Impl::hasDenseMatrixAssigner( std::declval< DenseMatrix & >(), std::declval< const RHS & >() ) )
    \n-
    119 {};
    \n-
    120
    \n-
    121#endif // #ifndef DOXYGEN
    \n-
    122
    \n-
    123
    \n-
    124
    \n-
    126 class FMatrixError : public MathError {};
    \n-
    127
    \n-
    138 template<typename MAT>
    \n-
    \n-\n-
    140 {
    \n-\n-
    142
    \n-
    143 // Curiously recurring template pattern
    \n-
    144 constexpr MAT & asImp() { return static_cast<MAT&>(*this); }
    \n-
    145 constexpr const MAT & asImp() const { return static_cast<const MAT&>(*this); }
    \n-
    146
    \n-
    147 template <class>
    \n-
    148 friend class DenseMatrix;
    \n-
    149
    \n-
    150 public:
    \n-
    151 //===== type definitions and constants
    \n-
    152
    \n-
    154 typedef typename Traits::derived_type derived_type;
    \n-
    155
    \n-
    157 typedef typename Traits::value_type value_type;
    \n-
    158
    \n-
    160 typedef typename Traits::value_type field_type;
    \n-
    161
    \n-
    163 typedef typename Traits::value_type block_type;
    \n-
    164
    \n-
    166 typedef typename Traits::size_type size_type;
    \n-
    167
    \n-
    169 typedef typename Traits::row_type row_type;
    \n-
    170
    \n-
    172 typedef typename Traits::row_reference row_reference;
    \n-
    173
    \n-
    175 typedef typename Traits::const_row_reference const_row_reference;
    \n-
    176
    \n-
    178 constexpr static int blocklevel = 1;
    \n-
    179
    \n-
    180 private:
    \n-
    183 using simd_index_type = Simd::Rebind<std::size_t, value_type>;
    \n-
    184
    \n-
    185 public:
    \n-
    186 //===== access to components
    \n-
    187
    \n-
    \n-\n-
    190 {
    \n-
    191 return asImp().mat_access(i);
    \n-
    192 }
    \n-
    \n-
    193
    \n-
    \n-\n-
    195 {
    \n-
    196 return asImp().mat_access(i);
    \n-
    197 }
    \n-
    \n-
    198
    \n-
    \n-\n-
    201 {
    \n-
    202 return rows();
    \n-
    203 }
    \n-
    \n-
    204
    \n-
    205 //===== iterator interface to rows of the matrix
    \n-\n-\n-\n-
    213 typedef typename std::remove_reference<row_reference>::type::Iterator ColIterator;
    \n-
    214
    \n-
    \n-\n-
    217 {
    \n-
    218 return Iterator(*this,0);
    \n-
    219 }
    \n-
    \n-
    220
    \n-
    \n-\n-
    223 {
    \n-
    224 return Iterator(*this,rows());
    \n-
    225 }
    \n-
    \n-
    226
    \n-
    \n-\n-
    230 {
    \n-
    231 return Iterator(*this,rows()-1);
    \n-
    232 }
    \n-
    \n-
    233
    \n-
    \n-\n-
    237 {
    \n-
    238 return Iterator(*this,-1);
    \n-
    239 }
    \n-
    \n-
    240
    \n-\n-\n-\n-
    248 typedef typename std::remove_reference<const_row_reference>::type::ConstIterator ConstColIterator;
    \n-
    249
    \n-
    \n-\n-
    252 {
    \n-
    253 return ConstIterator(*this,0);
    \n-
    254 }
    \n-
    \n-
    255
    \n-
    \n-\n-
    258 {
    \n-
    259 return ConstIterator(*this,rows());
    \n-
    260 }
    \n-
    \n-
    261
    \n-
    \n-\n-
    265 {
    \n-
    266 return ConstIterator(*this,rows()-1);
    \n-
    267 }
    \n-
    \n-
    268
    \n-
    \n-\n-
    272 {
    \n-
    273 return ConstIterator(*this,-1);
    \n-
    274 }
    \n-
    \n-
    275
    \n-
    276 //===== assignment
    \n-
    277
    \n-
    278 template< class RHS, class = std::enable_if_t< HasDenseMatrixAssigner< MAT, RHS >::value > >
    \n-
    \n-
    279 derived_type &operator= ( const RHS &rhs )
    \n-
    280 {
    \n-\n-
    282 return asImp();
    \n-
    283 }
    \n-
    \n-
    284
    \n-
    285 //===== vector space arithmetic
    \n-
    286
    \n-
    288 template <class Other>
    \n-
    \n-\n-
    290 {
    \n-
    291 DUNE_ASSERT_BOUNDS(rows() == x.rows());
    \n-
    292 for (size_type i=0; i<rows(); i++)
    \n-
    293 (*this)[i] += x[i];
    \n-
    294 return asImp();
    \n-
    295 }
    \n-
    \n-
    296
    \n-
    \n-\n-
    299 {
    \n-
    300 MAT result;
    \n-
    301 using idx_type = typename decltype(result)::size_type;
    \n-
    302
    \n-
    303 for (idx_type i = 0; i < rows(); ++i)
    \n-
    304 for (idx_type j = 0; j < cols(); ++j)
    \n-
    305 result[i][j] = - asImp()[i][j];
    \n-
    306
    \n-
    307 return result;
    \n-
    308 }
    \n-
    \n-
    309
    \n-
    311 template <class Other>
    \n-
    \n-\n-
    313 {
    \n-
    314 DUNE_ASSERT_BOUNDS(rows() == x.rows());
    \n-
    315 for (size_type i=0; i<rows(); i++)
    \n-
    316 (*this)[i] -= x[i];
    \n-
    317 return asImp();
    \n-
    318 }
    \n-
    \n-
    319
    \n-
    \n-\n-
    322 {
    \n-
    323 for (size_type i=0; i<rows(); i++)
    \n-
    324 (*this)[i] *= k;
    \n-
    325 return asImp();
    \n-
    326 }
    \n-
    \n-
    327
    \n-
    \n-\n-
    330 {
    \n-
    331 for (size_type i=0; i<rows(); i++)
    \n-
    332 (*this)[i] /= k;
    \n-
    333 return asImp();
    \n-
    334 }
    \n-
    \n-
    335
    \n-
    337 template <class Other>
    \n-
    \n-\n-
    339 {
    \n-
    340 DUNE_ASSERT_BOUNDS(rows() == x.rows());
    \n-
    341 for( size_type i = 0; i < rows(); ++i )
    \n-
    342 (*this)[ i ].axpy( a, x[ i ] );
    \n-
    343 return asImp();
    \n-
    344 }
    \n-
    \n-
    345
    \n-
    347 template <class Other>
    \n-
    \n-
    348 bool operator== (const DenseMatrix<Other>& x) const
    \n-
    349 {
    \n-
    350 DUNE_ASSERT_BOUNDS(rows() == x.rows());
    \n-
    351 for (size_type i=0; i<rows(); i++)
    \n-
    352 if ((*this)[i]!=x[i])
    \n-
    353 return false;
    \n-
    354 return true;
    \n-
    355 }
    \n-
    \n-
    357 template <class Other>
    \n-
    \n-
    358 bool operator!= (const DenseMatrix<Other>& x) const
    \n-
    359 {
    \n-
    360 return !operator==(x);
    \n-
    361 }
    \n-
    \n-
    362
    \n-
    363
    \n-
    364 //===== linear maps
    \n-
    365
    \n-
    367 template<class X, class Y>
    \n-
    \n-
    368 void mv (const X& x, Y& y) const
    \n-
    369 {
    \n-
    370 auto&& xx = Impl::asVector(x);
    \n-
    371 auto&& yy = Impl::asVector(y);
    \n-
    372 DUNE_ASSERT_BOUNDS((void*)(&x) != (void*)(&y));
    \n-
    373 DUNE_ASSERT_BOUNDS(xx.N() == M());
    \n-
    374 DUNE_ASSERT_BOUNDS(yy.N() == N());
    \n-
    375
    \n-
    376 using y_field_type = typename FieldTraits<Y>::field_type;
    \n-
    377 for (size_type i=0; i<rows(); ++i)
    \n-
    378 {
    \n-
    379 yy[i] = y_field_type(0);
    \n-
    380 for (size_type j=0; j<cols(); j++)
    \n-
    381 yy[i] += (*this)[i][j] * xx[j];
    \n-
    382 }
    \n-
    383 }
    \n-
    \n-
    384
    \n-
    386 template< class X, class Y >
    \n-
    \n-
    387 void mtv ( const X &x, Y &y ) const
    \n-
    388 {
    \n-
    389 auto&& xx = Impl::asVector(x);
    \n-
    390 auto&& yy = Impl::asVector(y);
    \n-
    391 DUNE_ASSERT_BOUNDS((void*)(&x) != (void*)(&y));
    \n-
    392 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    393 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    394
    \n-
    395 using y_field_type = typename FieldTraits<Y>::field_type;
    \n-
    396 for(size_type i = 0; i < cols(); ++i)
    \n-
    397 {
    \n-
    398 yy[i] = y_field_type(0);
    \n-
    399 for(size_type j = 0; j < rows(); ++j)
    \n-
    400 yy[i] += (*this)[j][i] * xx[j];
    \n-
    401 }
    \n-
    402 }
    \n-
    \n-
    403
    \n-
    405 template<class X, class Y>
    \n-
    \n-
    406 void umv (const X& x, Y& y) const
    \n-
    407 {
    \n-
    408 auto&& xx = Impl::asVector(x);
    \n-
    409 auto&& yy = Impl::asVector(y);
    \n-
    410 DUNE_ASSERT_BOUNDS(xx.N() == M());
    \n-
    411 DUNE_ASSERT_BOUNDS(yy.N() == N());
    \n-
    412 for (size_type i=0; i<rows(); ++i)
    \n-
    413 for (size_type j=0; j<cols(); j++)
    \n-
    414 yy[i] += (*this)[i][j] * xx[j];
    \n-
    415 }
    \n-
    \n-
    416
    \n-
    418 template<class X, class Y>
    \n-
    \n-
    419 void umtv (const X& x, Y& y) const
    \n-
    420 {
    \n-
    421 auto&& xx = Impl::asVector(x);
    \n-
    422 auto&& yy = Impl::asVector(y);
    \n-
    423 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    424 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    425 for(size_type i = 0; i<rows(); ++i)
    \n-
    426 for (size_type j=0; j<cols(); j++)
    \n-
    427 yy[j] += (*this)[i][j]*xx[i];
    \n-
    428 }
    \n-
    \n-
    429
    \n-
    431 template<class X, class Y>
    \n-
    \n-
    432 void umhv (const X& x, Y& y) const
    \n-
    433 {
    \n-
    434 auto&& xx = Impl::asVector(x);
    \n-
    435 auto&& yy = Impl::asVector(y);
    \n-
    436 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    437 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    438 for (size_type i=0; i<rows(); i++)
    \n-
    439 for (size_type j=0; j<cols(); j++)
    \n-
    440 yy[j] += conjugateComplex((*this)[i][j])*xx[i];
    \n-
    441 }
    \n-
    \n-
    442
    \n-
    444 template<class X, class Y>
    \n-
    \n-
    445 void mmv (const X& x, Y& y) const
    \n-
    446 {
    \n-
    447 auto&& xx = Impl::asVector(x);
    \n-
    448 auto&& yy = Impl::asVector(y);
    \n-
    449 DUNE_ASSERT_BOUNDS(xx.N() == M());
    \n-
    450 DUNE_ASSERT_BOUNDS(yy.N() == N());
    \n-
    451 for (size_type i=0; i<rows(); i++)
    \n-
    452 for (size_type j=0; j<cols(); j++)
    \n-
    453 yy[i] -= (*this)[i][j] * xx[j];
    \n-
    454 }
    \n-
    \n-
    455
    \n-
    457 template<class X, class Y>
    \n-
    \n-
    458 void mmtv (const X& x, Y& y) const
    \n-
    459 {
    \n-
    460 auto&& xx = Impl::asVector(x);
    \n-
    461 auto&& yy = Impl::asVector(y);
    \n-
    462 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    463 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    464 for (size_type i=0; i<rows(); i++)
    \n-
    465 for (size_type j=0; j<cols(); j++)
    \n-
    466 yy[j] -= (*this)[i][j]*xx[i];
    \n-
    467 }
    \n-
    \n-
    468
    \n-
    470 template<class X, class Y>
    \n-
    \n-
    471 void mmhv (const X& x, Y& y) const
    \n-
    472 {
    \n-
    473 auto&& xx = Impl::asVector(x);
    \n-
    474 auto&& yy = Impl::asVector(y);
    \n-
    475 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    476 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    477 for (size_type i=0; i<rows(); i++)
    \n-
    478 for (size_type j=0; j<cols(); j++)
    \n-
    479 yy[j] -= conjugateComplex((*this)[i][j])*xx[i];
    \n-
    480 }
    \n-
    \n-
    481
    \n-
    483 template<class X, class Y>
    \n-
    \n-
    484 void usmv (const typename FieldTraits<Y>::field_type & alpha,
    \n-
    485 const X& x, Y& y) const
    \n-
    486 {
    \n-
    487 auto&& xx = Impl::asVector(x);
    \n-
    488 auto&& yy = Impl::asVector(y);
    \n-
    489 DUNE_ASSERT_BOUNDS(xx.N() == M());
    \n-
    490 DUNE_ASSERT_BOUNDS(yy.N() == N());
    \n-
    491 for (size_type i=0; i<rows(); i++)
    \n-
    492 for (size_type j=0; j<cols(); j++)
    \n-
    493 yy[i] += alpha * (*this)[i][j] * xx[j];
    \n-
    494 }
    \n-
    \n-
    495
    \n-
    497 template<class X, class Y>
    \n-
    \n-
    498 void usmtv (const typename FieldTraits<Y>::field_type & alpha,
    \n-
    499 const X& x, Y& y) const
    \n-
    500 {
    \n-
    501 auto&& xx = Impl::asVector(x);
    \n-
    502 auto&& yy = Impl::asVector(y);
    \n-
    503 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    504 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    505 for (size_type i=0; i<rows(); i++)
    \n-
    506 for (size_type j=0; j<cols(); j++)
    \n-
    507 yy[j] += alpha*(*this)[i][j]*xx[i];
    \n-
    508 }
    \n-
    \n-
    509
    \n-
    511 template<class X, class Y>
    \n-
    \n-
    512 void usmhv (const typename FieldTraits<Y>::field_type & alpha,
    \n-
    513 const X& x, Y& y) const
    \n-
    514 {
    \n-
    515 auto&& xx = Impl::asVector(x);
    \n-
    516 auto&& yy = Impl::asVector(y);
    \n-
    517 DUNE_ASSERT_BOUNDS(xx.N() == N());
    \n-
    518 DUNE_ASSERT_BOUNDS(yy.N() == M());
    \n-
    519 for (size_type i=0; i<rows(); i++)
    \n-
    520 for (size_type j=0; j<cols(); j++)
    \n-
    521 yy[j] +=
    \n-
    522 alpha*conjugateComplex((*this)[i][j])*xx[i];
    \n-
    523 }
    \n-
    \n-
    524
    \n-
    525 //===== norms
    \n-
    526
    \n-
    \n-\n-
    529 {
    \n-
    530 typename FieldTraits<value_type>::real_type sum=(0.0);
    \n-
    531 for (size_type i=0; i<rows(); ++i) sum += (*this)[i].two_norm2();
    \n-
    532 return fvmeta::sqrt(sum);
    \n-
    533 }
    \n-
    \n-
    534
    \n-
    \n-\n-
    537 {
    \n-
    538 typename FieldTraits<value_type>::real_type sum=(0.0);
    \n-
    539 for (size_type i=0; i<rows(); ++i) sum += (*this)[i].two_norm2();
    \n-
    540 return sum;
    \n-
    541 }
    \n-
    \n-
    542
    \n-
    544 template <typename vt = value_type,
    \n-
    545 typename std::enable_if<!HasNaN<vt>::value, int>::type = 0>
    \n-
    \n-\n-
    547 using real_type = typename FieldTraits<vt>::real_type;
    \n-
    548 using std::max;
    \n-
    549
    \n-
    550 real_type norm = 0;
    \n-
    551 for (auto const &x : *this) {
    \n-
    552 real_type const a = x.one_norm();
    \n-
    553 norm = max(a, norm);
    \n-
    554 }
    \n-
    555 return norm;
    \n-
    556 }
    \n-
    \n-
    557
    \n-
    559 template <typename vt = value_type,
    \n-
    560 typename std::enable_if<!HasNaN<vt>::value, int>::type = 0>
    \n-
    \n-\n-
    562 using real_type = typename FieldTraits<vt>::real_type;
    \n-
    563 using std::max;
    \n-
    564
    \n-
    565 real_type norm = 0;
    \n-
    566 for (auto const &x : *this) {
    \n-
    567 real_type const a = x.one_norm_real();
    \n-
    568 norm = max(a, norm);
    \n-
    569 }
    \n-
    570 return norm;
    \n-
    571 }
    \n-
    \n-
    572
    \n-
    574 template <typename vt = value_type,
    \n-
    575 typename std::enable_if<HasNaN<vt>::value, int>::type = 0>
    \n-
    \n-\n-
    577 using real_type = typename FieldTraits<vt>::real_type;
    \n-
    578 using std::max;
    \n-
    579
    \n-
    580 real_type norm = 0;
    \n-
    581 real_type isNaN = 1;
    \n-
    582 for (auto const &x : *this) {
    \n-
    583 real_type const a = x.one_norm();
    \n-
    584 norm = max(a, norm);
    \n-
    585 isNaN += a;
    \n-
    586 }
    \n-
    587 return norm * (isNaN / isNaN);
    \n-
    588 }
    \n-
    \n-
    589
    \n-
    591 template <typename vt = value_type,
    \n-
    592 typename std::enable_if<HasNaN<vt>::value, int>::type = 0>
    \n-
    \n-\n-
    594 using real_type = typename FieldTraits<vt>::real_type;
    \n-
    595 using std::max;
    \n-
    596
    \n-
    597 real_type norm = 0;
    \n-
    598 real_type isNaN = 1;
    \n-
    599 for (auto const &x : *this) {
    \n-
    600 real_type const a = x.one_norm_real();
    \n-
    601 norm = max(a, norm);
    \n-
    602 isNaN += a;
    \n-
    603 }
    \n-
    604 return norm * (isNaN / isNaN);
    \n-
    605 }
    \n-
    \n-
    606
    \n-
    607 //===== solve
    \n-
    608
    \n-
    613 template <class V1, class V2>
    \n-
    614 void solve (V1& x, const V2& b, bool doPivoting = true) const;
    \n-
    615
    \n-
    620 void invert(bool doPivoting = true);
    \n-
    621
    \n-
    623 field_type determinant (bool doPivoting = true) const;
    \n-
    624
    \n-
    626 template<typename M2>
    \n-
    \n-\n-
    628 {
    \n-
    629 DUNE_ASSERT_BOUNDS(M.rows() == M.cols());
    \n-
    630 DUNE_ASSERT_BOUNDS(M.rows() == rows());
    \n-
    631 AutonomousValue<MAT> C(asImp());
    \n-
    632
    \n-
    633 for (size_type i=0; i<rows(); i++)
    \n-
    634 for (size_type j=0; j<cols(); j++) {
    \n-
    635 (*this)[i][j] = 0;
    \n-
    636 for (size_type k=0; k<rows(); k++)
    \n-
    637 (*this)[i][j] += M[i][k]*C[k][j];
    \n-
    638 }
    \n-
    639
    \n-
    640 return asImp();
    \n-
    641 }
    \n-
    \n-
    642
    \n-
    644 template<typename M2>
    \n-
    \n-\n-
    646 {
    \n-
    647 DUNE_ASSERT_BOUNDS(M.rows() == M.cols());
    \n-
    648 DUNE_ASSERT_BOUNDS(M.cols() == cols());
    \n-
    649 AutonomousValue<MAT> C(asImp());
    \n-
    650
    \n-
    651 for (size_type i=0; i<rows(); i++)
    \n-
    652 for (size_type j=0; j<cols(); j++) {
    \n-
    653 (*this)[i][j] = 0;
    \n-
    654 for (size_type k=0; k<cols(); k++)
    \n-
    655 (*this)[i][j] += C[i][k]*M[k][j];
    \n-
    656 }
    \n-
    657 return asImp();
    \n-
    658 }
    \n-
    \n-
    659
    \n-
    660#if 0
    \n-
    662 template<int l>
    \n-
    663 DenseMatrix<K,l,cols> leftmultiplyany (const FieldMatrix<K,l,rows>& M) const
    \n-
    664 {
    \n-\n-
    666
    \n-
    667 for (size_type i=0; i<l; i++) {
    \n-
    668 for (size_type j=0; j<cols(); j++) {
    \n-
    669 C[i][j] = 0;
    \n-
    670 for (size_type k=0; k<rows(); k++)
    \n-
    671 C[i][j] += M[i][k]*(*this)[k][j];
    \n-
    672 }
    \n-
    673 }
    \n-
    674 return C;
    \n-
    675 }
    \n-
    676
    \n-
    678 template<int l>
    \n-
    679 FieldMatrix<K,rows,l> rightmultiplyany (const FieldMatrix<K,cols,l>& M) const
    \n-
    680 {
    \n-
    681 FieldMatrix<K,rows,l> C;
    \n-
    682
    \n-
    683 for (size_type i=0; i<rows(); i++) {
    \n-
    684 for (size_type j=0; j<l; j++) {
    \n-
    685 C[i][j] = 0;
    \n-
    686 for (size_type k=0; k<cols(); k++)
    \n-
    687 C[i][j] += (*this)[i][k]*M[k][j];
    \n-
    688 }
    \n-
    689 }
    \n-
    690 return C;
    \n-
    691 }
    \n-
    692#endif
    \n-
    693
    \n-
    694 //===== sizes
    \n-
    695
    \n-
    \n-
    697 constexpr size_type N () const
    \n-
    698 {
    \n-
    699 return rows();
    \n-
    700 }
    \n-
    \n-
    701
    \n-
    \n-
    703 constexpr size_type M () const
    \n-
    704 {
    \n-
    705 return cols();
    \n-
    706 }
    \n-
    \n-
    707
    \n-
    \n-
    709 constexpr size_type rows() const
    \n-
    710 {
    \n-
    711 return asImp().mat_rows();
    \n-
    712 }
    \n-
    \n-
    713
    \n-
    \n-
    715 constexpr size_type cols() const
    \n-
    716 {
    \n-
    717 return asImp().mat_cols();
    \n-
    718 }
    \n-
    \n-
    719
    \n-
    720 //===== query
    \n-
    721
    \n-
    \n-
    723 bool exists ([[maybe_unused]] size_type i, [[maybe_unused]] size_type j) const
    \n-
    724 {
    \n-
    725 DUNE_ASSERT_BOUNDS(i >= 0 && i < rows());
    \n-
    726 DUNE_ASSERT_BOUNDS(j >= 0 && j < cols());
    \n-
    727 return true;
    \n-
    728 }
    \n-
    \n-
    729
    \n-
    730 protected:
    \n-
    731
    \n-
    732#ifndef DOXYGEN
    \n-
    733 struct ElimPivot
    \n-
    734 {
    \n-
    735 ElimPivot(std::vector<simd_index_type> & pivot);
    \n-
    736
    \n-
    737 void swap(std::size_t i, simd_index_type j);
    \n-
    738
    \n-
    739 template<typename T>
    \n-
    740 void operator()(const T&, int, int)
    \n-
    741 {}
    \n-
    742
    \n-
    743 std::vector<simd_index_type> & pivot_;
    \n-
    744 };
    \n-
    745
    \n-
    746 template<typename V>
    \n-
    747 struct Elim
    \n-
    748 {
    \n-
    749 Elim(V& rhs);
    \n-
    750
    \n-
    751 void swap(std::size_t i, simd_index_type j);
    \n-
    752
    \n-
    753 void operator()(const typename V::field_type& factor, int k, int i);
    \n-
    754
    \n-
    755 V* rhs_;
    \n-
    756 };
    \n-
    757
    \n-
    758 struct ElimDet
    \n-
    759 {
    \n-
    760 ElimDet(field_type& sign) : sign_(sign)
    \n-
    761 { sign_ = 1; }
    \n-
    762
    \n-
    763 void swap(std::size_t i, simd_index_type j)
    \n-
    764 {
    \n-
    765 sign_ *=
    \n-
    766 Simd::cond(simd_index_type(i) == j, field_type(1), field_type(-1));
    \n-
    767 }
    \n-
    768
    \n-
    769 void operator()(const field_type&, int, int)
    \n-
    770 {}
    \n-
    771
    \n-
    772 field_type& sign_;
    \n-
    773 };
    \n-
    774#endif // DOXYGEN
    \n-
    775
    \n-
    777
    \n-
    815 template<class Func, class Mask>
    \n-
    816 static void luDecomposition(DenseMatrix<MAT>& A, Func func,
    \n-
    817 Mask &nonsingularLanes, bool throwEarly, bool doPivoting);
    \n-
    818 };
    \n-
    \n-
    819
    \n-
    820#ifndef DOXYGEN
    \n-
    821 template<typename MAT>
    \n-
    822 DenseMatrix<MAT>::ElimPivot::ElimPivot(std::vector<simd_index_type> & pivot)
    \n-
    823 : pivot_(pivot)
    \n-
    824 {
    \n-
    825 typedef typename std::vector<size_type>::size_type size_type;
    \n-
    826 for(size_type i=0; i < pivot_.size(); ++i) pivot_[i]=i;
    \n-
    827 }
    \n-
    828
    \n-
    829 template<typename MAT>
    \n-
    830 void DenseMatrix<MAT>::ElimPivot::swap(std::size_t i, simd_index_type j)
    \n-
    831 {
    \n-
    832 pivot_[i] =
    \n-
    833 Simd::cond(Simd::Scalar<simd_index_type>(i) == j, pivot_[i], j);
    \n-
    834 }
    \n-
    835
    \n-
    836 template<typename MAT>
    \n-
    837 template<typename V>
    \n-
    838 DenseMatrix<MAT>::Elim<V>::Elim(V& rhs)
    \n-
    839 : rhs_(&rhs)
    \n-
    840 {}
    \n-
    841
    \n-
    842 template<typename MAT>
    \n-
    843 template<typename V>
    \n-
    844 void DenseMatrix<MAT>::Elim<V>::swap(std::size_t i, simd_index_type j)
    \n-
    845 {
    \n-
    846 using std::swap;
    \n-
    847
    \n-
    848 // see the comment in luDecomposition()
    \n-
    849 for(std::size_t l = 0; l < Simd::lanes(j); ++l)
    \n-
    850 swap(Simd::lane(l, (*rhs_)[ i ]),
    \n-
    851 Simd::lane(l, (*rhs_)[Simd::lane(l, j)]));
    \n-
    852 }
    \n-
    853
    \n-
    854 template<typename MAT>
    \n-
    855 template<typename V>
    \n-
    856 void DenseMatrix<MAT>::
    \n-
    857 Elim<V>::operator()(const typename V::field_type& factor, int k, int i)
    \n-
    858 {
    \n-
    859 (*rhs_)[k] -= factor*(*rhs_)[i];
    \n-
    860 }
    \n-
    861
    \n-
    862 template<typename MAT>
    \n-
    863 template<typename Func, class Mask>
    \n-
    864 inline void DenseMatrix<MAT>::
    \n-
    865 luDecomposition(DenseMatrix<MAT>& A, Func func, Mask &nonsingularLanes,
    \n-
    866 bool throwEarly, bool doPivoting)
    \n-
    867 {
    \n-
    868 using std::max;
    \n-
    869 using std::swap;
    \n-
    870
    \n-
    871 typedef typename FieldTraits<value_type>::real_type real_type;
    \n-
    872
    \n-
    873 // LU decomposition of A in A
    \n-
    874 for (size_type i=0; i<A.rows(); i++) // loop over all rows
    \n-
    875 {
    \n-
    876 real_type pivmax = fvmeta::absreal(A[i][i]);
    \n-
    877
    \n-
    878 if (doPivoting)
    \n-
    879 {
    \n-
    880 // compute maximum of column
    \n-
    881 simd_index_type imax=i;
    \n-
    882 for (size_type k=i+1; k<A.rows(); k++)
    \n-
    883 {
    \n-
    884 auto abs = fvmeta::absreal(A[k][i]);
    \n-
    885 auto mask = abs > pivmax;
    \n-
    886 pivmax = Simd::cond(mask, abs, pivmax);
    \n-
    887 imax = Simd::cond(mask, simd_index_type(k), imax);
    \n-
    888 }
    \n-
    889 // swap rows
    \n-
    890 for (size_type j=0; j<A.rows(); j++)
    \n-
    891 {
    \n-
    892 // This is a swap operation where the second operand is scattered,
    \n-
    893 // and on top of that is also extracted from deep within a
    \n-
    894 // moderately complicated data structure (a DenseMatrix), where we
    \n-
    895 // can't assume much on the memory layout. On intel processors,
    \n-
    896 // the only instruction that might help us here is vgather, but it
    \n-
    897 // is unclear whether that is even faster than a software
    \n-
    898 // implementation, and we would also need vscatter which does not
    \n-
    899 // exist. So break vectorization here and do it manually.
    \n-
    900 for(std::size_t l = 0; l < Simd::lanes(A[i][j]); ++l)
    \n-
    901 swap(Simd::lane(l, A[i][j]),
    \n-
    902 Simd::lane(l, A[Simd::lane(l, imax)][j]));
    \n-
    903 }
    \n-
    904 func.swap(i, imax); // swap the pivot or rhs
    \n-
    905 }
    \n-
    906
    \n-
    907 // singular ?
    \n-
    908 nonsingularLanes = nonsingularLanes && (pivmax != real_type(0));
    \n-
    909 if (throwEarly) {
    \n-
    910 if(!Simd::allTrue(nonsingularLanes))
    \n-
    911 DUNE_THROW(FMatrixError, "matrix is singular");
    \n-
    912 }
    \n-
    913 else { // !throwEarly
    \n-
    914 if(!Simd::anyTrue(nonsingularLanes))
    \n-
    915 return;
    \n-
    916 }
    \n-
    917
    \n-
    918 // eliminate
    \n-
    919 for (size_type k=i+1; k<A.rows(); k++)
    \n-
    920 {
    \n-
    921 // in the simd case, A[i][i] may be close to zero in some lanes. Pray
    \n-
    922 // that the result is no worse than a quiet NaN.
    \n-
    923 field_type factor = A[k][i]/A[i][i];
    \n-
    924 A[k][i] = factor;
    \n-
    925 for (size_type j=i+1; j<A.rows(); j++)
    \n-
    926 A[k][j] -= factor*A[i][j];
    \n-
    927 func(factor, k, i);
    \n-
    928 }
    \n-
    929 }
    \n-
    930 }
    \n-
    931
    \n-
    932 template<typename MAT>
    \n-
    933 template <class V1, class V2>
    \n-
    934 inline void DenseMatrix<MAT>::solve(V1& x, const V2& b, bool doPivoting) const
    \n-
    935 {
    \n-
    936 using real_type = typename FieldTraits<value_type>::real_type;
    \n-
    937 // never mind those ifs, because they get optimized away
    \n-
    938 if (rows()!=cols())
    \n-
    939 DUNE_THROW(FMatrixError, "Can't solve for a " << rows() << "x" << cols() << " matrix!");
    \n-
    940
    \n-
    941 if (rows()==1) {
    \n-
    942
    \n-
    943#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    944 if (Simd::anyTrue(fvmeta::absreal((*this)[0][0])
    \n-\n-
    946 DUNE_THROW(FMatrixError,"matrix is singular");
    \n-
    947#endif
    \n-
    948 x[0] = b[0]/(*this)[0][0];
    \n-
    949
    \n-
    950 }
    \n-
    951 else if (rows()==2) {
    \n-
    952
    \n-
    953 field_type detinv = (*this)[0][0]*(*this)[1][1]-(*this)[0][1]*(*this)[1][0];
    \n-
    954#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    955 if (Simd::anyTrue(fvmeta::absreal(detinv)
    \n-\n-
    957 DUNE_THROW(FMatrixError,"matrix is singular");
    \n-
    958#endif
    \n-
    959 detinv = real_type(1.0)/detinv;
    \n-
    960
    \n-
    961 x[0] = detinv*((*this)[1][1]*b[0]-(*this)[0][1]*b[1]);
    \n-
    962 x[1] = detinv*((*this)[0][0]*b[1]-(*this)[1][0]*b[0]);
    \n-
    963
    \n-
    964 }
    \n-
    965 else if (rows()==3) {
    \n-
    966
    \n-
    967 field_type d = determinant(doPivoting);
    \n-
    968#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    969 if (Simd::anyTrue(fvmeta::absreal(d)
    \n-\n-
    971 DUNE_THROW(FMatrixError,"matrix is singular");
    \n-
    972#endif
    \n-
    973
    \n-
    974 x[0] = (b[0]*(*this)[1][1]*(*this)[2][2] - b[0]*(*this)[2][1]*(*this)[1][2]
    \n-
    975 - b[1] *(*this)[0][1]*(*this)[2][2] + b[1]*(*this)[2][1]*(*this)[0][2]
    \n-
    976 + b[2] *(*this)[0][1]*(*this)[1][2] - b[2]*(*this)[1][1]*(*this)[0][2]) / d;
    \n-
    977
    \n-
    978 x[1] = ((*this)[0][0]*b[1]*(*this)[2][2] - (*this)[0][0]*b[2]*(*this)[1][2]
    \n-
    979 - (*this)[1][0] *b[0]*(*this)[2][2] + (*this)[1][0]*b[2]*(*this)[0][2]
    \n-
    980 + (*this)[2][0] *b[0]*(*this)[1][2] - (*this)[2][0]*b[1]*(*this)[0][2]) / d;
    \n-
    981
    \n-
    982 x[2] = ((*this)[0][0]*(*this)[1][1]*b[2] - (*this)[0][0]*(*this)[2][1]*b[1]
    \n-
    983 - (*this)[1][0] *(*this)[0][1]*b[2] + (*this)[1][0]*(*this)[2][1]*b[0]
    \n-
    984 + (*this)[2][0] *(*this)[0][1]*b[1] - (*this)[2][0]*(*this)[1][1]*b[0]) / d;
    \n-
    985
    \n-
    986 }
    \n-
    987 else {
    \n-
    988
    \n-
    989 V1& rhs = x; // use x to store rhs
    \n-
    990 rhs = b; // copy data
    \n-
    991 Elim<V1> elim(rhs);
    \n-
    992 AutonomousValue<MAT> A(asImp());
    \n-
    993 Simd::Mask<typename FieldTraits<value_type>::real_type>
    \n-
    994 nonsingularLanes(true);
    \n-
    995
    \n-
    996 AutonomousValue<MAT>::luDecomposition(A, elim, nonsingularLanes, true, doPivoting);
    \n-
    997
    \n-
    998 // backsolve
    \n-
    999 for(int i=rows()-1; i>=0; i--) {
    \n-
    1000 for (size_type j=i+1; j<rows(); j++)
    \n-
    1001 rhs[i] -= A[i][j]*x[j];
    \n-
    1002 x[i] = rhs[i]/A[i][i];
    \n-
    1003 }
    \n-
    1004 }
    \n-
    1005 }
    \n-
    1006
    \n-
    1007 template<typename MAT>
    \n-
    1008 inline void DenseMatrix<MAT>::invert(bool doPivoting)
    \n-
    1009 {
    \n-
    1010 using real_type = typename FieldTraits<MAT>::real_type;
    \n-
    1011 using std::swap;
    \n-
    1012
    \n-
    1013 // never mind those ifs, because they get optimized away
    \n-
    1014 if (rows()!=cols())
    \n-
    1015 DUNE_THROW(FMatrixError, "Can't invert a " << rows() << "x" << cols() << " matrix!");
    \n-
    1016
    \n-
    1017 if (rows()==1) {
    \n-
    1018
    \n-
    1019#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    1020 if (Simd::anyTrue(fvmeta::absreal((*this)[0][0])
    \n-\n-
    1022 DUNE_THROW(FMatrixError,"matrix is singular");
    \n-
    1023#endif
    \n-
    1024 (*this)[0][0] = real_type( 1 ) / (*this)[0][0];
    \n-
    1025
    \n-
    1026 }
    \n-
    1027 else if (rows()==2) {
    \n-
    1028
    \n-
    1029 field_type detinv = (*this)[0][0]*(*this)[1][1]-(*this)[0][1]*(*this)[1][0];
    \n-
    1030#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    1031 if (Simd::anyTrue(fvmeta::absreal(detinv)
    \n-\n-
    1033 DUNE_THROW(FMatrixError,"matrix is singular");
    \n-
    1034#endif
    \n-
    1035 detinv = real_type( 1 ) / detinv;
    \n-
    1036
    \n-
    1037 field_type temp=(*this)[0][0];
    \n-
    1038 (*this)[0][0] = (*this)[1][1]*detinv;
    \n-
    1039 (*this)[0][1] = -(*this)[0][1]*detinv;
    \n-
    1040 (*this)[1][0] = -(*this)[1][0]*detinv;
    \n-
    1041 (*this)[1][1] = temp*detinv;
    \n-
    1042
    \n-
    1043 }
    \n-
    1044 else if (rows()==3)
    \n-
    1045 {
    \n-
    1046 using K = field_type;
    \n-
    1047 // code generated by maple
    \n-
    1048 K t4 = (*this)[0][0] * (*this)[1][1];
    \n-
    1049 K t6 = (*this)[0][0] * (*this)[1][2];
    \n-
    1050 K t8 = (*this)[0][1] * (*this)[1][0];
    \n-
    1051 K t10 = (*this)[0][2] * (*this)[1][0];
    \n-
    1052 K t12 = (*this)[0][1] * (*this)[2][0];
    \n-
    1053 K t14 = (*this)[0][2] * (*this)[2][0];
    \n-
    1054
    \n-
    1055 K det = (t4*(*this)[2][2]-t6*(*this)[2][1]-t8*(*this)[2][2]+
    \n-
    1056 t10*(*this)[2][1]+t12*(*this)[1][2]-t14*(*this)[1][1]);
    \n-
    1057 K t17 = K(1.0)/det;
    \n-
    1058
    \n-
    1059 K matrix01 = (*this)[0][1];
    \n-
    1060 K matrix00 = (*this)[0][0];
    \n-
    1061 K matrix10 = (*this)[1][0];
    \n-
    1062 K matrix11 = (*this)[1][1];
    \n-
    1063
    \n-
    1064 (*this)[0][0] = ((*this)[1][1] * (*this)[2][2] - (*this)[1][2] * (*this)[2][1])*t17;
    \n-
    1065 (*this)[0][1] = -((*this)[0][1] * (*this)[2][2] - (*this)[0][2] * (*this)[2][1])*t17;
    \n-
    1066 (*this)[0][2] = (matrix01 * (*this)[1][2] - (*this)[0][2] * (*this)[1][1])*t17;
    \n-
    1067 (*this)[1][0] = -((*this)[1][0] * (*this)[2][2] - (*this)[1][2] * (*this)[2][0])*t17;
    \n-
    1068 (*this)[1][1] = (matrix00 * (*this)[2][2] - t14) * t17;
    \n-
    1069 (*this)[1][2] = -(t6-t10) * t17;
    \n-
    1070 (*this)[2][0] = (matrix10 * (*this)[2][1] - matrix11 * (*this)[2][0]) * t17;
    \n-
    1071 (*this)[2][1] = -(matrix00 * (*this)[2][1] - t12) * t17;
    \n-
    1072 (*this)[2][2] = (t4-t8) * t17;
    \n-
    1073 }
    \n-
    1074 else {
    \n-
    1075 using std::swap;
    \n-
    1076
    \n-
    1077 AutonomousValue<MAT> A(asImp());
    \n-
    1078 std::vector<simd_index_type> pivot(rows());
    \n-
    1079 Simd::Mask<typename FieldTraits<value_type>::real_type>
    \n-
    1080 nonsingularLanes(true);
    \n-
    1081 AutonomousValue<MAT>::luDecomposition(A, ElimPivot(pivot), nonsingularLanes, true, doPivoting);
    \n-
    1082 auto& L=A;
    \n-
    1083 auto& U=A;
    \n-
    1084
    \n-
    1085 // initialize inverse
    \n-
    1086 *this=field_type();
    \n-
    1087
    \n-
    1088 for(size_type i=0; i<rows(); ++i)
    \n-
    1089 (*this)[i][i]=1;
    \n-
    1090
    \n-
    1091 // L Y = I; multiple right hand sides
    \n-
    1092 for (size_type i=0; i<rows(); i++)
    \n-
    1093 for (size_type j=0; j<i; j++)
    \n-
    1094 for (size_type k=0; k<rows(); k++)
    \n-
    1095 (*this)[i][k] -= L[i][j]*(*this)[j][k];
    \n-
    1096
    \n-
    1097 // U A^{-1} = Y
    \n-
    1098 for (size_type i=rows(); i>0;) {
    \n-
    1099 --i;
    \n-
    1100 for (size_type k=0; k<rows(); k++) {
    \n-
    1101 for (size_type j=i+1; j<rows(); j++)
    \n-
    1102 (*this)[i][k] -= U[i][j]*(*this)[j][k];
    \n-
    1103 (*this)[i][k] /= U[i][i];
    \n-
    1104 }
    \n-
    1105 }
    \n-
    1106
    \n-
    1107 for(size_type i=rows(); i>0; ) {
    \n-
    1108 --i;
    \n-
    1109 for(std::size_t l = 0; l < Simd::lanes((*this)[0][0]); ++l)
    \n-
    1110 {
    \n-
    1111 std::size_t pi = Simd::lane(l, pivot[i]);
    \n-
    1112 if(i!=pi)
    \n-
    1113 for(size_type j=0; j<rows(); ++j)
    \n-
    1114 swap(Simd::lane(l, (*this)[j][pi]),
    \n-
    1115 Simd::lane(l, (*this)[j][ i]));
    \n-
    1116 }
    \n-
    1117 }
    \n-
    1118 }
    \n-
    1119 }
    \n-
    1120
    \n-
    1121 // implementation of the determinant
    \n-
    1122 template<typename MAT>
    \n-
    1123 inline typename DenseMatrix<MAT>::field_type
    \n-
    1124 DenseMatrix<MAT>::determinant(bool doPivoting) const
    \n-
    1125 {
    \n-
    1126 // never mind those ifs, because they get optimized away
    \n-
    1127 if (rows()!=cols())
    \n-
    1128 DUNE_THROW(FMatrixError, "There is no determinant for a " << rows() << "x" << cols() << " matrix!");
    \n-
    1129
    \n-
    1130 if (rows()==1)
    \n-
    1131 return (*this)[0][0];
    \n-
    1132
    \n-
    1133 if (rows()==2)
    \n-
    1134 return (*this)[0][0]*(*this)[1][1] - (*this)[0][1]*(*this)[1][0];
    \n-
    1135
    \n-
    1136 if (rows()==3) {
    \n-
    1137 // code generated by maple
    \n-
    1138 field_type t4 = (*this)[0][0] * (*this)[1][1];
    \n-
    1139 field_type t6 = (*this)[0][0] * (*this)[1][2];
    \n-
    1140 field_type t8 = (*this)[0][1] * (*this)[1][0];
    \n-
    1141 field_type t10 = (*this)[0][2] * (*this)[1][0];
    \n-
    1142 field_type t12 = (*this)[0][1] * (*this)[2][0];
    \n-
    1143 field_type t14 = (*this)[0][2] * (*this)[2][0];
    \n-
    1144
    \n-
    1145 return (t4*(*this)[2][2]-t6*(*this)[2][1]-t8*(*this)[2][2]+
    \n-
    1146 t10*(*this)[2][1]+t12*(*this)[1][2]-t14*(*this)[1][1]);
    \n-
    1147
    \n-
    1148 }
    \n-
    1149
    \n-
    1150 AutonomousValue<MAT> A(asImp());
    \n-
    1151 field_type det;
    \n-
    1152 Simd::Mask<typename FieldTraits<value_type>::real_type>
    \n-
    1153 nonsingularLanes(true);
    \n-
    1154
    \n-
    1155 AutonomousValue<MAT>::luDecomposition(A, ElimDet(det), nonsingularLanes, false, doPivoting);
    \n-
    1156 det = Simd::cond(nonsingularLanes, det, field_type(0));
    \n-
    1157
    \n-
    1158 for (size_type i = 0; i < rows(); ++i)
    \n-
    1159 det *= A[i][i];
    \n-
    1160 return det;
    \n-
    1161 }
    \n-
    1162
    \n-
    1163#endif // DOXYGEN
    \n-
    1164
    \n-
    \n-
    1165 namespace DenseMatrixHelp {
    \n-
    1166
    \n-
    1168 template <typename MAT, typename V1, typename V2>
    \n-
    \n-
    1169 static inline void multAssign(const DenseMatrix<MAT> &matrix, const DenseVector<V1> & x, DenseVector<V2> & ret)
    \n-
    1170 {
    \n-
    1171 DUNE_ASSERT_BOUNDS(x.size() == matrix.cols());
    \n-
    1172 DUNE_ASSERT_BOUNDS(ret.size() == matrix.rows());
    \n-
    1173 typedef typename DenseMatrix<MAT>::size_type size_type;
    \n-
    1174
    \n-
    1175 for(size_type i=0; i<matrix.rows(); ++i)
    \n-
    1176 {
    \n-
    1177 ret[i] = 0.0;
    \n-
    1178 for(size_type j=0; j<matrix.cols(); ++j)
    \n-
    1179 {
    \n-
    1180 ret[i] += matrix[i][j]*x[j];
    \n-
    1181 }
    \n-
    1182 }
    \n-
    1183 }
    \n-
    \n-
    1184
    \n-
    1185#if 0
    \n-
    1187 template <typename K, int rows, int cols>
    \n-
    1188 static inline void multAssignTransposed( const FieldMatrix<K,rows,cols> &matrix, const FieldVector<K,rows> & x, FieldVector<K,cols> & ret)
    \n-
    1189 {
    \n-
    1190 typedef typename FieldMatrix<K,rows,cols>::size_type size_type;
    \n-
    1191
    \n-
    1192 for(size_type i=0; i<cols(); ++i)
    \n-
    1193 {
    \n-
    1194 ret[i] = 0.0;
    \n-
    1195 for(size_type j=0; j<rows(); ++j)
    \n-
    1196 ret[i] += matrix[j][i]*x[j];
    \n-
    1197 }
    \n-
    1198 }
    \n-
    1199
    \n-
    1201 template <typename K, int rows, int cols>
    \n-
    1202 static inline FieldVector<K,rows> mult(const FieldMatrix<K,rows,cols> &matrix, const FieldVector<K,cols> & x)
    \n-
    1203 {
    \n-
    1204 FieldVector<K,rows> ret;
    \n-
    1205 multAssign(matrix,x,ret);
    \n-
    1206 return ret;
    \n-
    1207 }
    \n-
    1208
    \n-
    1210 template <typename K, int rows, int cols>
    \n-
    1211 static inline FieldVector<K,cols> multTransposed(const FieldMatrix<K,rows,cols> &matrix, const FieldVector<K,rows> & x)
    \n-
    1212 {
    \n-
    1213 FieldVector<K,cols> ret;
    \n-
    1214 multAssignTransposed( matrix, x, ret );
    \n-
    1215 return ret;
    \n-
    1216 }
    \n-
    1217#endif
    \n-
    1218
    \n-
    1219 } // end namespace DenseMatrixHelp
    \n-
    \n-
    1220
    \n-
    1222 template<typename MAT>
    \n-
    \n-
    1223 std::ostream& operator<< (std::ostream& s, const DenseMatrix<MAT>& a)
    \n-
    1224 {
    \n-
    1225 for (typename DenseMatrix<MAT>::size_type i=0; i<a.rows(); i++)
    \n-
    1226 s << a[i] << std::endl;
    \n-
    1227 return s;
    \n-
    1228 }
    \n-
    \n-
    1229
    \n-
    1232} // end namespace Dune
    \n-
    1233
    \n-
    1234#endif
    \n-
    A free function to provide the demangled class name of a given object or type as a string.
    \n-
    Implements a scalar vector view wrapper around an existing scalar.
    \n-
    Macro for wrapping boundary checks.
    \n-
    A few common exception classes.
    \n-
    Implements a vector constructed from a given type representing a field and a compile-time given size.
    \n-
    Various precision settings for calculations with FieldMatrix and FieldVector.
    \n-
    Some useful basic math stuff.
    \n-
    Traits for type conversions and type information.
    \n-
    #define DUNE_ASSERT_BOUNDS(cond)
    If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do nothing.
    Definition boundschecking.hh:30
    \n-
    typename AutonomousValueType< T >::type AutonomousValue
    Type free of internal references that T can be converted to.
    Definition typetraits.hh:588
    \n-
    std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
    Definition bigunsignedint.hh:278
    \n-
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n-
    bool anyTrue(const Mask &mask)
    Whether any entry is true
    Definition simd/interface.hh:429
    \n-
    V cond(M &&mask, const V &ifTrue, const V &ifFalse)
    Like the ?: operator.
    Definition simd/interface.hh:386
    \n-
    bool allTrue(const Mask &mask)
    Whether all entries are true
    Definition simd/interface.hh:439
    \n-
    typename Overloads::RebindType< std::decay_t< S >, std::decay_t< V > >::type Rebind
    Construct SIMD type with different scalar type.
    Definition simd/interface.hh:253
    \n-
    constexpr std::size_t lanes()
    Number of lanes in a SIMD type.
    Definition simd/interface.hh:305
    \n-
    decltype(auto) lane(std::size_t l, V &&v)
    Extract an element of a SIMD type.
    Definition simd/interface.hh:324
    \n-
    Mask< V > mask(ADLTag< 0, std::is_same< V, Mask< V > >::value >, const V &v)
    implements Simd::mask()
    Definition defaults.hh:153
    \n-
    STL namespace.
    \n-
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    void swap(T &v1, T &v2, bool mask)
    Definition simd.hh:472
    \n-
    int sign(const T &val)
    Return the sign of the value.
    Definition math.hh:180
    \n-
    K conjugateComplex(const K &x)
    compute conjugate complex of x
    Definition math.hh:164
    \n-
    static void multAssign(const DenseMatrix< MAT > &matrix, const DenseVector< V1 > &x, DenseVector< V2 > &ret)
    calculates ret = matrix * x
    Definition densematrix.hh:1169
    \n-
    A dense n x m matrix.
    Definition densematrix.hh:140
    \n-
    ConstIterator const_iterator
    typedef for stl compliant access
    Definition densematrix.hh:244
    \n-
    derived_type operator-() const
    Matrix negation.
    Definition densematrix.hh:298
    \n-
    void solve(V1 &x, const V2 &b, bool doPivoting=true) const
    Solve system A x = b.
    \n-
    void mv(const X &x, Y &y) const
    y = A x
    Definition densematrix.hh:368
    \n-
    Traits::value_type field_type
    export the type representing the field
    Definition densematrix.hh:160
    \n-
    derived_type & axpy(const field_type &a, const DenseMatrix< Other > &x)
    vector space axpy operation (*this += a x)
    Definition densematrix.hh:338
    \n-
    ConstIterator beforeEnd() const
    Definition densematrix.hh:264
    \n-
    derived_type & operator=(const RHS &rhs)
    Definition densematrix.hh:279
    \n-
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition densematrix.hh:458
    \n-
    FieldTraits< vt >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition densematrix.hh:561
    \n-
    std::remove_reference< const_row_reference >::type::ConstIterator ConstColIterator
    rename the iterators for easier access
    Definition densematrix.hh:248
    \n-
    ConstIterator beforeBegin() const
    Definition densematrix.hh:271
    \n-
    void invert(bool doPivoting=true)
    Compute inverse.
    \n-
    static void luDecomposition(DenseMatrix< MAT > &A, Func func, Mask &nonsingularLanes, bool throwEarly, bool doPivoting)
    do an LU-Decomposition on matrix A
    \n-
    Traits::value_type block_type
    export the type representing the components
    Definition densematrix.hh:163
    \n-
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition densematrix.hh:387
    \n-
    constexpr size_type cols() const
    number of columns
    Definition densematrix.hh:715
    \n-
    size_type size() const
    size method (number of rows)
    Definition densematrix.hh:200
    \n-
    constexpr size_type M() const
    number of columns
    Definition densematrix.hh:703
    \n-
    MAT & rightmultiply(const DenseMatrix< M2 > &M)
    Multiplies M from the right to this matrix.
    Definition densematrix.hh:645
    \n-
    Iterator end()
    end iterator
    Definition densematrix.hh:222
    \n-
    Iterator beforeBegin()
    Definition densematrix.hh:236
    \n-
    derived_type & operator/=(const field_type &k)
    vector space division by scalar
    Definition densematrix.hh:329
    \n-
    derived_type & operator*=(const field_type &k)
    vector space multiplication with scalar
    Definition densematrix.hh:321
    \n-
    Iterator beforeEnd()
    Definition densematrix.hh:229
    \n-
    Traits::value_type value_type
    export the type representing the field
    Definition densematrix.hh:157
    \n-
    void usmv(const typename FieldTraits< Y >::field_type &alpha, const X &x, Y &y) const
    y += alpha A x
    Definition densematrix.hh:484
    \n-
    void usmhv(const typename FieldTraits< Y >::field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition densematrix.hh:512
    \n-
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition densematrix.hh:445
    \n-
    constexpr size_type rows() const
    number of rows
    Definition densematrix.hh:709
    \n-
    MAT & leftmultiply(const DenseMatrix< M2 > &M)
    Multiplies M from the left to this matrix.
    Definition densematrix.hh:627
    \n-
    void usmtv(const typename FieldTraits< Y >::field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition densematrix.hh:498
    \n-
    derived_type & operator-=(const DenseMatrix< Other > &x)
    vector space subtraction
    Definition densematrix.hh:312
    \n-
    bool operator!=(const DenseMatrix< Other > &x) const
    Binary matrix incomparison.
    Definition densematrix.hh:358
    \n-
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition densematrix.hh:471
    \n-
    Traits::derived_type derived_type
    type of derived matrix class
    Definition densematrix.hh:154
    \n-
    row_reference operator[](size_type i)
    random access
    Definition densematrix.hh:189
    \n-
    bool exists(size_type i, size_type j) const
    return true when (i,j) is in pattern
    Definition densematrix.hh:723
    \n-
    Iterator RowIterator
    rename the iterators for easier access
    Definition densematrix.hh:211
    \n-
    static constexpr int blocklevel
    The number of block levels we contain. This is the leaf, that is, 1.
    Definition densematrix.hh:178
    \n-
    FieldTraits< value_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition densematrix.hh:528
    \n-
    void umv(const X &x, Y &y) const
    y += A x
    Definition densematrix.hh:406
    \n-
    DenseIterator< const DenseMatrix, const row_type, const_row_reference > ConstIterator
    Iterator class for sequential access.
    Definition densematrix.hh:242
    \n-
    FieldTraits< vt >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition densematrix.hh:546
    \n-
    Traits::row_type row_type
    The type used to represent a row (must fulfill the Dune::DenseVector interface)
    Definition densematrix.hh:169
    \n-
    constexpr size_type N() const
    number of rows
    Definition densematrix.hh:697
    \n-
    Traits::size_type size_type
    The type used for the index access and size operation.
    Definition densematrix.hh:166
    \n-
    Traits::const_row_reference const_row_reference
    The type used to represent a reference to a constant row (usually const row_type &)
    Definition densematrix.hh:175
    \n-
    FieldTraits< value_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition densematrix.hh:536
    \n-
    std::remove_reference< row_reference >::type::Iterator ColIterator
    rename the iterators for easier access
    Definition densematrix.hh:213
    \n-
    Traits::row_reference row_reference
    The type used to represent a reference to a row (usually row_type &)
    Definition densematrix.hh:172
    \n-
    bool operator==(const DenseMatrix< Other > &x) const
    Binary matrix comparison.
    Definition densematrix.hh:348
    \n-
    Iterator iterator
    typedef for stl compliant access
    Definition densematrix.hh:209
    \n-
    ConstIterator ConstRowIterator
    rename the iterators for easier access
    Definition densematrix.hh:246
    \n-
    DenseIterator< DenseMatrix, row_type, row_reference > Iterator
    Iterator class for sequential access.
    Definition densematrix.hh:207
    \n-
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition densematrix.hh:419
    \n-
    ConstIterator begin() const
    begin iterator
    Definition densematrix.hh:251
    \n-
    field_type determinant(bool doPivoting=true) const
    calculates the determinant of this matrix
    \n-
    Iterator begin()
    begin iterator
    Definition densematrix.hh:216
    \n-
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition densematrix.hh:432
    \n-
    derived_type & operator+=(const DenseMatrix< Other > &x)
    vector space addition
    Definition densematrix.hh:289
    \n-
    ConstIterator end() const
    end iterator
    Definition densematrix.hh:257
    \n-
    const FieldTraits< typenameDenseMatVecTraits< M >::value_type >::real_type real_type
    Definition densematrix.hh:34
    \n-
    const FieldTraits< typenameDenseMatVecTraits< M >::value_type >::field_type field_type
    Definition densematrix.hh:33
    \n-
    A dense n x m matrix.
    Definition fmatrix.hh:117
    \n-
    Base::size_type size_type
    Definition fmatrix.hh:127
    \n-
    vector space out of a tensor product of fields.
    Definition fvector.hh:91
    \n-
    you have to specialize this structure for any type that should be assignable to a DenseMatrix
    Definition densematrix.hh:59
    \n-
    Error thrown if operations of a FieldMatrix fail.
    Definition densematrix.hh:126
    \n-
    Interface for a class of dense vectors over a given field.
    Definition densevector.hh:229
    \n-
    size_type size() const
    size method
    Definition densevector.hh:336
    \n-
    Generic iterator class for dense vector and matrix implementations.
    Definition densevector.hh:131
    \n-
    Default exception class for mathematical errors.
    Definition exceptions.hh:241
    \n-
    Definition ftraits.hh:26
    \n-
    T field_type
    export the type representing the field
    Definition ftraits.hh:28
    \n-
    T real_type
    export the type representing the real type of the field
    Definition ftraits.hh:30
    \n-
    Definition matvectraits.hh:31
    \n-
    static ctype absolute_limit()
    return threshold to declare matrix singular
    Definition precision.hh:28
    \n-
    Include file for users of the SIMD abstraction layer.
    \n+Go to the documentation of this file.
    1// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n+
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n+
    3// Will be removed after the 2.7 release
    \n+
    4#warning "Deprecated header, use #include <dune/common/parallel/communication.hh> instead!"
    \n+\n+
    Implements an utility class that provides collective communication methods for sequential programs.
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1521 +1,21 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-densematrix.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+collectivecommunication.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-2// vi: set et ts=4 sw=2 sts=2:\n-3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n+1// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n-4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_DENSEMATRIX_HH\n-6#define DUNE_DENSEMATRIX_HH\n-7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14\n-15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh>\n-16#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bc_\bl_\ba_\bs_\bs_\bn_\ba_\bm_\be_\b._\bh_\bh>\n-17#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n-18#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-19#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bm_\ba_\bt_\bh_\b._\bh_\bh>\n-20#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b._\bh_\bh>\n-21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bi_\bm_\bd_\b/_\bs_\bi_\bm_\bd_\b._\bh_\bh>\n-22#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-23#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bv_\be_\bc_\bt_\bo_\br_\bv_\bi_\be_\bw_\b._\bh_\bh>\n-24\n-25namespace _\bD_\bu_\bn_\be\n-26{\n-27\n-28 template class DenseMatrix;\n-29\n-30 template\n-_\b3_\b1 struct _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs< _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx >\n-32 {\n-_\b3_\b3 typedef const typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bV_\be_\bc_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\b>_\b:_\b:\n-_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be >_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b3_\b4 typedef const typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bV_\be_\bc_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\b>_\b:_\b:\n-_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be >_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-35 };\n-36\n-37 template class _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx;\n-38 template class _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br;\n-39\n-58 template< class DenseMatrix, class RHS >\n-_\b5_\b9 struct _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br;\n-60\n-61#ifndef DOXYGEN\n-62 namespace Impl\n-63 {\n-64\n-65 template< class DenseMatrix, class RHS, class = void >\n-66 class _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br\n-67 {};\n-68\n-69 template< class DenseMatrix, class RHS >\n-70 class _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br< _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx, RHS, _\bs_\bt_\bd::enable_if_t< Dune::\n-IsNumber< RHS >::value > >\n-71 {\n-72 public:\n-73 static void apply ( _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx &denseMatrix, const RHS &rhs )\n-74 {\n-75 typedef typename _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be field_type;\n-76 std::fill( denseMatrix._\bb_\be_\bg_\bi_\bn(), denseMatrix._\be_\bn_\bd(), static_cast< field_type >\n-( rhs ) );\n-77 }\n-78 };\n-79\n-80 template< class DenseMatrix, class RHS >\n-81 class DenseMatrixAssigner< DenseMatrix, RHS, _\bs_\bt_\bd::enable_if_t< !std::\n-is_same< typename RHS::const_iterator, void >::value\n-82 && std::is_convertible< typename RHS::const_iterator::value_type, typename\n-DenseMatrix::iterator::value_type >::value > >\n-83 {\n-84 public:\n-85 static void apply ( DenseMatrix &denseMatrix, const RHS &rhs )\n-86 {\n-87 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(rhs.N() == denseMatrix.N());\n-88 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(rhs.M() == denseMatrix.M());\n-89 typename DenseMatrix::iterator tIt = std::begin(denseMatrix);\n-90 typename RHS::const_iterator sIt = std::begin(rhs);\n-91 for(; sIt != std::end(rhs); ++tIt, ++sIt)\n-92 std::copy(std::begin(*sIt), std::end(*sIt), std::begin(*tIt));\n-93 }\n-94 };\n-95\n-96 } // namespace Impl\n-97\n-98\n-99\n-100 template< class DenseMatrix, class RHS >\n-101 struct DenseMatrixAssigner\n-102 : public Impl::DenseMatrixAssigner< DenseMatrix, RHS >\n-103 {};\n-104\n-105\n-106 namespace Impl\n-107 {\n-108\n-109 template< class DenseMatrix, class RHS >\n-110 std::true_type hasDenseMatrixAssigner ( DenseMatrix &, const RHS &,\n-decltype( _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bR_\bH_\bS_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by( std::declval<\n-DenseMatrix & >(), std::declval< const RHS & >() ) ) * = nullptr );\n-111\n-112 std::false_type hasDenseMatrixAssigner ( ... );\n-113\n-114 } // namespace Impl\n-115\n-116 template< class DenseMatrix, class RHS >\n-117 struct HasDenseMatrixAssigner\n-118 : public decltype( Impl::hasDenseMatrixAssigner( std::declval< DenseMatrix\n-& >(), std::declval< const RHS & >() ) )\n-119 {};\n-120\n-121#endif // #ifndef DOXYGEN\n-122\n-123\n-124\n-_\b1_\b2_\b6 class _\bF_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br : public _\bM_\ba_\bt_\bh_\bE_\br_\br_\bo_\br {};\n-127\n-138 template\n-_\b1_\b3_\b9 class _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n-140 {\n-141 typedef _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bV_\be_\bc_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\bA_\bT_\b> _\bT_\br_\ba_\bi_\bt_\bs;\n-142\n-143 // Curiously recurring template pattern\n-144 constexpr MAT & asImp() { return static_cast(*this); }\n-145 constexpr const MAT & asImp() const { return static_cast\n-(*this); }\n-146\n-147 template \n-_\b1_\b4_\b8 friend class _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx;\n-149\n-150 public:\n-151 //===== type definitions and constants\n-152\n-_\b1_\b5_\b4 typedef typename Traits::derived_type _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be;\n-155\n-_\b1_\b5_\b7 typedef typename Traits::value_type _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n-158\n-_\b1_\b6_\b0 typedef typename Traits::value_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-161\n-_\b1_\b6_\b3 typedef typename Traits::value_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-164\n-_\b1_\b6_\b6 typedef typename Traits::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-167\n-_\b1_\b6_\b9 typedef typename Traits::row_type _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n-170\n-_\b1_\b7_\b2 typedef typename Traits::row_reference _\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-173\n-_\b1_\b7_\b5 typedef typename Traits::const_row_reference _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-176\n-_\b1_\b7_\b8 constexpr static int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = 1;\n-179\n-180 private:\n-183 using simd_index_type = _\bS_\bi_\bm_\bd_\b:_\b:_\bR_\be_\bb_\bi_\bn_\bd_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b,_\b _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>;\n-184\n-185 public:\n-186 //===== access to components\n-187\n-_\b1_\b8_\b9 _\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ( _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i )\n-190 {\n-191 return asImp().mat_access(i);\n-192 }\n-193\n-_\b1_\b9_\b4 _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ( _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i ) const\n-195 {\n-196 return asImp().mat_access(i);\n-197 }\n-198\n-_\b2_\b0_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const\n-201 {\n-202 return _\br_\bo_\bw_\bs();\n-203 }\n-204\n-205 //===== iterator interface to rows of the matrix\n-_\b2_\b0_\b7 typedef _\bD_\be_\bn_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b,_\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b> _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b0_\b9 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b1_\b1 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b1_\b3 typedef typename std::remove_reference::type::Iterator\n-_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-214\n-_\b2_\b1_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n-217 {\n-218 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,0);\n-219 }\n-220\n-_\b2_\b2_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n-223 {\n-224 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,_\br_\bo_\bw_\bs());\n-225 }\n-226\n-_\b2_\b2_\b9 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n-230 {\n-231 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,_\br_\bo_\bw_\bs()-1);\n-232 }\n-233\n-_\b2_\b3_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n-237 {\n-238 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,-1);\n-239 }\n-240\n-_\b2_\b4_\b2 typedef _\bD_\be_\bn_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\bc_\bo_\bn_\bs_\bt_\b _\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b,_\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b>\n-_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b4_\b4 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b4_\b6 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b4_\b8 typedef typename std::remove_reference::type::\n-ConstIterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-249\n-_\b2_\b5_\b1 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n-252 {\n-253 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,0);\n-254 }\n-255\n-_\b2_\b5_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n-258 {\n-259 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,_\br_\bo_\bw_\bs());\n-260 }\n-261\n-_\b2_\b6_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd () const\n-265 {\n-266 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,_\br_\bo_\bw_\bs()-1);\n-267 }\n-268\n-_\b2_\b7_\b1 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n-272 {\n-273 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,-1);\n-274 }\n-275\n-276 //===== assignment\n-277\n-278 template< class RHS, class = std::enable_if_t< HasDenseMatrixAssigner< MAT,\n-RHS >::value > >\n-_\b2_\b7_\b9 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be &_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b ( const RHS &rhs )\n-280 {\n-281 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\b _\bM_\bA_\bT_\b,_\b _\bR_\bH_\bS_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by( asImp(), rhs );\n-282 return asImp();\n-283 }\n-284\n-285 //===== vector space arithmetic\n-286\n-288 template \n-_\b2_\b8_\b9 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be &_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bO_\bt_\bh_\be_\br_\b>& x)\n-290 {\n-291 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\br_\bo_\bw_\bs() == x._\br_\bo_\bw_\bs());\n-292 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-293 (*this)[i] += x[i];\n-294 return asImp();\n-295 }\n-296\n-_\b2_\b9_\b8 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b () const\n-299 {\n-300 MAT result;\n-301 using idx_type = typename decltype(result)_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-302\n-303 for (idx_type i = 0; i < _\br_\bo_\bw_\bs(); ++i)\n-304 for (idx_type j = 0; j < _\bc_\bo_\bl_\bs(); ++j)\n-305 result[i][j] = - asImp()[i][j];\n-306\n-307 return result;\n-308 }\n-309\n-311 template \n-_\b3_\b1_\b2 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be &_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bO_\bt_\bh_\be_\br_\b>& x)\n-313 {\n-314 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\br_\bo_\bw_\bs() == x._\br_\bo_\bw_\bs());\n-315 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-316 (*this)[i] -= x[i];\n-317 return asImp();\n-318 }\n-319\n-_\b3_\b2_\b1 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be &_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-322 {\n-323 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-324 (*this)[i] *= k;\n-325 return asImp();\n-326 }\n-327\n-_\b3_\b2_\b9 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be &_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-330 {\n-331 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-332 (*this)[i] /= k;\n-333 return asImp();\n-334 }\n-335\n-337 template \n-_\b3_\b3_\b8 _\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be &_\ba_\bx_\bp_\by (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &a, const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bO_\bt_\bh_\be_\br_\b> &x )\n-339 {\n-340 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\br_\bo_\bw_\bs() == x._\br_\bo_\bw_\bs());\n-341 for( _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0; i < _\br_\bo_\bw_\bs(); ++i )\n-342 (*this)[ i ].axpy( a, x[ i ] );\n-343 return asImp();\n-344 }\n-345\n-347 template \n-_\b3_\b4_\b8 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bO_\bt_\bh_\be_\br_\b>& x) const\n-349 {\n-350 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\br_\bo_\bw_\bs() == x._\br_\bo_\bw_\bs());\n-351 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-352 if ((*this)[i]!=x[i])\n-353 return false;\n-354 return true;\n-355 }\n-357 template \n-_\b3_\b5_\b8 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bO_\bt_\bh_\be_\br_\b>& x) const\n-359 {\n-360 return !_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(x);\n-361 }\n-362\n-363\n-364 //===== linear maps\n-365\n-367 template\n-_\b3_\b6_\b8 void _\bm_\bv (const X& x, Y& y) const\n-369 {\n-370 auto&& xx = Impl::asVector(x);\n-371 auto&& yy = Impl::asVector(y);\n-372 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS((void*)(&x) != (void*)(&y));\n-373 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bM());\n-374 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bN());\n-375\n-376 using y_field_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-377 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); ++i)\n-378 {\n-379 yy[i] = y_field_type(0);\n-380 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-381 yy[i] += (*this)[i][j] * xx[j];\n-382 }\n-383 }\n-384\n-386 template< class X, class Y >\n-_\b3_\b8_\b7 void _\bm_\bt_\bv ( const X &x, Y &y ) const\n-388 {\n-389 auto&& xx = Impl::asVector(x);\n-390 auto&& yy = Impl::asVector(y);\n-391 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS((void*)(&x) != (void*)(&y));\n-392 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-393 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-394\n-395 using y_field_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-396 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0; i < _\bc_\bo_\bl_\bs(); ++i)\n-397 {\n-398 yy[i] = y_field_type(0);\n-399 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j = 0; j < _\br_\bo_\bw_\bs(); ++j)\n-400 yy[i] += (*this)[j][i] * xx[j];\n-401 }\n-402 }\n-403\n-405 template\n-_\b4_\b0_\b6 void _\bu_\bm_\bv (const X& x, Y& y) const\n-407 {\n-408 auto&& xx = Impl::asVector(x);\n-409 auto&& yy = Impl::asVector(y);\n-410 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bM());\n-411 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bN());\n-412 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); ++i)\n-413 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-414 yy[i] += (*this)[i][j] * xx[j];\n-415 }\n-416\n-418 template\n-_\b4_\b1_\b9 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n-420 {\n-421 auto&& xx = Impl::asVector(x);\n-422 auto&& yy = Impl::asVector(y);\n-423 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-424 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-425 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0; i<_\br_\bo_\bw_\bs(); ++i)\n-426 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-427 yy[j] += (*this)[i][j]*xx[i];\n-428 }\n-429\n-431 template\n-_\b4_\b3_\b2 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n-433 {\n-434 auto&& xx = Impl::asVector(x);\n-435 auto&& yy = Impl::asVector(y);\n-436 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-437 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-438 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-439 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-440 yy[j] += _\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be_\bC_\bo_\bm_\bp_\bl_\be_\bx((*this)[i][j])*xx[i];\n-441 }\n-442\n-444 template\n-_\b4_\b4_\b5 void _\bm_\bm_\bv (const X& x, Y& y) const\n-446 {\n-447 auto&& xx = Impl::asVector(x);\n-448 auto&& yy = Impl::asVector(y);\n-449 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bM());\n-450 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bN());\n-451 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-452 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-453 yy[i] -= (*this)[i][j] * xx[j];\n-454 }\n-455\n-457 template\n-_\b4_\b5_\b8 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n-459 {\n-460 auto&& xx = Impl::asVector(x);\n-461 auto&& yy = Impl::asVector(y);\n-462 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-463 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-464 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-465 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-466 yy[j] -= (*this)[i][j]*xx[i];\n-467 }\n-468\n-470 template\n-_\b4_\b7_\b1 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n-472 {\n-473 auto&& xx = Impl::asVector(x);\n-474 auto&& yy = Impl::asVector(y);\n-475 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-476 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-477 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-478 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-479 yy[j] -= _\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be_\bC_\bo_\bm_\bp_\bl_\be_\bx((*this)[i][j])*xx[i];\n-480 }\n-481\n-483 template\n-_\b4_\b8_\b4 void _\bu_\bs_\bm_\bv (const typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be & alpha,\n-485 const X& x, Y& y) const\n-486 {\n-487 auto&& xx = Impl::asVector(x);\n-488 auto&& yy = Impl::asVector(y);\n-489 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bM());\n-490 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bN());\n-491 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-492 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-493 yy[i] += alpha * (*this)[i][j] * xx[j];\n-494 }\n-495\n-497 template\n-_\b4_\b9_\b8 void _\bu_\bs_\bm_\bt_\bv (const typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be & alpha,\n-499 const X& x, Y& y) const\n-500 {\n-501 auto&& xx = Impl::asVector(x);\n-502 auto&& yy = Impl::asVector(y);\n-503 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-504 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-505 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-506 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-507 yy[j] += alpha*(*this)[i][j]*xx[i];\n-508 }\n-509\n-511 template\n-_\b5_\b1_\b2 void _\bu_\bs_\bm_\bh_\bv (const typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be & alpha,\n-513 const X& x, Y& y) const\n-514 {\n-515 auto&& xx = Impl::asVector(x);\n-516 auto&& yy = Impl::asVector(y);\n-517 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(xx.N() == _\bN());\n-518 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(yy.N() == _\bM());\n-519 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-520 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++)\n-521 yy[j] +=\n-522 alpha*_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be_\bC_\bo_\bm_\bp_\bl_\be_\bx((*this)[i][j])*xx[i];\n-523 }\n-524\n-525 //===== norms\n-526\n-_\b5_\b2_\b8 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n-529 {\n-530 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be sum=(0.0);\n-531 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); ++i) sum += (*this)[i].two_norm2();\n-532 return fvmeta::sqrt(sum);\n-533 }\n-534\n-_\b5_\b3_\b6 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n-537 {\n-538 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be sum=(0.0);\n-539 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); ++i) sum += (*this)[i].two_norm2();\n-540 return sum;\n-541 }\n-542\n-544 template ::value, int>::type = 0>\n-_\b5_\b4_\b6 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n-547 using real_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-548 using std::max;\n-549\n-550 real_type norm = 0;\n-551 for (auto const &x : *this) {\n-552 real_type const a = x.one_norm();\n-553 norm = max(a, norm);\n-554 }\n-555 return norm;\n-556 }\n-557\n-559 template ::value, int>::type = 0>\n-_\b5_\b6_\b1 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-562 using real_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-563 using std::max;\n-564\n-565 real_type norm = 0;\n-566 for (auto const &x : *this) {\n-567 real_type const a = x.one_norm_real();\n-568 norm = max(a, norm);\n-569 }\n-570 return norm;\n-571 }\n-572\n-574 template ::value, int>::type = 0>\n-_\b5_\b7_\b6 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n-577 using real_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-578 using std::max;\n-579\n-580 real_type norm = 0;\n-581 real_type isNaN = 1;\n-582 for (auto const &x : *this) {\n-583 real_type const a = x.one_norm();\n-584 norm = max(a, norm);\n-585 isNaN += a;\n-586 }\n-587 return norm * (isNaN / isNaN);\n-588 }\n-589\n-591 template ::value, int>::type = 0>\n-_\b5_\b9_\b3 typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-594 using real_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\bt_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-595 using std::max;\n-596\n-597 real_type norm = 0;\n-598 real_type isNaN = 1;\n-599 for (auto const &x : *this) {\n-600 real_type const a = x.one_norm_real();\n-601 norm = max(a, norm);\n-602 isNaN += a;\n-603 }\n-604 return norm * (isNaN / isNaN);\n-605 }\n-606\n-607 //===== solve\n-608\n-613 template \n-_\b6_\b1_\b4 void _\bs_\bo_\bl_\bv_\be (V1& x, const V2& b, bool doPivoting = true) const;\n-615\n-_\b6_\b2_\b0 void _\bi_\bn_\bv_\be_\br_\bt(bool doPivoting = true);\n-621\n-_\b6_\b2_\b3 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\be_\bt_\be_\br_\bm_\bi_\bn_\ba_\bn_\bt (bool doPivoting = true) const;\n-624\n-626 template\n-_\b6_\b2_\b7 MAT& _\bl_\be_\bf_\bt_\bm_\bu_\bl_\bt_\bi_\bp_\bl_\by (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\b2_\b>& _\bM)\n-628 {\n-629 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\bM.rows() == _\bM.cols());\n-630 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\bM.rows() == _\br_\bo_\bw_\bs());\n-631 _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\b<_\bM_\bA_\bT_\b> C(asImp());\n-632\n-633 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-634 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++) {\n-635 (*this)[i][j] = 0;\n-636 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be k=0; k<_\br_\bo_\bw_\bs(); k++)\n-637 (*this)[i][j] += _\bM[i][k]*C[k][j];\n-638 }\n-639\n-640 return asImp();\n-641 }\n-642\n-644 template\n-_\b6_\b4_\b5 MAT& _\br_\bi_\bg_\bh_\bt_\bm_\bu_\bl_\bt_\bi_\bp_\bl_\by (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\b2_\b>& _\bM)\n-646 {\n-647 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\bM.rows() == _\bM.cols());\n-648 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(_\bM.cols() == _\bc_\bo_\bl_\bs());\n-649 _\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\b<_\bM_\bA_\bT_\b> C(asImp());\n-650\n-651 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++)\n-652 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs(); j++) {\n-653 (*this)[i][j] = 0;\n-654 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be k=0; k<_\bc_\bo_\bl_\bs(); k++)\n-655 (*this)[i][j] += C[i][k]*_\bM[k][j];\n-656 }\n-657 return asImp();\n-658 }\n-659\n-660#if 0\n-662 template\n-663 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bl_\b,_\bc_\bo_\bl_\bs_\b> leftmultiplyany (const _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bl_\b,_\br_\bo_\bw_\bs_\b>& _\bM)\n-const\n-664 {\n-665 _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bl_\b,_\bc_\bo_\bl_\bs_\b> C;\n-666\n-667 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-679 FieldMatrix rightmultiplyany (const FieldMatrix& _\bM)\n-const\n-680 {\n-681 FieldMatrix C;\n-682\n-683 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\br_\bo_\bw_\bs(); i++) {\n-684 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j= 0 && i < _\br_\bo_\bw_\bs());\n-726 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(j >= 0 && j < _\bc_\bo_\bl_\bs());\n-727 return true;\n-728 }\n-729\n-730 protected:\n-731\n-732#ifndef DOXYGEN\n-733 struct ElimPivot\n-734 {\n-735 ElimPivot(std::vector & pivot);\n-736\n-737 void _\bs_\bw_\ba_\bp(std::size_t i, simd_index_type j);\n-738\n-739 template\n-740 void operator()(const T&, int, int)\n-741 {}\n-742\n-743 std::vector & pivot_;\n-744 };\n-745\n-746 template\n-747 struct Elim\n-748 {\n-749 Elim(V& rhs);\n-750\n-751 void _\bs_\bw_\ba_\bp(std::size_t i, simd_index_type j);\n-752\n-753 void operator()(const typename V::field_type& factor, int k, int i);\n-754\n-755 V* rhs_;\n-756 };\n-757\n-758 struct ElimDet\n-759 {\n-760 ElimDet(field_type& sign) : sign_(_\bs_\bi_\bg_\bn)\n-761 { sign_ = 1; }\n-762\n-763 void _\bs_\bw_\ba_\bp(std::size_t i, simd_index_type j)\n-764 {\n-765 sign_ *=\n-766 Simd::cond(simd_index_type(i) == j, field_type(1), field_type(-1));\n-767 }\n-768\n-769 void operator()(const field_type&, int, int)\n-770 {}\n-771\n-772 field_type& sign_;\n-773 };\n-774#endif // DOXYGEN\n-775\n-777\n-815 template\n-_\b8_\b1_\b6 static void _\bl_\bu_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>& A, Func func,\n-817 Mask &nonsingularLanes, bool throwEarly, bool doPivoting);\n-818 };\n-819\n-820#ifndef DOXYGEN\n-821 template\n-822 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bE_\bl_\bi_\bm_\bP_\bi_\bv_\bo_\bt_\b:_\b:_\bE_\bl_\bi_\bm_\bP_\bi_\bv_\bo_\bt(std::vector &\n-pivot)\n-823 : pivot_(pivot)\n-824 {\n-825 typedef typename std::vector::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-826 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i < pivot_.size(); ++i) pivot_[i]=i;\n-827 }\n-828\n-829 template\n-830 void DenseMatrix::ElimPivot::swap(std::size_t i, simd_index_type j)\n-831 {\n-832 pivot_[i] =\n-833 _\bS_\bi_\bm_\bd_\b:_\b:_\bc_\bo_\bn_\bd(Simd::Scalar(i) == j, pivot_[i], j);\n-834 }\n-835\n-836 template\n-837 template\n-838 DenseMatrix::Elim::Elim(V& rhs)\n-839 : rhs_(&rhs)\n-840 {}\n-841\n-842 template\n-843 template\n-844 void DenseMatrix::Elim::swap(std::size_t i, simd_index_type j)\n-845 {\n-846 using std::swap;\n-847\n-848 // see the comment in luDecomposition()\n-849 for(std::size_t l = 0; l < _\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be_\bs(j); ++l)\n-850 _\bs_\bw_\ba_\bp(_\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be(l, (*rhs_)[ i ]),\n-851 _\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be(l, (*rhs_)[_\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be(l, j)]));\n-852 }\n-853\n-854 template\n-855 template\n-856 void DenseMatrix::\n-857 Elim::operator()(const typename V::field_type& factor, int k, int i)\n-858 {\n-859 (*rhs_)[k] -= factor*(*rhs_)[i];\n-860 }\n-861\n-862 template\n-863 template\n-864 inline void _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:\n-865_\b _\bl_\bu_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(DenseMatrix& A, Func func, Mask &nonsingularLanes,\n-866 bool throwEarly, bool doPivoting)\n-867 {\n-868 using std::max;\n-869 using std::swap;\n-870\n-871 typedef typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be real_type;\n-872\n-873 // LU decomposition of A in A\n-874 for (size_type i=0; i pivmax;\n-886 pivmax = _\bS_\bi_\bm_\bd_\b:_\b:_\bc_\bo_\bn_\bd(mask, abs, pivmax);\n-887 imax = _\bS_\bi_\bm_\bd_\b:_\b:_\bc_\bo_\bn_\bd(mask, simd_index_type(k), imax);\n-888 }\n-889 // swap rows\n-890 for (size_type j=0; j\n-933 template \n-934 inline void _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(V1& x, const V2& b, bool doPivoting)\n-const\n-935 {\n-936 using real_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-937 // never mind those ifs, because they get optimized away\n-938 if (rows()!=cols())\n-939 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError, \"Can't solve for a \" << rows() << \"x\" << cols() <<\n-\" matrix!\");\n-940\n-941 if (rows()==1) {\n-942\n-943#ifdef DUNE_FMatrix_WITH_CHECKING\n-944 if (_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bn_\by_\bT_\br_\bu_\be(fvmeta::absreal((*this)[0][0])\n-945 < _\bF_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b<_\b>_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b__\bl_\bi_\bm_\bi_\bt()))\n-946 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError,\"matrix is singular\");\n-947#endif\n-948 x[0] = b[0]/(*this)[0][0];\n-949\n-950 }\n-951 else if (rows()==2) {\n-952\n-953 field_type detinv = (*this)[0][0]*(*this)[1][1]-(*this)[0][1]*(*this)[1]\n-[0];\n-954#ifdef DUNE_FMatrix_WITH_CHECKING\n-955 if (_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bn_\by_\bT_\br_\bu_\be(fvmeta::absreal(detinv)\n-956 < _\bF_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b<_\b>_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b__\bl_\bi_\bm_\bi_\bt()))\n-957 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError,\"matrix is singular\");\n-958#endif\n-959 detinv = real_type(1.0)/detinv;\n-960\n-961 x[0] = detinv*((*this)[1][1]*b[0]-(*this)[0][1]*b[1]);\n-962 x[1] = detinv*((*this)[0][0]*b[1]-(*this)[1][0]*b[0]);\n-963\n-964 }\n-965 else if (rows()==3) {\n-966\n-967 field_type d = determinant(doPivoting);\n-968#ifdef DUNE_FMatrix_WITH_CHECKING\n-969 if (_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bn_\by_\bT_\br_\bu_\be(fvmeta::absreal(d)\n-970 < _\bF_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b<_\b>_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b__\bl_\bi_\bm_\bi_\bt()))\n-971 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError,\"matrix is singular\");\n-972#endif\n-973\n-974 x[0] = (b[0]*(*this)[1][1]*(*this)[2][2] - b[0]*(*this)[2][1]*(*this)[1][2]\n-975 - b[1] *(*this)[0][1]*(*this)[2][2] + b[1]*(*this)[2][1]*(*this)[0][2]\n-976 + b[2] *(*this)[0][1]*(*this)[1][2] - b[2]*(*this)[1][1]*(*this)[0][2]) /\n-d;\n-977\n-978 x[1] = ((*this)[0][0]*b[1]*(*this)[2][2] - (*this)[0][0]*b[2]*(*this)[1][2]\n-979 - (*this)[1][0] *b[0]*(*this)[2][2] + (*this)[1][0]*b[2]*(*this)[0][2]\n-980 + (*this)[2][0] *b[0]*(*this)[1][2] - (*this)[2][0]*b[1]*(*this)[0][2]) /\n-d;\n-981\n-982 x[2] = ((*this)[0][0]*(*this)[1][1]*b[2] - (*this)[0][0]*(*this)[2][1]*b[1]\n-983 - (*this)[1][0] *(*this)[0][1]*b[2] + (*this)[1][0]*(*this)[2][1]*b[0]\n-984 + (*this)[2][0] *(*this)[0][1]*b[1] - (*this)[2][0]*(*this)[1][1]*b[0]) /\n-d;\n-985\n-986 }\n-987 else {\n-988\n-989 V1& rhs = x; // use x to store rhs\n-990 rhs = b; // copy data\n-991 Elim elim(rhs);\n-992 AutonomousValue A(asImp());\n-993 Simd::Mask::real_type>\n-994 nonsingularLanes(true);\n-995\n-996 AutonomousValue::luDecomposition(A, elim, nonsingularLanes, true,\n-doPivoting);\n-997\n-998 // backsolve\n-999 for(int i=rows()-1; i>=0; i--) {\n-1000 for (size_type j=i+1; j\n-1008 inline void _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bi_\bn_\bv_\be_\br_\bt(bool doPivoting)\n-1009 {\n-1010 using real_type = typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1011 using std::swap;\n-1012\n-1013 // never mind those ifs, because they get optimized away\n-1014 if (rows()!=cols())\n-1015 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError, \"Can't invert a \" << rows() << \"x\" << cols() << \"\n-matrix!\");\n-1016\n-1017 if (rows()==1) {\n-1018\n-1019#ifdef DUNE_FMatrix_WITH_CHECKING\n-1020 if (_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bn_\by_\bT_\br_\bu_\be(fvmeta::absreal((*this)[0][0])\n-1021 < _\bF_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b<_\b>_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b__\bl_\bi_\bm_\bi_\bt()))\n-1022 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError,\"matrix is singular\");\n-1023#endif\n-1024 (*this)[0][0] = real_type( 1 ) / (*this)[0][0];\n-1025\n-1026 }\n-1027 else if (rows()==2) {\n-1028\n-1029 field_type detinv = (*this)[0][0]*(*this)[1][1]-(*this)[0][1]*(*this)[1]\n-[0];\n-1030#ifdef DUNE_FMatrix_WITH_CHECKING\n-1031 if (_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bn_\by_\bT_\br_\bu_\be(fvmeta::absreal(detinv)\n-1032 < _\bF_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b<_\b>_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b__\bl_\bi_\bm_\bi_\bt()))\n-1033 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError,\"matrix is singular\");\n-1034#endif\n-1035 detinv = real_type( 1 ) / detinv;\n-1036\n-1037 field_type temp=(*this)[0][0];\n-1038 (*this)[0][0] = (*this)[1][1]*detinv;\n-1039 (*this)[0][1] = -(*this)[0][1]*detinv;\n-1040 (*this)[1][0] = -(*this)[1][0]*detinv;\n-1041 (*this)[1][1] = temp*detinv;\n-1042\n-1043 }\n-1044 else if (rows()==3)\n-1045 {\n-1046 using K = field_type;\n-1047 // code generated by maple\n-1048 K t4 = (*this)[0][0] * (*this)[1][1];\n-1049 K t6 = (*this)[0][0] * (*this)[1][2];\n-1050 K t8 = (*this)[0][1] * (*this)[1][0];\n-1051 K t10 = (*this)[0][2] * (*this)[1][0];\n-1052 K t12 = (*this)[0][1] * (*this)[2][0];\n-1053 K t14 = (*this)[0][2] * (*this)[2][0];\n-1054\n-1055 K det = (t4*(*this)[2][2]-t6*(*this)[2][1]-t8*(*this)[2][2]+\n-1056 t10*(*this)[2][1]+t12*(*this)[1][2]-t14*(*this)[1][1]);\n-1057 K t17 = K(1.0)/det;\n-1058\n-1059 K matrix01 = (*this)[0][1];\n-1060 K matrix00 = (*this)[0][0];\n-1061 K matrix10 = (*this)[1][0];\n-1062 K matrix11 = (*this)[1][1];\n-1063\n-1064 (*this)[0][0] = ((*this)[1][1] * (*this)[2][2] - (*this)[1][2] * (*this)\n-[2][1])*t17;\n-1065 (*this)[0][1] = -((*this)[0][1] * (*this)[2][2] - (*this)[0][2] * (*this)\n-[2][1])*t17;\n-1066 (*this)[0][2] = (matrix01 * (*this)[1][2] - (*this)[0][2] * (*this)[1]\n-[1])*t17;\n-1067 (*this)[1][0] = -((*this)[1][0] * (*this)[2][2] - (*this)[1][2] * (*this)\n-[2][0])*t17;\n-1068 (*this)[1][1] = (matrix00 * (*this)[2][2] - t14) * t17;\n-1069 (*this)[1][2] = -(t6-t10) * t17;\n-1070 (*this)[2][0] = (matrix10 * (*this)[2][1] - matrix11 * (*this)[2][0]) *\n-t17;\n-1071 (*this)[2][1] = -(matrix00 * (*this)[2][1] - t12) * t17;\n-1072 (*this)[2][2] = (t4-t8) * t17;\n-1073 }\n-1074 else {\n-1075 using std::swap;\n-1076\n-1077 AutonomousValue A(asImp());\n-1078 std::vector pivot(rows());\n-1079 Simd::Mask::real_type>\n-1080 nonsingularLanes(true);\n-1081 AutonomousValue::luDecomposition(A, ElimPivot(pivot),\n-nonsingularLanes, true, doPivoting);\n-1082 auto& L=A;\n-1083 auto& U=A;\n-1084\n-1085 // initialize inverse\n-1086 *this=field_type();\n-1087\n-1088 for(size_type i=0; i0;) {\n-1099 --i;\n-1100 for (size_type k=0; k0; ) {\n-1108 --i;\n-1109 for(std::size_t l = 0; l < _\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be_\bs((*this)[0][0]); ++l)\n-1110 {\n-1111 std::size_t pi = _\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be(l, pivot[i]);\n-1112 if(i!=pi)\n-1113 for(size_type j=0; j\n-1123 inline typename _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-1124 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bd_\be_\bt_\be_\br_\bm_\bi_\bn_\ba_\bn_\bt(bool doPivoting) const\n-1125 {\n-1126 // never mind those ifs, because they get optimized away\n-1127 if (rows()!=cols())\n-1128 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(FMatrixError, \"There is no determinant for a \" << rows() << \"x\"\n-<< cols() << \" matrix!\");\n-1129\n-1130 if (rows()==1)\n-1131 return (*this)[0][0];\n-1132\n-1133 if (rows()==2)\n-1134 return (*this)[0][0]*(*this)[1][1] - (*this)[0][1]*(*this)[1][0];\n-1135\n-1136 if (rows()==3) {\n-1137 // code generated by maple\n-1138 field_type t4 = (*this)[0][0] * (*this)[1][1];\n-1139 field_type t6 = (*this)[0][0] * (*this)[1][2];\n-1140 field_type t8 = (*this)[0][1] * (*this)[1][0];\n-1141 field_type t10 = (*this)[0][2] * (*this)[1][0];\n-1142 field_type t12 = (*this)[0][1] * (*this)[2][0];\n-1143 field_type t14 = (*this)[0][2] * (*this)[2][0];\n-1144\n-1145 return (t4*(*this)[2][2]-t6*(*this)[2][1]-t8*(*this)[2][2]+\n-1146 t10*(*this)[2][1]+t12*(*this)[1][2]-t14*(*this)[1][1]);\n-1147\n-1148 }\n-1149\n-1150 AutonomousValue A(asImp());\n-1151 field_type det;\n-1152 Simd::Mask::real_type>\n-1153 nonsingularLanes(true);\n-1154\n-1155 AutonomousValue::luDecomposition(A, ElimDet(det), nonsingularLanes,\n-false, doPivoting);\n-1156 det = _\bS_\bi_\bm_\bd_\b:_\b:_\bc_\bo_\bn_\bd(nonsingularLanes, det, field_type(0));\n-1157\n-1158 for (size_type i = 0; i < rows(); ++i)\n-1159 det *= A[i][i];\n-1160 return det;\n-1161 }\n-1162\n-1163#endif // DOXYGEN\n-1164\n-_\b1_\b1_\b6_\b5 namespace DenseMatrixHelp {\n-1166\n-1168 template \n-_\b1_\b1_\b6_\b9 static inline void _\bm_\bu_\bl_\bt_\bA_\bs_\bs_\bi_\bg_\bn(const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b> &matrix, const\n-_\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br_\b<_\bV_\b1_\b> & x, _\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br_\b<_\bV_\b2_\b> & ret)\n-1170 {\n-1171 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(x._\bs_\bi_\bz_\be() == matrix._\bc_\bo_\bl_\bs());\n-1172 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(ret._\bs_\bi_\bz_\be() == matrix._\br_\bo_\bw_\bs());\n-1173 typedef typename _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_type;\n-1174\n-1175 for(size_type i=0; i\n-1188 static inline void multAssignTransposed( const _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\br_\bo_\bw_\bs_\b,_\bc_\bo_\bl_\bs_\b>\n-&matrix, const _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\br_\bo_\bw_\bs_\b> & x, _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\bc_\bo_\bl_\bs_\b> & ret)\n-1189 {\n-1190 typedef typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\br_\bo_\bw_\bs_\b,_\bc_\bo_\bl_\bs_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_type;\n-1191\n-1192 for(size_type i=0; i\n-1202 static inline FieldVector mult(const FieldMatrix\n-&matrix, const FieldVector & x)\n-1203 {\n-1204 FieldVector ret;\n-1205 _\bm_\bu_\bl_\bt_\bA_\bs_\bs_\bi_\bg_\bn(matrix,x,ret);\n-1206 return ret;\n-1207 }\n-1208\n-1210 template \n-1211 static inline FieldVector multTransposed(const\n-FieldMatrix &matrix, const FieldVector & x)\n-1212 {\n-1213 FieldVector ret;\n-1214 multAssignTransposed( matrix, x, ret );\n-1215 return ret;\n-1216 }\n-1217#endif\n-1218\n-1219 } // end namespace DenseMatrixHelp\n-1220\n-1222 template\n-_\b1_\b2_\b2_\b3 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>& a)\n-1224 {\n-1225 for (typename _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\bA_\bT_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i::type AutonomousValue\n-Type free of internal references that T can be converted to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:588\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:278\n-_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n-#define DUNE_THROW(E, m)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bn_\by_\bT_\br_\bu_\be\n-bool anyTrue(const Mask &mask)\n-Whether any entry is true\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd/interface.hh:429\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\bc_\bo_\bn_\bd\n-V cond(M &&mask, const V &ifTrue, const V &ifFalse)\n-Like the ?: operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd/interface.hh:386\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\ba_\bl_\bl_\bT_\br_\bu_\be\n-bool allTrue(const Mask &mask)\n-Whether all entries are true\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd/interface.hh:439\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\bR_\be_\bb_\bi_\bn_\bd\n-typename Overloads::RebindType< std::decay_t< S >, std::decay_t< V > >::type\n-Rebind\n-Construct SIMD type with different scalar type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd/interface.hh:253\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be_\bs\n-constexpr std::size_t lanes()\n-Number of lanes in a SIMD type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd/interface.hh:305\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\bl_\ba_\bn_\be\n-decltype(auto) lane(std::size_t l, V &&v)\n-Extract an element of a SIMD type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd/interface.hh:324\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bi_\bm_\bd_\b:_\b:_\bO_\bv_\be_\br_\bl_\bo_\ba_\bd_\bs_\b:_\b:_\bm_\ba_\bs_\bk\n-Mask< V > mask(ADLTag< 0, std::is_same< V, Mask< V > >::value >, const V &v)\n-implements Simd::mask()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn defaults.hh:153\n-_\bs_\bt_\bd\n-STL namespace.\n-_\bD_\bu_\bn_\be\n-Dune namespace.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bw_\ba_\bp\n-void swap(T &v1, T &v2, bool mask)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn simd.hh:472\n-_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bg_\bn\n-int sign(const T &val)\n-Return the sign of the value.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn math.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be_\bC_\bo_\bm_\bp_\bl_\be_\bx\n-K conjugateComplex(const K &x)\n-compute conjugate complex of x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn math.hh:164\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bH_\be_\bl_\bp_\b:_\b:_\bm_\bu_\bl_\bt_\bA_\bs_\bs_\bi_\bg_\bn\n-static void multAssign(const DenseMatrix< MAT > &matrix, const DenseVector< V1\n-> &x, DenseVector< V2 > &ret)\n-calculates ret = matrix * x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:1169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n-A dense n x m matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator const_iterator\n-typedef for stl compliant access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:244\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-\n-derived_type operator-() const\n-Matrix negation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:298\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-void solve(V1 &x, const V2 &b, bool doPivoting=true) const\n-Solve system A x = b.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n-void mv(const X &x, Y &y) const\n-y = A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:368\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Traits::value_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:160\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bx_\bp_\by\n-derived_type & axpy(const field_type &a, const DenseMatrix< Other > &x)\n-vector space axpy operation (*this += a x)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:338\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-ConstIterator beforeEnd() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:264\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-derived_type & operator=(const RHS &rhs)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:279\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n-void mmtv(const X &x, Y &y) const\n-y -= A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:458\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-FieldTraits< vt >::real_type infinity_norm_real() const\n-simplified infinity norm (uses Manhattan norm for complex values)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-std::remove_reference< const_row_reference >::type::ConstIterator\n-ConstColIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:248\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-ConstIterator beforeBegin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bv_\be_\br_\bt\n-void invert(bool doPivoting=true)\n-Compute inverse.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bl_\bu_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-static void luDecomposition(DenseMatrix< MAT > &A, Func func, Mask\n-&nonsingularLanes, bool throwEarly, bool doPivoting)\n-do an LU-Decomposition on matrix A\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-Traits::value_type block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n-void mtv(const X &x, Y &y) const\n-y = A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:387\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bl_\bs\n-constexpr size_type cols() const\n-number of columns\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:715\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-size method (number of rows)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:200\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-constexpr size_type M() const\n-number of columns\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:703\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bi_\bg_\bh_\bt_\bm_\bu_\bl_\bt_\bi_\bp_\bl_\by\n-MAT & rightmultiply(const DenseMatrix< M2 > &M)\n-Multiplies M from the right to this matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:645\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-end iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:222\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-Iterator beforeBegin()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:236\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n-derived_type & operator/=(const field_type &k)\n-vector space division by scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:329\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n-derived_type & operator*=(const field_type &k)\n-vector space multiplication with scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:321\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-Iterator beforeEnd()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n-Traits::value_type value_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:157\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n-void usmv(const typename FieldTraits< Y >::field_type &alpha, const X &x, Y &y)\n-const\n-y += alpha A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n-void usmhv(const typename FieldTraits< Y >::field_type &alpha, const X &x, Y\n-&y) const\n-y += alpha A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:512\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n-void mmv(const X &x, Y &y) const\n-y -= A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:445\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bs\n-constexpr size_type rows() const\n-number of rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:709\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bl_\be_\bf_\bt_\bm_\bu_\bl_\bt_\bi_\bp_\bl_\by\n-MAT & leftmultiply(const DenseMatrix< M2 > &M)\n-Multiplies M from the left to this matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n-void usmtv(const typename FieldTraits< Y >::field_type &alpha, const X &x, Y\n-&y) const\n-y += alpha A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:498\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n-derived_type & operator-=(const DenseMatrix< Other > &x)\n-vector space subtraction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:312\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const DenseMatrix< Other > &x) const\n-Binary matrix incomparison.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:358\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n-void mmhv(const X &x, Y &y) const\n-y -= A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\be_\br_\bi_\bv_\be_\bd_\b__\bt_\by_\bp_\be\n-Traits::derived_type derived_type\n-type of derived matrix class\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-row_reference operator[](size_type i)\n-random access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:189\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n-bool exists(size_type i, size_type j) const\n-return true when (i,j) is in pattern\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator RowIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr int blocklevel\n-The number of block levels we contain. This is the leaf, that is, 1.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:178\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n-FieldTraits< value_type >::real_type frobenius_norm() const\n-frobenius norm: sqrt(sum over squared values of entries)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:528\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n-void umv(const X &x, Y &y) const\n-y += A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-DenseIterator< const DenseMatrix, const row_type, const_row_reference >\n-ConstIterator\n-Iterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:242\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n-FieldTraits< vt >::real_type infinity_norm() const\n-infinity norm (row sum norm, how to generalize for blocks?)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:546\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-Traits::row_type row_type\n-The type used to represent a row (must fulfill the Dune::DenseVector interface)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-constexpr size_type N() const\n-number of rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:697\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Traits::size_type size_type\n-The type used for the index access and size operation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:166\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-Traits::const_row_reference const_row_reference\n-The type used to represent a reference to a constant row (usually const\n-row_type &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n-FieldTraits< value_type >::real_type frobenius_norm2() const\n-square of frobenius norm, need for block recursion\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:536\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-std::remove_reference< row_reference >::type::Iterator ColIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:213\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-Traits::row_reference row_reference\n-The type used to represent a reference to a row (usually row_type &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const DenseMatrix< Other > &x) const\n-Binary matrix comparison.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:348\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator iterator\n-typedef for stl compliant access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:209\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator ConstRowIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:246\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-DenseIterator< DenseMatrix, row_type, row_reference > Iterator\n-Iterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:207\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n-void umtv(const X &x, Y &y) const\n-y += A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:419\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstIterator begin() const\n-begin iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:251\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\be_\bt_\be_\br_\bm_\bi_\bn_\ba_\bn_\bt\n-field_type determinant(bool doPivoting=true) const\n-calculates the determinant of this matrix\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-Iterator begin()\n-begin iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n-void umhv(const X &x, Y &y) const\n-y += A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:432\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n-derived_type & operator+=(const DenseMatrix< Other > &x)\n-vector space addition\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:289\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-ConstIterator end() const\n-end iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:257\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bM_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-const FieldTraits< typenameDenseMatVecTraits< M >::value_type >::real_type\n-real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bM_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-const FieldTraits< typenameDenseMatVecTraits< M >::value_type >::field_type\n-field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-A dense n x m matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fmatrix.hh:117\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Base::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fmatrix.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br\n-vector space out of a tensor product of fields.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fvector.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br\n-you have to specialize this structure for any type that should be assignable to\n-a DenseMatrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-Error thrown if operations of a FieldMatrix fail.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br\n-Interface for a class of dense vectors over a given field.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densevector.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-size method\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densevector.hh:336\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Generic iterator class for dense vector and matrix implementations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densevector.hh:131\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bh_\bE_\br_\br_\bo_\br\n-Default exception class for mathematical errors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ftraits.hh:26\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-T field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ftraits.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-T real_type\n-export the type representing the real type of the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ftraits.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bV_\be_\bc_\bT_\br_\ba_\bi_\bt_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matvectraits.hh:31\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b__\bl_\bi_\bm_\bi_\bt\n-static ctype absolute_limit()\n-return threshold to declare matrix singular\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn precision.hh:28\n-_\bs_\bi_\bm_\bd_\b._\bh_\bh\n-Include file for users of the SIMD abstraction layer.\n+2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n+3// Will be removed after the 2.7 release\n+4#warning \"Deprecated header, use #include instead!\"\n+5#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides collective communication methods for\n+sequential programs.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00056.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00056.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: scalarvectorview.hh File Reference\n+dune-common: variablesizecommunicator.hh File Reference\n \n \n \n \n \n \n \n@@ -65,44 +65,79 @@\n
    \n \n \n \n \n \n \n
    \n \n-
    scalarvectorview.hh File Reference
    \n+
    variablesizecommunicator.hh File Reference
    \n
    \n
    \n \n-

    Implements a scalar vector view wrapper around an existing scalar. \n+

    A communicator that only needs to know the number of elements per index at the sender side. \n More...

    \n-
    #include <cstddef>
    \n-#include <type_traits>
    \n-#include <istream>
    \n-#include <dune/common/densevector.hh>
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/matvectraits.hh>
    \n+
    #include <algorithm>
    \n+#include <cassert>
    \n+#include <cstddef>
    \n+#include <functional>
    \n+#include <map>
    \n+#include <memory>
    \n+#include <utility>
    \n+#include <vector>
    \n+#include <mpi.h>
    \n+#include <dune/common/concept.hh>
    \n+#include <dune/common/parallel/interface.hh>
    \n+#include <dune/common/parallel/mpitraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::Concept::HasFixedSize
     
    class  Dune::VariableSizeCommunicator< Allocator >
     A buffered communicator where the amount of data sent does not have to be known a priori. More...
     
    \n \n \n \n \n+\n+\n+\n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    namespace  Dune::Concept
     Namespace for concepts.
     
    \n

    Detailed Description

    \n-

    Implements a scalar vector view wrapper around an existing scalar.

    \n-
    \n+

    A communicator that only needs to know the number of elements per index at the sender side.

    \n+
    Author
    Markus Blatt
    \n+

    Variable Documentation

    \n+\n+

    ◆ fixedSize

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+
    std::size_t fixedSize
    \n+
    \n+\n+

    The number of data items per index if it is fixed, 0 otherwise.

    \n+\n+
    \n+
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,26 +1,50 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-scalarvectorview.hh File Reference\n-_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bD_\be_\bn_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by\n-Implements a scalar vector view wrapper around an existing scalar. _\bM_\bo_\br_\be_\b._\b._\b.\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+variablesizecommunicator.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bp_\bu_\bt_\bi_\bn_\bg_\b _\bb_\ba_\bs_\be_\bd_\b _\bo_\bn_\b _\bI_\bn_\bd_\be_\bx_\bs_\be_\bt_\bs\n+A communicator that only needs to know the number of elements per index at the\n+sender side. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n #include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bd_\be_\bn_\bs_\be_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bm_\ba_\bt_\bv_\be_\bc_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bc_\bo_\bn_\bc_\be_\bp_\bt_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt_\b:_\b:_\bH_\ba_\bs_\bF_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b<_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n+\u00a0 A buffered communicator where the amount of data sent does not have to\n+ be known a priori. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt\n+\u00a0 Namespace for concepts.\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implements a scalar vector view wrapper around an existing scalar.\n+A communicator that only needs to know the number of elements per index at the\n+sender side.\n+ Author\n+ Markus Blatt\n+*\b**\b**\b**\b**\b* V\bVa\bar\bri\bia\bab\bbl\ble\be D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0f\bfi\bix\bxe\bed\bdS\bSi\biz\bze\be *\b**\b**\b**\b**\b*\n+std::size_t fixedSize\n+The number of data items per index if it is fixed, 0 otherwise.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00056_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00056_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: scalarvectorview.hh Source File\n+dune-common: variablesizecommunicator.hh Source File\n \n \n \n \n \n \n \n@@ -70,198 +70,914 @@\n \n \n \n \n \n \n \n
    \n-
    scalarvectorview.hh
    \n+
    variablesizecommunicator.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_SCALARVECTORVIEW_HH
    \n-
    6#define DUNE_COMMON_SCALARVECTORVIEW_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_VARIABLESIZECOMMUNICATOR_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_VARIABLESIZECOMMUNICATOR_HH
    \n
    7
    \n-
    8#include <cstddef>
    \n-
    9#include <type_traits>
    \n-
    10#include <istream>
    \n-
    11
    \n-\n-\n-\n-\n-
    16
    \n-
    17namespace Dune {
    \n+
    8#if HAVE_MPI
    \n+
    9
    \n+
    10#include <algorithm>
    \n+
    11#include <cassert>
    \n+
    12#include <cstddef>
    \n+
    13#include <functional>
    \n+
    14#include <map>
    \n+
    15#include <memory>
    \n+
    16#include <utility>
    \n+
    17#include <vector>
    \n
    18
    \n-
    19namespace Impl {
    \n+
    19#include <mpi.h>
    \n
    20
    \n-
    35 template<class K>
    \n-
    36 class ScalarVectorView :
    \n-
    37 public DenseVector<ScalarVectorView<K>>
    \n-
    38 {
    \n-
    39 K* dataP_;
    \n-
    40 using Base = DenseVector<ScalarVectorView<K>>;
    \n+\n+\n+\n+
    24
    \n+
    37namespace Dune
    \n+
    38{
    \n+
    39
    \n+
    40namespace Concept {
    \n
    41
    \n-
    42 template <class>
    \n-
    43 friend class ScalarVectorView;
    \n-
    44 public:
    \n+
    \n+\n+
    43 template <typename H> auto require(H &&h) -> decltype(h.fixedSize());
    \n+
    44};
    \n+
    \n
    45
    \n-
    47 constexpr static int dimension = 1;
    \n-
    48
    \n-
    50 using size_type = typename Base::size_type;
    \n-
    51
    \n-
    53 using reference = std::decay_t<K>&;
    \n-
    54
    \n-
    56 using const_reference = const K&;
    \n+
    46} // namespace Concept
    \n+
    47
    \n+
    48namespace Impl {
    \n+
    49
    \n+
    50template <typename H,
    \n+
    51 std::enable_if_t<models<Concept::HasFixedSize, H>(), int> = 0>
    \n+
    52constexpr bool callFixedSize(H &&handle) {
    \n+
    53 return handle.fixedSize();
    \n+
    54}
    \n+
    55
    \n+
    56} // namespace Impl
    \n
    57
    \n-
    58 //===== construction
    \n-
    59
    \n-
    61 constexpr ScalarVectorView ()
    \n-
    62 : dataP_(nullptr)
    \n-
    63 {}
    \n-
    64
    \n-
    66 ScalarVectorView (K* p) :
    \n-
    67 dataP_(p)
    \n-
    68 {}
    \n-
    69
    \n-
    71 ScalarVectorView (const ScalarVectorView &other) :
    \n-
    72 Base(),
    \n-
    73 dataP_(other.dataP_)
    \n-
    74 {}
    \n-
    75
    \n-
    77 ScalarVectorView (ScalarVectorView &&other) :
    \n-
    78 Base(),
    \n-
    79 dataP_( other.dataP_ )
    \n-
    80 {}
    \n-
    81
    \n-
    83 ScalarVectorView& operator= (const ScalarVectorView& other)
    \n-
    84 {
    \n-
    85 assert(dataP_);
    \n-
    86 assert(other.dataP_);
    \n-
    87 *dataP_ = *(other.dataP_);
    \n-
    88 return *this;
    \n-
    89 }
    \n-
    90
    \n-
    91 template<class KK>
    \n-
    92 ScalarVectorView& operator= (const ScalarVectorView<KK>& other)
    \n-
    93 {
    \n-
    94 assert(dataP_);
    \n-
    95 assert(other.dataP_);
    \n-
    96 *dataP_ = *(other.dataP_);
    \n-
    97 return *this;
    \n-
    98 }
    \n-
    99
    \n-
    101 template<typename T,
    \n-
    102 std::enable_if_t<std::is_convertible<T, K>::value, int> = 0>
    \n-
    103 inline ScalarVectorView& operator= (const T& k)
    \n-
    104 {
    \n-
    105 *dataP_ = k;
    \n-
    106 return *this;
    \n-
    107 }
    \n-
    108
    \n-
    110 static constexpr size_type size ()
    \n-
    111 {
    \n-
    112 return 1;
    \n-
    113 }
    \n-
    114
    \n-
    116 K& operator[] ([[maybe_unused]] size_type i)
    \n-
    117 {
    \n-
    118 DUNE_ASSERT_BOUNDS(i == 0);
    \n-
    119 return *dataP_;
    \n-
    120 }
    \n-
    121
    \n-
    123 const K& operator[] ([[maybe_unused]] size_type i) const
    \n-
    124 {
    \n-
    125 DUNE_ASSERT_BOUNDS(i == 0);
    \n-
    126 return *dataP_;
    \n-
    127 }
    \n-
    128 }; // class ScalarVectorView
    \n-
    129
    \n-
    130} // namespace Impl
    \n-
    131
    \n-
    132
    \n-
    133 template< class K>
    \n-
    134 struct DenseMatVecTraits< Impl::ScalarVectorView<K> >
    \n-
    135 {
    \n-
    136 using derived_type = Impl::ScalarVectorView<K>;
    \n-
    137 using value_type = std::remove_const_t<K>;
    \n-
    138 using size_type = std::size_t;
    \n-
    139 };
    \n-
    140
    \n-
    141 template< class K >
    \n-
    142 struct FieldTraits< Impl::ScalarVectorView<K> > : public FieldTraits<std::remove_const_t<K>> {};
    \n-
    143
    \n-
    144 template<class K>
    \n-
    145 struct AutonomousValueType<Impl::ScalarVectorView<K>>
    \n-
    146 {
    \n-
    147 using type = FieldVector<std::remove_const_t<K>,1>;
    \n-
    148 };
    \n-
    149
    \n-
    150namespace Impl {
    \n-
    151
    \n-
    163 template<class K>
    \n-
    164 inline std::istream &operator>> ( std::istream &in, ScalarVectorView<K> &v )
    \n-
    165 {
    \n-
    166 K w;
    \n-
    167 if(in >> w)
    \n-
    168 v = w;
    \n-
    169 return in;
    \n-
    170 }
    \n-
    171
    \n-
    172
    \n-
    174 template<class T,
    \n-
    175 std::enable_if_t<IsNumber<T>::value, int> = 0>
    \n-
    176 auto asVector(T& t)
    \n-
    177 {
    \n-
    178 return ScalarVectorView<T>{&t};
    \n-
    179 }
    \n-
    180
    \n-
    182 template<class T,
    \n-
    183 std::enable_if_t<IsNumber<T>::value, int> = 0>
    \n-
    184 auto asVector(const T& t)
    \n-
    185 {
    \n-
    186 return ScalarVectorView<const T>{&t};
    \n-
    187 }
    \n-
    188
    \n-
    190 template<class T,
    \n-
    191 std::enable_if_t<not IsNumber<T>::value, int> = 0>
    \n-
    192 T& asVector(T& t)
    \n-
    193 {
    \n-
    194 return t;
    \n+
    58namespace
    \n+
    59{
    \n+
    64template<class T, class Allocator=std::allocator<T> >
    \n+
    65class MessageBuffer
    \n+
    66{
    \n+
    67public:
    \n+
    72 explicit MessageBuffer(int size)
    \n+
    73 : buffer_(new T[size]), size_(size), position_(0)
    \n+
    74 {}
    \n+
    79 explicit MessageBuffer(const MessageBuffer& o)
    \n+
    80 : buffer_(new T[o.size_]), size_(o.size_), position_(o.position_)
    \n+
    81 {
    \n+
    82 }
    \n+
    84 ~MessageBuffer()
    \n+
    85 {
    \n+
    86 delete[] buffer_;
    \n+
    87 }
    \n+
    92 void write(const T& data)
    \n+
    93 {
    \n+
    94 buffer_[position_++]=data;
    \n+
    95 }
    \n+
    96
    \n+
    101 void read(T& data)
    \n+
    102 {
    \n+
    103 data=buffer_[position_++];
    \n+
    104 }
    \n+
    105
    \n+
    111 void reset()
    \n+
    112 {
    \n+
    113 position_=0;
    \n+
    114 }
    \n+
    115
    \n+
    120 bool finished()
    \n+
    121 {
    \n+
    122 return position_==size_;
    \n+
    123 }
    \n+
    124
    \n+
    130 bool hasSpaceForItems(int noItems)
    \n+
    131 {
    \n+
    132 return position_+noItems<=size_;
    \n+
    133 }
    \n+
    138 std::size_t size() const
    \n+
    139 {
    \n+
    140 return size_;
    \n+
    141 }
    \n+
    146 operator T*()
    \n+
    147 {
    \n+
    148 return buffer_;
    \n+
    149 }
    \n+
    150
    \n+
    151private:
    \n+
    155 T* buffer_;
    \n+
    159 std::size_t size_;
    \n+
    163 std::size_t position_;
    \n+
    164};
    \n+
    165
    \n+
    169class InterfaceTracker
    \n+
    170{
    \n+
    171public:
    \n+
    177 InterfaceTracker(int rank, InterfaceInformation info, std::size_t fixedsize=0,
    \n+
    178 bool allocateSizes=false)
    \n+
    179 : fixedSize(fixedsize),rank_(rank), index_(), interface_(info), sizes_()
    \n+
    180 {
    \n+
    181 if(allocateSizes)
    \n+
    182 {
    \n+
    183 sizes_.resize(info.size());
    \n+
    184 }
    \n+
    185 }
    \n+
    186
    \n+
    190 void moveToNextIndex()
    \n+
    191 {
    \n+
    192 index_++;
    \n+
    193 assert(index_<=interface_.size());
    \n+
    194 skipZeroIndices();
    \n
    195 }
    \n-
    196
    \n-
    198 template<class T,
    \n-
    199 std::enable_if_t<not IsNumber<T>::value, int> = 0>
    \n-
    200 const T& asVector(const T& t)
    \n+
    200 void increment(std::size_t i)
    \n
    201 {
    \n-
    202 return t;
    \n-
    203 }
    \n-
    204
    \n-
    205} // end namespace Impl
    \n-
    206
    \n-
    207} // end namespace Dune
    \n-
    208
    \n-
    209#endif // DUNE_COMMON_SCALARVECTORVIEW_HH
    \n-
    Documentation of the traits classes you need to write for each implementation of DenseVector or Dense...
    \n-
    Implements the dense vector interface, with an exchangeable storage class.
    \n-
    Implements a vector constructed from a given type representing a field and a compile-time given size.
    \n-
    Traits for type conversions and type information.
    \n-
    Stream & operator>>(Stream &stream, std::tuple< Ts... > &t)
    Read a std::tuple.
    Definition streamoperators.hh:43
    \n-
    #define DUNE_ASSERT_BOUNDS(cond)
    If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do nothing.
    Definition boundschecking.hh:30
    \n+
    202 index_+=i;
    \n+
    203 assert(index_<=interface_.size());
    \n+
    204 }
    \n+
    209 bool finished() const
    \n+
    210 {
    \n+
    211 return index_==interface_.size();
    \n+
    212 }
    \n+
    213
    \n+
    214 void skipZeroIndices()
    \n+
    215 {
    \n+
    216 // skip indices with size zero!
    \n+
    217 while(sizes_.size() && index_!=interface_.size() &&!size())
    \n+
    218 ++index_;
    \n+
    219 }
    \n+
    220
    \n+
    225 std::size_t index() const
    \n+
    226 {
    \n+
    227 return interface_[index_];
    \n+
    228 }
    \n+
    232 std::size_t size() const
    \n+
    233 {
    \n+
    234 assert(sizes_.size());
    \n+
    235 return sizes_[index_];
    \n+
    236 }
    \n+
    240 std::size_t* getSizesPointer()
    \n+
    241 {
    \n+
    242 return &sizes_[0];
    \n+
    243 }
    \n+
    248 bool empty() const
    \n+
    249 {
    \n+
    250 return !interface_.size();
    \n+
    251 }
    \n+
    252
    \n+
    257 std::size_t indicesLeft() const
    \n+
    258 {
    \n+
    259 return interface_.size()-index_;
    \n+
    260 }
    \n+
    264 std::size_t fixedSize;
    \n+
    268 int rank() const
    \n+
    269 {
    \n+
    270 return rank_;
    \n+
    271 }
    \n+
    275 std::size_t offset() const
    \n+
    276 {
    \n+
    277 return index_;
    \n+
    278 }
    \n+
    279private:
    \n+
    281 int rank_;
    \n+
    283 std::size_t index_;
    \n+
    285 InterfaceInformation interface_;
    \n+
    286 std::vector<std::size_t> sizes_;
    \n+
    287};
    \n+
    288
    \n+
    289
    \n+
    290} // end unnamed namespace
    \n+
    291
    \n+
    329template<class Allocator=std::allocator<std::pair<InterfaceInformation,InterfaceInformation> > >
    \n+
    \n+\n+
    331{
    \n+
    332public:
    \n+
    337 typedef std::map<int,std::pair<InterfaceInformation,InterfaceInformation>,
    \n+
    338 std::less<int>,
    \n+
    339 typename std::allocator_traits<Allocator>::template rebind_alloc< std::pair<const int,std::pair<InterfaceInformation,InterfaceInformation> > > > InterfaceMap;
    \n+
    340
    \n+
    341#ifndef DUNE_PARALLEL_MAX_COMMUNICATION_BUFFER_SIZE
    \n+
    \n+
    348 VariableSizeCommunicator(MPI_Comm comm, const InterfaceMap& inf)
    \n+
    349 : maxBufferSize_(32768), interface_(&inf)
    \n+
    350 {
    \n+
    351 MPI_Comm_dup(comm, &communicator_);
    \n+
    352 }
    \n+
    \n+
    \n+\n+
    358 : maxBufferSize_(32768), interface_(&inf.interfaces())
    \n+
    359 {
    \n+
    360 MPI_Comm_dup(inf.communicator(), &communicator_);
    \n+
    361 }
    \n+
    \n+
    362#else
    \n+
    369 VariableSizeCommunicator(MPI_Comm comm, InterfaceMap& inf)
    \n+
    370 : maxBufferSize_(DUNE_PARALLEL_MAX_COMMUNICATION_BUFFER_SIZE),
    \n+
    371 interface_(&inf)
    \n+
    372 {
    \n+
    373 MPI_Comm_dup(comm, &communicator_);
    \n+
    374 }
    \n+
    379 VariableSizeCommunicator(const Interface& inf)
    \n+
    380 : maxBufferSize_(DUNE_PARALLEL_MAX_COMMUNICATION_BUFFER_SIZE),
    \n+
    381 interface_(&inf.interfaces())
    \n+
    382 {
    \n+
    383 MPI_Comm_dup(inf.communicator(), &communicator_);
    \n+
    384 }
    \n+
    385#endif
    \n+
    \n+
    392 VariableSizeCommunicator(MPI_Comm comm, const InterfaceMap& inf, std::size_t max_buffer_size)
    \n+
    393 : maxBufferSize_(max_buffer_size), interface_(&inf)
    \n+
    394 {
    \n+
    395 MPI_Comm_dup(comm, &communicator_);
    \n+
    396 }
    \n+
    \n+
    397
    \n+
    \n+
    403 VariableSizeCommunicator(const Interface& inf, std::size_t max_buffer_size)
    \n+
    404 : maxBufferSize_(max_buffer_size), interface_(&inf.interfaces())
    \n+
    405 {
    \n+
    406 MPI_Comm_dup(inf.communicator(), &communicator_);
    \n+
    407 }
    \n+
    \n+
    408
    \n+
    \n+\n+
    410 {
    \n+
    411 MPI_Comm_free(&communicator_);
    \n+
    412 }
    \n+
    \n+
    413
    \n+
    \n+\n+
    419 maxBufferSize_ = other.maxBufferSize_;
    \n+
    420 interface_ = other.interface_;
    \n+
    421 MPI_Comm_dup(other.communicator_, &communicator_);
    \n+
    422 }
    \n+
    \n+
    423
    \n+
    \n+\n+
    429 if(this == &other) // don't do anything if objects are the same
    \n+
    430 return *this;
    \n+
    431
    \n+
    432 maxBufferSize_ = other.maxBufferSize_;
    \n+
    433 interface_ = other.interface_;
    \n+
    434 MPI_Comm_free(&communicator_);
    \n+
    435 MPI_Comm_dup(other.communicator_, &communicator_);
    \n+
    436
    \n+
    437 return *this;
    \n+
    438 }
    \n+
    \n+
    439
    \n+
    459 template<class DataHandle>
    \n+
    \n+
    460 void forward(DataHandle& handle)
    \n+
    461 {
    \n+
    462 communicate<true>(handle);
    \n+
    463 }
    \n+
    \n+
    464
    \n+
    484 template<class DataHandle>
    \n+
    \n+
    485 void backward(DataHandle& handle)
    \n+
    486 {
    \n+
    487 communicate<false>(handle);
    \n+
    488 }
    \n+
    \n+
    489
    \n+
    490private:
    \n+
    491 template<bool FORWARD, class DataHandle>
    \n+
    492 void communicateSizes(DataHandle& handle,
    \n+
    493 std::vector<InterfaceTracker>& recv_trackers);
    \n+
    494
    \n+
    501 template<bool forward,class DataHandle>
    \n+
    502 void communicate(DataHandle& handle);
    \n+
    512 template<bool FORWARD, class DataHandle>
    \n+
    513 void setupInterfaceTrackers(DataHandle& handle,
    \n+
    514 std::vector<InterfaceTracker>& send_trackers,
    \n+
    515 std::vector<InterfaceTracker>& recv_trackers);
    \n+
    523 template<bool FORWARD, class DataHandle>
    \n+
    524 void communicateFixedSize(DataHandle& handle);
    \n+
    532 template<bool FORWARD, class DataHandle>
    \n+
    533 void communicateVariableSize(DataHandle& handle);
    \n+
    540 std::size_t maxBufferSize_;
    \n+
    548 const InterfaceMap* interface_;
    \n+
    554 MPI_Comm communicator_;
    \n+
    555};
    \n+
    \n+
    556
    \n+
    558namespace
    \n+
    559{
    \n+
    563template<class DataHandle>
    \n+
    564class SizeDataHandle
    \n+
    565{
    \n+
    566public:
    \n+
    567 typedef std::size_t DataType;
    \n+
    568
    \n+
    569 SizeDataHandle(DataHandle& data,
    \n+
    570 std::vector<InterfaceTracker>& trackers)
    \n+
    571 : data_(data), trackers_(trackers), index_()
    \n+
    572 {}
    \n+
    573 bool fixedSize()
    \n+
    574 {
    \n+
    575 return true;
    \n+
    576 }
    \n+
    577 std::size_t size([[maybe_unused]] std::size_t i)
    \n+
    578 {
    \n+
    579 return 1;
    \n+
    580 }
    \n+
    581 template<class B>
    \n+
    582 void gather(B& buf, int i)
    \n+
    583 {
    \n+
    584 buf.write(data_.size(i));
    \n+
    585 }
    \n+
    586 void setReceivingIndex(std::size_t i)
    \n+
    587 {
    \n+
    588 index_=i;
    \n+
    589 }
    \n+
    590 std::size_t* getSizesPointer()
    \n+
    591 {
    \n+
    592 return trackers_[index_].getSizesPointer();
    \n+
    593 }
    \n+
    594
    \n+
    595private:
    \n+
    596 DataHandle& data_;
    \n+
    597 std::vector<InterfaceTracker>& trackers_;
    \n+
    598 int index_;
    \n+
    599};
    \n+
    600
    \n+
    601template<class T>
    \n+
    602void setReceivingIndex(T&, int)
    \n+
    603{}
    \n+
    604
    \n+
    605template<class T>
    \n+
    606void setReceivingIndex(SizeDataHandle<T>& t, int i)
    \n+
    607{
    \n+
    608 t.setReceivingIndex(i);
    \n+
    609}
    \n+
    610
    \n+
    611
    \n+
    617template<bool FORWARD>
    \n+
    618struct InterfaceInformationChooser
    \n+
    619{
    \n+
    623 static const InterfaceInformation&
    \n+
    624 getSend(const std::pair<InterfaceInformation,InterfaceInformation>& info)
    \n+
    625 {
    \n+
    626 return info.first;
    \n+
    627 }
    \n+
    628
    \n+
    632 static const InterfaceInformation&
    \n+
    633 getReceive(const std::pair<InterfaceInformation,InterfaceInformation>& info)
    \n+
    634 {
    \n+
    635 return info.second;
    \n+
    636 }
    \n+
    637};
    \n+
    638
    \n+
    639template<>
    \n+
    640struct InterfaceInformationChooser<false>
    \n+
    641{
    \n+
    642 static const InterfaceInformation&
    \n+
    643 getSend(const std::pair<InterfaceInformation,InterfaceInformation>& info)
    \n+
    644 {
    \n+
    645 return info.second;
    \n+
    646 }
    \n+
    647
    \n+
    648 static const InterfaceInformation&
    \n+
    649 getReceive(const std::pair<InterfaceInformation,InterfaceInformation>& info)
    \n+
    650 {
    \n+
    651 return info.first;
    \n+
    652 }
    \n+
    653};
    \n+
    654
    \n+
    660template<class DataHandle>
    \n+
    661struct PackEntries
    \n+
    662{
    \n+
    663
    \n+
    664 int operator()(DataHandle& handle, InterfaceTracker& tracker,
    \n+
    665 MessageBuffer<typename DataHandle::DataType>& buffer,
    \n+
    666 [[maybe_unused]] int i) const
    \n+
    667 {
    \n+
    668 return operator()(handle,tracker,buffer);
    \n+
    669 }
    \n+
    670
    \n+
    678 int operator()(DataHandle& handle, InterfaceTracker& tracker,
    \n+
    679 MessageBuffer<typename DataHandle::DataType>& buffer) const
    \n+
    680 {
    \n+
    681 if(tracker.fixedSize) // fixed size if variable is >0!
    \n+
    682 {
    \n+
    683
    \n+
    684 std::size_t noIndices=std::min(buffer.size()/tracker.fixedSize, tracker.indicesLeft());
    \n+
    685 for(std::size_t i=0; i< noIndices; ++i)
    \n+
    686 {
    \n+
    687 handle.gather(buffer, tracker.index());
    \n+
    688 tracker.moveToNextIndex();
    \n+
    689 }
    \n+
    690 return noIndices*tracker.fixedSize;
    \n+
    691 }
    \n+
    692 else
    \n+
    693 {
    \n+
    694 int packed=0;
    \n+
    695 tracker.skipZeroIndices();
    \n+
    696 while(!tracker.finished())
    \n+
    697 if(buffer.hasSpaceForItems(handle.size(tracker.index())))
    \n+
    698 {
    \n+
    699 handle.gather(buffer, tracker.index());
    \n+
    700 packed+=handle.size(tracker.index());
    \n+
    701 tracker.moveToNextIndex();
    \n+
    702 }
    \n+
    703 else
    \n+
    704 break;
    \n+
    705 return packed;
    \n+
    706 }
    \n+
    707 }
    \n+
    708};
    \n+
    709
    \n+
    715template<class DataHandle>
    \n+
    716struct UnpackEntries{
    \n+
    717
    \n+
    725 bool operator()(DataHandle& handle, InterfaceTracker& tracker,
    \n+
    726 MessageBuffer<typename DataHandle::DataType>& buffer,
    \n+
    727 int count=0)
    \n+
    728 {
    \n+
    729 if(tracker.fixedSize) // fixed size if variable is >0!
    \n+
    730 {
    \n+
    731 std::size_t noIndices=std::min(buffer.size()/tracker.fixedSize, tracker.indicesLeft());
    \n+
    732
    \n+
    733 for(std::size_t i=0; i< noIndices; ++i)
    \n+
    734 {
    \n+
    735 handle.scatter(buffer, tracker.index(), tracker.fixedSize);
    \n+
    736 tracker.moveToNextIndex();
    \n+
    737 }
    \n+
    738 return tracker.finished();
    \n+
    739 }
    \n+
    740 else
    \n+
    741 {
    \n+
    742 assert(count);
    \n+
    743 for(int unpacked=0;unpacked<count;)
    \n+
    744 {
    \n+
    745 assert(!tracker.finished());
    \n+
    746 assert(buffer.hasSpaceForItems(tracker.size()));
    \n+
    747 handle.scatter(buffer, tracker.index(), tracker.size());
    \n+
    748 unpacked+=tracker.size();
    \n+
    749 tracker.moveToNextIndex();
    \n+
    750 }
    \n+
    751 return tracker.finished();
    \n+
    752 }
    \n+
    753 }
    \n+
    754};
    \n+
    755
    \n+
    756
    \n+
    760template<class DataHandle>
    \n+
    761struct UnpackSizeEntries{
    \n+
    762
    \n+
    770 bool operator()(SizeDataHandle<DataHandle>& handle, InterfaceTracker& tracker,
    \n+
    771 MessageBuffer<typename SizeDataHandle<DataHandle>::DataType>& buffer) const
    \n+
    772 {
    \n+
    773 std::size_t noIndices=std::min(buffer.size(), tracker.indicesLeft());
    \n+
    774 std::copy(static_cast<std::size_t*>(buffer), static_cast<std::size_t*>(buffer)+noIndices,
    \n+
    775 handle.getSizesPointer()+tracker.offset());
    \n+
    776 tracker.increment(noIndices);
    \n+
    777 return noIndices;
    \n+
    778 }
    \n+
    779 bool operator()(SizeDataHandle<DataHandle>& handle, InterfaceTracker& tracker,
    \n+
    780 MessageBuffer<typename SizeDataHandle<DataHandle>::DataType>& buffer, int) const
    \n+
    781 {
    \n+
    782 return operator()(handle,tracker,buffer);
    \n+
    783 }
    \n+
    784};
    \n+
    785
    \n+
    793void sendFixedSize(std::vector<InterfaceTracker>& send_trackers,
    \n+
    794 std::vector<MPI_Request>& send_requests,
    \n+
    795 std::vector<InterfaceTracker>& recv_trackers,
    \n+
    796 std::vector<MPI_Request>& recv_requests,
    \n+
    797 MPI_Comm communicator)
    \n+
    798{
    \n+
    799 typedef std::vector<InterfaceTracker>::iterator TIter;
    \n+
    800 std::vector<MPI_Request>::iterator mIter=recv_requests.begin();
    \n+
    801
    \n+
    802 for(TIter iter=recv_trackers.begin(), end=recv_trackers.end(); iter!=end;
    \n+
    803 ++iter, ++mIter)
    \n+
    804 {
    \n+
    805 MPI_Irecv(&(iter->fixedSize), 1, MPITraits<std::size_t>::getType(),
    \n+
    806 iter->rank(), 933881, communicator, &(*mIter));
    \n+
    807 }
    \n+
    808
    \n+
    809 // Send our size to all neighbours using non-blocking synchronous communication.
    \n+
    810 std::vector<MPI_Request>::iterator mIter1=send_requests.begin();
    \n+
    811 for(TIter iter=send_trackers.begin(), end=send_trackers.end();
    \n+
    812 iter!=end;
    \n+
    813 ++iter, ++mIter1)
    \n+
    814 {
    \n+
    815 MPI_Issend(&(iter->fixedSize), 1, MPITraits<std::size_t>::getType(),
    \n+
    816 iter->rank(), 933881, communicator, &(*mIter1));
    \n+
    817 }
    \n+
    818}
    \n+
    819
    \n+
    820
    \n+
    825template<class DataHandle>
    \n+
    826struct SetupSendRequest{
    \n+
    827 void operator()(DataHandle& handle,
    \n+
    828 InterfaceTracker& tracker,
    \n+
    829 MessageBuffer<typename DataHandle::DataType>& buffer,
    \n+
    830 MPI_Request& request,
    \n+
    831 MPI_Comm comm) const
    \n+
    832 {
    \n+
    833 buffer.reset();
    \n+
    834 int size=PackEntries<DataHandle>()(handle, tracker, buffer);
    \n+
    835 // Skip indices of zero size.
    \n+
    836 while(!tracker.finished() && !handle.size(tracker.index()))
    \n+
    837 tracker.moveToNextIndex();
    \n+
    838 if(size)
    \n+\n+
    840 tracker.rank(), 933399, comm, &request);
    \n+
    841 }
    \n+
    842};
    \n+
    843
    \n+
    844
    \n+
    849template<class DataHandle>
    \n+
    850struct SetupRecvRequest{
    \n+
    851 void operator()(DataHandle& /*handle*/,
    \n+
    852 InterfaceTracker& tracker,
    \n+
    853 MessageBuffer<typename DataHandle::DataType>& buffer,
    \n+
    854 MPI_Request& request,
    \n+
    855 MPI_Comm comm) const
    \n+
    856 {
    \n+
    857 buffer.reset();
    \n+
    858 if(tracker.indicesLeft())
    \n+
    859 MPI_Irecv(buffer, buffer.size(), MPITraits<typename DataHandle::DataType>::getType(),
    \n+
    860 tracker.rank(), 933399, comm, &request);
    \n+
    861 }
    \n+
    862};
    \n+
    863
    \n+
    867template<class DataHandle>
    \n+
    868struct NullPackUnpackFunctor
    \n+
    869{
    \n+
    870 int operator()(DataHandle&, InterfaceTracker&,
    \n+
    871 MessageBuffer<typename DataHandle::DataType>&, int)
    \n+
    872 {
    \n+
    873 return 0;
    \n+
    874 }
    \n+
    875 int operator()(DataHandle&, InterfaceTracker&,
    \n+
    876 MessageBuffer<typename DataHandle::DataType>&)
    \n+
    877 {
    \n+
    878 return 0;
    \n+
    879 }
    \n+
    880};
    \n+
    881
    \n+
    896template<class DataHandle, class BufferFunctor, class CommunicationFunctor>
    \n+
    897std::size_t checkAndContinue(DataHandle& handle,
    \n+
    898 std::vector<InterfaceTracker>& trackers,
    \n+
    899 std::vector<MPI_Request>& requests,
    \n+
    900 std::vector<MPI_Request>& requests2,
    \n+
    901 std::vector<MessageBuffer<typename DataHandle::DataType> >& buffers,
    \n+
    902 MPI_Comm comm,
    \n+
    903 BufferFunctor buffer_func,
    \n+
    904 CommunicationFunctor comm_func,
    \n+
    905 bool valid=true,
    \n+
    906 bool getCount=false)
    \n+
    907{
    \n+
    908 std::size_t size=requests.size();
    \n+
    909 std::vector<MPI_Status> statuses(size);
    \n+
    910 int no_completed;
    \n+
    911 std::vector<int> indices(size, -1); // the indices for which the communication finished.
    \n+
    912
    \n+
    913 MPI_Testsome(size, &(requests[0]), &no_completed, &(indices[0]), &(statuses[0]));
    \n+
    914 indices.resize(no_completed);
    \n+
    915 for(std::vector<int>::iterator index=indices.begin(), end=indices.end();
    \n+
    916 index!=end; ++index)
    \n+
    917 {
    \n+
    918 InterfaceTracker& tracker=trackers[*index];
    \n+
    919 setReceivingIndex(handle, *index);
    \n+
    920 if(getCount)
    \n+
    921 {
    \n+
    922 // Get the number of entries received
    \n+
    923 int count;
    \n+
    924 MPI_Get_count(&(statuses[index-indices.begin()]),
    \n+\n+
    926 &count);
    \n+
    927 // Communication completed, we can reuse the buffers, e.g. unpack or repack
    \n+
    928 buffer_func(handle, tracker, buffers[*index], count);
    \n+
    929 }else
    \n+
    930 buffer_func(handle, tracker, buffers[*index]);
    \n+
    931 tracker.skipZeroIndices();
    \n+
    932 if(!tracker.finished()){
    \n+
    933 // Maybe start another communication.
    \n+
    934 comm_func(handle, tracker, buffers[*index], requests2[*index], comm);
    \n+
    935 tracker.skipZeroIndices();
    \n+
    936 if(valid)
    \n+
    937 --no_completed; // communication not finished, decrement counter for finished ones.
    \n+
    938 }
    \n+
    939 }
    \n+
    940 return no_completed;
    \n+
    941
    \n+
    942}
    \n+
    943
    \n+
    953template<class DataHandle>
    \n+
    954std::size_t receiveSizeAndSetupReceive(DataHandle& handle,
    \n+
    955 std::vector<InterfaceTracker>& trackers,
    \n+
    956 std::vector<MPI_Request>& size_requests,
    \n+
    957 std::vector<MPI_Request>& data_requests,
    \n+
    958 std::vector<MessageBuffer<typename DataHandle::DataType> >& buffers,
    \n+
    959 MPI_Comm comm)
    \n+
    960{
    \n+
    961 return checkAndContinue(handle, trackers, size_requests, data_requests, buffers, comm,
    \n+
    962 NullPackUnpackFunctor<DataHandle>(), SetupRecvRequest<DataHandle>(), false);
    \n+
    963}
    \n+
    964
    \n+
    973template<class DataHandle>
    \n+
    974std::size_t checkSendAndContinueSending(DataHandle& handle,
    \n+
    975 std::vector<InterfaceTracker>& trackers,
    \n+
    976 std::vector<MPI_Request>& requests,
    \n+
    977 std::vector<MessageBuffer<typename DataHandle::DataType> >& buffers,
    \n+
    978 MPI_Comm comm)
    \n+
    979{
    \n+
    980 return checkAndContinue(handle, trackers, requests, requests, buffers, comm,
    \n+
    981 NullPackUnpackFunctor<DataHandle>(), SetupSendRequest<DataHandle>());
    \n+
    982}
    \n+
    983
    \n+
    992template<class DataHandle>
    \n+
    993std::size_t checkReceiveAndContinueReceiving(DataHandle& handle,
    \n+
    994 std::vector<InterfaceTracker>& trackers,
    \n+
    995 std::vector<MPI_Request>& requests,
    \n+
    996 std::vector<MessageBuffer<typename DataHandle::DataType> >& buffers,
    \n+
    997 MPI_Comm comm)
    \n+
    998{
    \n+
    999 return checkAndContinue(handle, trackers, requests, requests, buffers, comm,
    \n+
    1000 UnpackEntries<DataHandle>(), SetupRecvRequest<DataHandle>(),
    \n+
    1001 true, !Impl::callFixedSize(handle));
    \n+
    1002}
    \n+
    1003
    \n+
    1004
    \n+
    1005bool validRecvRequests(const std::vector<MPI_Request> reqs)
    \n+
    1006{
    \n+
    1007 for(std::vector<MPI_Request>::const_iterator i=reqs.begin(), end=reqs.end();
    \n+
    1008 i!=end; ++i)
    \n+
    1009 if(*i!=MPI_REQUEST_NULL)
    \n+
    1010 return true;
    \n+
    1011 return false;
    \n+
    1012}
    \n+
    1013
    \n+
    1024template<class DataHandle, class Functor>
    \n+
    1025std::size_t setupRequests(DataHandle& handle,
    \n+
    1026 std::vector<InterfaceTracker>& trackers,
    \n+
    1027 std::vector<MessageBuffer<typename DataHandle::DataType> >& buffers,
    \n+
    1028 std::vector<MPI_Request>& requests,
    \n+
    1029 const Functor& setupFunctor,
    \n+
    1030 MPI_Comm communicator)
    \n+
    1031{
    \n+
    1032 typedef typename std::vector<InterfaceTracker>::iterator TIter;
    \n+
    1033 typename std::vector<MessageBuffer<typename DataHandle::DataType> >::iterator
    \n+
    1034 biter=buffers.begin();
    \n+
    1035 typename std::vector<MPI_Request>::iterator riter=requests.begin();
    \n+
    1036 std::size_t complete=0;
    \n+
    1037 for(TIter titer=trackers.begin(), end=trackers.end(); titer!=end; ++titer, ++biter, ++riter)
    \n+
    1038 {
    \n+
    1039 setupFunctor(handle, *titer, *biter, *riter, communicator);
    \n+
    1040 complete+=titer->finished();
    \n+
    1041 }
    \n+
    1042 return complete;
    \n+
    1043}
    \n+
    1044} // end unnamed namespace
    \n+
    1045
    \n+
    1046template<class Allocator>
    \n+
    1047template<bool FORWARD, class DataHandle>
    \n+
    1048void VariableSizeCommunicator<Allocator>::setupInterfaceTrackers(DataHandle& handle,
    \n+
    1049 std::vector<InterfaceTracker>& send_trackers,
    \n+
    1050 std::vector<InterfaceTracker>& recv_trackers)
    \n+
    1051{
    \n+
    1052 if(interface_->size()==0)
    \n+
    1053 return;
    \n+
    1054 send_trackers.reserve(interface_->size());
    \n+
    1055 recv_trackers.reserve(interface_->size());
    \n+
    1056
    \n+
    1057 int fixedsize=0;
    \n+
    1058 if(Impl::callFixedSize(handle))
    \n+
    1059 ++fixedsize;
    \n+
    1060
    \n+
    1061
    \n+
    1062 typedef typename InterfaceMap::const_iterator IIter;
    \n+
    1063 for(IIter inf=interface_->begin(), end=interface_->end(); inf!=end; ++inf)
    \n+
    1064 {
    \n+
    1065
    \n+
    1066 if(Impl::callFixedSize(handle) && InterfaceInformationChooser<FORWARD>::getSend(inf->second).size())
    \n+
    1067 fixedsize=handle.size(InterfaceInformationChooser<FORWARD>::getSend(inf->second)[0]);
    \n+
    1068 assert(!Impl::callFixedSize(handle)||fixedsize>0);
    \n+
    1069 send_trackers.push_back(InterfaceTracker(inf->first,
    \n+
    1070 InterfaceInformationChooser<FORWARD>::getSend(inf->second), fixedsize));
    \n+
    1071 recv_trackers.push_back(InterfaceTracker(inf->first,
    \n+
    1072 InterfaceInformationChooser<FORWARD>::getReceive(inf->second), fixedsize, fixedsize==0));
    \n+
    1073 }
    \n+
    1074}
    \n+
    1075
    \n+
    1076template<class Allocator>
    \n+
    1077template<bool FORWARD, class DataHandle>
    \n+
    1078void VariableSizeCommunicator<Allocator>::communicateFixedSize(DataHandle& handle)
    \n+
    1079{
    \n+
    1080 std::vector<MPI_Request> size_send_req(interface_->size());
    \n+
    1081 std::vector<MPI_Request> size_recv_req(interface_->size());
    \n+
    1082
    \n+
    1083 std::vector<InterfaceTracker> send_trackers;
    \n+
    1084 std::vector<InterfaceTracker> recv_trackers;
    \n+
    1085 setupInterfaceTrackers<FORWARD>(handle,send_trackers, recv_trackers);
    \n+
    1086 sendFixedSize(send_trackers, size_send_req, recv_trackers, size_recv_req, communicator_);
    \n+
    1087
    \n+
    1088 std::vector<MPI_Request> data_send_req(interface_->size(), MPI_REQUEST_NULL);
    \n+
    1089 std::vector<MPI_Request> data_recv_req(interface_->size(), MPI_REQUEST_NULL);
    \n+
    1090 typedef typename DataHandle::DataType DataType;
    \n+
    1091 std::vector<MessageBuffer<DataType> > send_buffers(interface_->size(), MessageBuffer<DataType>(maxBufferSize_)),
    \n+
    1092 recv_buffers(interface_->size(), MessageBuffer<DataType>(maxBufferSize_));
    \n+
    1093
    \n+
    1094
    \n+
    1095 setupRequests(handle, send_trackers, send_buffers, data_send_req,
    \n+
    1096 SetupSendRequest<DataHandle>(), communicator_);
    \n+
    1097
    \n+
    1098 std::size_t no_size_to_recv, no_to_send, no_to_recv, old_size;
    \n+
    1099 no_size_to_recv = no_to_send = no_to_recv = old_size = interface_->size();
    \n+
    1100
    \n+
    1101 // Skip empty interfaces.
    \n+
    1102 typedef typename std::vector<InterfaceTracker>::const_iterator Iter;
    \n+
    1103 for(Iter i=recv_trackers.begin(), end=recv_trackers.end(); i!=end; ++i)
    \n+
    1104 if(i->empty())
    \n+
    1105 --no_to_recv;
    \n+
    1106 for(Iter i=send_trackers.begin(), end=send_trackers.end(); i!=end; ++i)
    \n+
    1107 if(i->empty())
    \n+
    1108 --no_to_send;
    \n+
    1109
    \n+
    1110 while(no_size_to_recv+no_to_send+no_to_recv)
    \n+
    1111 {
    \n+
    1112 // Receive the fixedsize and setup receives accordingly
    \n+
    1113 if(no_size_to_recv)
    \n+
    1114 no_size_to_recv -= receiveSizeAndSetupReceive(handle,recv_trackers, size_recv_req,
    \n+
    1115 data_recv_req, recv_buffers,
    \n+
    1116 communicator_);
    \n+
    1117
    \n+
    1118 // Check send completion and initiate other necessary sends
    \n+
    1119 if(no_to_send)
    \n+
    1120 no_to_send -= checkSendAndContinueSending(handle, send_trackers, data_send_req,
    \n+
    1121 send_buffers, communicator_);
    \n+
    1122 if(validRecvRequests(data_recv_req))
    \n+
    1123 // Receive data and setup new unblocking receives if necessary
    \n+
    1124 no_to_recv -= checkReceiveAndContinueReceiving(handle, recv_trackers, data_recv_req,
    \n+
    1125 recv_buffers, communicator_);
    \n+
    1126 }
    \n+
    1127
    \n+
    1128 // Wait for completion of sending the size.
    \n+
    1129 //std::vector<MPI_Status> statuses(interface_->size(), MPI_STATUSES_IGNORE);
    \n+
    1130 MPI_Waitall(size_send_req.size(), &(size_send_req[0]), MPI_STATUSES_IGNORE);
    \n+
    1131
    \n+
    1132}
    \n+
    1133
    \n+
    1134template<class Allocator>
    \n+
    1135template<bool FORWARD, class DataHandle>
    \n+
    1136void VariableSizeCommunicator<Allocator>::communicateSizes(DataHandle& handle,
    \n+
    1137 std::vector<InterfaceTracker>& data_recv_trackers)
    \n+
    1138{
    \n+
    1139 std::vector<InterfaceTracker> send_trackers;
    \n+
    1140 std::vector<InterfaceTracker> recv_trackers;
    \n+
    1141 std::size_t size = interface_->size();
    \n+
    1142 std::vector<MPI_Request> send_requests(size, MPI_REQUEST_NULL);
    \n+
    1143 std::vector<MPI_Request> recv_requests(size, MPI_REQUEST_NULL);
    \n+
    1144 std::vector<MessageBuffer<std::size_t> >
    \n+
    1145 send_buffers(size, MessageBuffer<std::size_t>(maxBufferSize_)),
    \n+
    1146 recv_buffers(size, MessageBuffer<std::size_t>(maxBufferSize_));
    \n+
    1147 SizeDataHandle<DataHandle> size_handle(handle,data_recv_trackers);
    \n+
    1148 setupInterfaceTrackers<FORWARD>(size_handle,send_trackers, recv_trackers);
    \n+
    1149 setupRequests(size_handle, send_trackers, send_buffers, send_requests,
    \n+
    1150 SetupSendRequest<SizeDataHandle<DataHandle> >(), communicator_);
    \n+
    1151 setupRequests(size_handle, recv_trackers, recv_buffers, recv_requests,
    \n+
    1152 SetupRecvRequest<SizeDataHandle<DataHandle> >(), communicator_);
    \n+
    1153
    \n+
    1154 // Count valid requests that we have to wait for.
    \n+
    1155 auto valid_req_func =
    \n+
    1156 [](const MPI_Request& req) { return req != MPI_REQUEST_NULL; };
    \n+
    1157
    \n+
    1158 auto size_to_send = std::count_if(send_requests.begin(), send_requests.end(),
    \n+
    1159 valid_req_func);
    \n+
    1160 auto size_to_recv = std::count_if(recv_requests.begin(), recv_requests.end(),
    \n+
    1161 valid_req_func);
    \n+
    1162
    \n+
    1163 while(size_to_send+size_to_recv)
    \n+
    1164 {
    \n+
    1165 if(size_to_send)
    \n+
    1166 size_to_send -=
    \n+
    1167 checkSendAndContinueSending(size_handle, send_trackers, send_requests,
    \n+
    1168 send_buffers, communicator_);
    \n+
    1169 if(size_to_recv)
    \n+
    1170 // Could have done this using checkSendAndContinueSending
    \n+
    1171 // But the call below is more efficient as UnpackSizeEntries
    \n+
    1172 // uses std::copy.
    \n+
    1173 size_to_recv -=
    \n+
    1174 checkAndContinue(size_handle, recv_trackers, recv_requests, recv_requests,
    \n+
    1175 recv_buffers, communicator_, UnpackSizeEntries<DataHandle>(),
    \n+
    1176 SetupRecvRequest<SizeDataHandle<DataHandle> >());
    \n+
    1177 }
    \n+
    1178}
    \n+
    1179
    \n+
    1180template<class Allocator>
    \n+
    1181template<bool FORWARD, class DataHandle>
    \n+
    1182void VariableSizeCommunicator<Allocator>::communicateVariableSize(DataHandle& handle)
    \n+
    1183{
    \n+
    1184
    \n+
    1185 std::vector<InterfaceTracker> send_trackers;
    \n+
    1186 std::vector<InterfaceTracker> recv_trackers;
    \n+
    1187 setupInterfaceTrackers<FORWARD>(handle, send_trackers, recv_trackers);
    \n+
    1188
    \n+
    1189 std::vector<MPI_Request> send_requests(interface_->size(), MPI_REQUEST_NULL);
    \n+
    1190 std::vector<MPI_Request> recv_requests(interface_->size(), MPI_REQUEST_NULL);
    \n+
    1191 typedef typename DataHandle::DataType DataType;
    \n+
    1192 std::vector<MessageBuffer<DataType> >
    \n+
    1193 send_buffers(interface_->size(), MessageBuffer<DataType>(maxBufferSize_)),
    \n+
    1194 recv_buffers(interface_->size(), MessageBuffer<DataType>(maxBufferSize_));
    \n+
    1195
    \n+
    1196 communicateSizes<FORWARD>(handle, recv_trackers);
    \n+
    1197 // Setup requests for sending and receiving.
    \n+
    1198 setupRequests(handle, send_trackers, send_buffers, send_requests,
    \n+
    1199 SetupSendRequest<DataHandle>(), communicator_);
    \n+
    1200 setupRequests(handle, recv_trackers, recv_buffers, recv_requests,
    \n+
    1201 SetupRecvRequest<DataHandle>(), communicator_);
    \n+
    1202
    \n+
    1203 // Determine number of valid requests.
    \n+
    1204 auto valid_req_func =
    \n+
    1205 [](const MPI_Request& req) { return req != MPI_REQUEST_NULL;};
    \n+
    1206
    \n+
    1207 auto no_to_send = std::count_if(send_requests.begin(), send_requests.end(),
    \n+
    1208 valid_req_func);
    \n+
    1209 auto no_to_recv = std::count_if(recv_requests.begin(), recv_requests.end(),
    \n+
    1210 valid_req_func);
    \n+
    1211 while(no_to_send+no_to_recv)
    \n+
    1212 {
    \n+
    1213 // Check send completion and initiate other necessary sends
    \n+
    1214 if(no_to_send)
    \n+
    1215 no_to_send -= checkSendAndContinueSending(handle, send_trackers, send_requests,
    \n+
    1216 send_buffers, communicator_);
    \n+
    1217 if(no_to_recv)
    \n+
    1218 // Receive data and setup new unblocking receives if necessary
    \n+
    1219 no_to_recv -= checkReceiveAndContinueReceiving(handle, recv_trackers, recv_requests,
    \n+
    1220 recv_buffers, communicator_);
    \n+
    1221 }
    \n+
    1222}
    \n+
    1223
    \n+
    1224template<class Allocator>
    \n+
    1225template<bool FORWARD, class DataHandle>
    \n+
    1226void VariableSizeCommunicator<Allocator>::communicate(DataHandle& handle)
    \n+
    1227{
    \n+
    1228 if( interface_->size() == 0)
    \n+
    1229 // Simply return as otherwise we will index an empty container
    \n+
    1230 // either for MPI_Wait_all or MPI_Test_some.
    \n+
    1231 return;
    \n+
    1232
    \n+
    1233 if(Impl::callFixedSize(handle))
    \n+
    1234 communicateFixedSize<FORWARD>(handle);
    \n+
    1235 else
    \n+
    1236 communicateVariableSize<FORWARD>(handle);
    \n+
    1237}
    \n+
    1238} // end namespace Dune
    \n+
    1239
    \n+
    1240#endif // HAVE_MPI
    \n+
    1241#endif // DUNE_COMMON_PARALLEL_VARIABLESIZECOMMUNICATOR_HH
    \n+
    std::size_t fixedSize
    The number of data items per index if it is fixed, 0 otherwise.
    Definition variablesizecommunicator.hh:264
    \n+
    Traits classes for mapping types onto MPI_Datatype.
    \n+
    Infrastructure for concepts.
    \n+
    MPI_Comm communicator() const
    Get the MPI Communicator.
    Definition parallel/interface.hh:426
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    size_type size() const
    size method
    Definition densevector.hh:336
    \n-
    Traits::size_type size_type
    The type used for the index access and size operation.
    Definition densevector.hh:259
    \n-
    T type
    Definition typetraits.hh:531
    \n+
    constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
    Return the size of the sequence.
    Definition integersequence.hh:75
    \n+
    constexpr std::bool_constant<(sizeof...(II)==0)> empty(std::integer_sequence< T, II... >)
    Checks whether the sequence is empty.
    Definition integersequence.hh:80
    \n+
    static MPI_Datatype getType()
    Definition mpitraits.hh:48
    \n+
    size_t size() const
    Get the number of entries in the interface.
    Definition parallel/interface.hh:117
    \n+
    Communication interface between remote and local indices.
    Definition parallel/interface.hh:218
    \n+
    Definition variablesizecommunicator.hh:42
    \n+
    auto require(H &&h) -> decltype(h.fixedSize())
    \n+
    A buffered communicator where the amount of data sent does not have to be known a priori.
    Definition variablesizecommunicator.hh:331
    \n+
    VariableSizeCommunicator(const Interface &inf, std::size_t max_buffer_size)
    Creates a communicator with a specific maximum buffer size.
    Definition variablesizecommunicator.hh:403
    \n+
    void backward(DataHandle &handle)
    Communicate backwards.
    Definition variablesizecommunicator.hh:485
    \n+
    ~VariableSizeCommunicator()
    Definition variablesizecommunicator.hh:409
    \n+
    VariableSizeCommunicator(MPI_Comm comm, const InterfaceMap &inf, std::size_t max_buffer_size)
    Creates a communicator with a specific maximum buffer size.
    Definition variablesizecommunicator.hh:392
    \n+
    VariableSizeCommunicator(const VariableSizeCommunicator &other)
    Copy-constructs a communicator.
    Definition variablesizecommunicator.hh:418
    \n+
    void forward(DataHandle &handle)
    Communicate forward.
    Definition variablesizecommunicator.hh:460
    \n+
    VariableSizeCommunicator & operator=(const VariableSizeCommunicator &other)
    Copy-assignes a communicator.
    Definition variablesizecommunicator.hh:428
    \n+
    std::map< int, std::pair< InterfaceInformation, InterfaceInformation >, std::less< int >, typename std::allocator_traits< Allocator >::template rebind_alloc< std::pair< const int, std::pair< InterfaceInformation, InterfaceInformation > > > > InterfaceMap
    The type of the map from process number to InterfaceInformation for sending and receiving to and from...
    Definition variablesizecommunicator.hh:339
    \n+
    VariableSizeCommunicator(MPI_Comm comm, const InterfaceMap &inf)
    Creates a communicator with the default maximum buffer size.
    Definition variablesizecommunicator.hh:348
    \n+
    VariableSizeCommunicator(const Interface &inf)
    Creates a communicator with the default maximum buffer size.
    Definition variablesizecommunicator.hh:357
    \n+
    Provides classes for building the communication interface between remote indices.
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,213 +1,1000 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-scalarvectorview.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+variablesizecommunicator.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_SCALARVECTORVIEW_HH\n-6#define DUNE_COMMON_SCALARVECTORVIEW_HH\n+5#ifndef DUNE_COMMON_PARALLEL_VARIABLESIZECOMMUNICATOR_HH\n+6#define DUNE_COMMON_PARALLEL_VARIABLESIZECOMMUNICATOR_HH\n 7\n-8#include \n-9#include \n-10#include \n-11\n-12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bd_\be_\bn_\bs_\be_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bm_\ba_\bt_\bv_\be_\bc_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-16\n-17namespace _\bD_\bu_\bn_\be {\n+8#if HAVE_MPI\n+9\n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16#include \n+17#include \n 18\n-19namespace Impl {\n+19#include \n 20\n-35 template\n-36 class ScalarVectorView :\n-37 public DenseVector>\n-38 {\n-39 K* dataP_;\n-40 using Base = DenseVector>;\n+21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bc_\bo_\bn_\bc_\be_\bp_\bt_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b._\bh_\bh>\n+23#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+24\n+37namespace _\bD_\bu_\bn_\be\n+38{\n+39\n+40namespace Concept {\n 41\n-42 template \n-43 friend class ScalarVectorView;\n-44 public:\n+_\b4_\b2struct _\bH_\ba_\bs_\bF_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be {\n+_\b4_\b3 template auto _\br_\be_\bq_\bu_\bi_\br_\be(H &&h) -> decltype(h.fixedSize());\n+44};\n 45\n-47 constexpr static int dimension = 1;\n-48\n-50 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = typename _\bB_\ba_\bs_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-51\n-53 using reference = std::decay_t&;\n-54\n-56 using const_reference = const K&;\n+46} // namespace Concept\n+47\n+48namespace Impl {\n+49\n+50template (), int> = 0>\n+52constexpr bool callFixedSize(H &&handle) {\n+53 return handle.fixedSize();\n+54}\n+55\n+56} // namespace Impl\n 57\n-58 //===== construction\n-59\n-61 constexpr ScalarVectorView ()\n-62 : dataP_(nullptr)\n-63 {}\n-64\n-66 ScalarVectorView (K* p) :\n-67 dataP_(p)\n-68 {}\n-69\n-71 ScalarVectorView (const ScalarVectorView &other) :\n-72 Base(),\n-73 dataP_(other.dataP_)\n+58namespace\n+59{\n+64template >\n+65class MessageBuffer\n+66{\n+67public:\n+72 explicit MessageBuffer(int _\bs_\bi_\bz_\be)\n+73 : buffer_(new T[_\bs_\bi_\bz_\be]), size_(_\bs_\bi_\bz_\be), position_(0)\n 74 {}\n-75\n-77 ScalarVectorView (ScalarVectorView &&other) :\n-78 Base(),\n-79 dataP_( other.dataP_ )\n-80 {}\n-81\n-83 ScalarVectorView& operator= (const ScalarVectorView& other)\n-84 {\n-85 assert(dataP_);\n-86 assert(other.dataP_);\n-87 *dataP_ = *(other.dataP_);\n-88 return *this;\n-89 }\n-90\n-91 template\n-92 ScalarVectorView& operator= (const ScalarVectorView& other)\n+79 explicit MessageBuffer(const MessageBuffer& o)\n+80 : buffer_(new T[o.size_]), size_(o.size_), position_(o.position_)\n+81 {\n+82 }\n+84 ~MessageBuffer()\n+85 {\n+86 delete[] buffer_;\n+87 }\n+92 void write(const T& data)\n 93 {\n-94 assert(dataP_);\n-95 assert(other.dataP_);\n-96 *dataP_ = *(other.dataP_);\n-97 return *this;\n-98 }\n-99\n-101 template::value, int> = 0>\n-103 inline ScalarVectorView& operator= (const T& k)\n-104 {\n-105 *dataP_ = k;\n-106 return *this;\n-107 }\n-108\n-110 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be ()\n-111 {\n-112 return 1;\n-113 }\n-114\n-116 K& operator[] ([[maybe_unused]] size_type i)\n-117 {\n-118 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(i == 0);\n-119 return *dataP_;\n-120 }\n-121\n-123 const K& operator[] ([[maybe_unused]] size_type i) const\n-124 {\n-125 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(i == 0);\n-126 return *dataP_;\n-127 }\n-128 }; // class ScalarVectorView\n-129\n-130} // namespace Impl\n-131\n-132\n-133 template< class K>\n-134 struct DenseMatVecTraits< Impl::ScalarVectorView >\n-135 {\n-136 using derived_type = Impl::ScalarVectorView;\n-137 using value_type = std::remove_const_t;\n-138 using size_type = std::size_t;\n-139 };\n-140\n-141 template< class K >\n-142 struct FieldTraits< Impl::ScalarVectorView > : public FieldTraits> {};\n-143\n-144 template\n-145 struct AutonomousValueType>\n-146 {\n-147 using _\bt_\by_\bp_\be = FieldVector,1>;\n-148 };\n-149\n-150namespace Impl {\n-151\n-163 template\n-164 inline std::istream &_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>_\b ( std::istream &in, ScalarVectorView &v\n-)\n-165 {\n-166 K w;\n-167 if(in >> w)\n-168 v = w;\n-169 return in;\n-170 }\n-171\n-172\n-174 template::value, int> = 0>\n-176 auto asVector(T& t)\n-177 {\n-178 return ScalarVectorView{&t};\n-179 }\n-180\n-182 template::value, int> = 0>\n-184 auto asVector(const T& t)\n-185 {\n-186 return ScalarVectorView{&t};\n-187 }\n-188\n-190 template::value, int> = 0>\n-192 T& asVector(T& t)\n-193 {\n-194 return t;\n+94 buffer_[position_++]=data;\n+95 }\n+96\n+101 void read(T& data)\n+102 {\n+103 data=buffer_[position_++];\n+104 }\n+105\n+111 void reset()\n+112 {\n+113 position_=0;\n+114 }\n+115\n+120 bool finished()\n+121 {\n+122 return position_==size_;\n+123 }\n+124\n+130 bool hasSpaceForItems(int noItems)\n+131 {\n+132 return position_+noItems<=size_;\n+133 }\n+138 std::size_t _\bs_\bi_\bz_\be() const\n+139 {\n+140 return size_;\n+141 }\n+146 operator T*()\n+147 {\n+148 return buffer_;\n+149 }\n+150\n+151private:\n+155 T* buffer_;\n+159 std::size_t size_;\n+163 std::size_t position_;\n+164};\n+165\n+169class InterfaceTracker\n+170{\n+171public:\n+177 InterfaceTracker(int rank, InterfaceInformation info, std::size_t\n+fixedsize=0,\n+178 bool allocateSizes=false)\n+179 : _\bf_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be(fixedsize),rank_(rank), index_(), interface_(info), sizes_()\n+180 {\n+181 if(allocateSizes)\n+182 {\n+183 sizes_.resize(info.size());\n+184 }\n+185 }\n+186\n+190 void moveToNextIndex()\n+191 {\n+192 index_++;\n+193 assert(index_<=interface_.size());\n+194 skipZeroIndices();\n 195 }\n-196\n-198 template::value, int> = 0>\n-200 const T& asVector(const T& t)\n+200 void increment(std::size_t i)\n 201 {\n-202 return t;\n-203 }\n-204\n-205} // end namespace Impl\n-206\n-207} // end namespace Dune\n-208\n-209#endif // DUNE_COMMON_SCALARVECTORVIEW_HH\n-_\bm_\ba_\bt_\bv_\be_\bc_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Documentation of the traits classes you need to write for each implementation\n-of DenseVector or Dense...\n-_\bd_\be_\bn_\bs_\be_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-Implements the dense vector interface, with an exchangeable storage class.\n-_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-Implements a vector constructed from a given type representing a field and a\n-compile-time given size.\n-_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Traits for type conversions and type information.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n-Stream & operator>>(Stream &stream, std::tuple< Ts... > &t)\n-Read a std::tuple.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn streamoperators.hh:43\n-_\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS\n-#define DUNE_ASSERT_BOUNDS(cond)\n-If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do\n-nothing.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn boundschecking.hh:30\n+202 index_+=i;\n+203 assert(index_<=interface_.size());\n+204 }\n+209 bool finished() const\n+210 {\n+211 return index_==interface_.size();\n+212 }\n+213\n+214 void skipZeroIndices()\n+215 {\n+216 // skip indices with size zero!\n+217 while(sizes_.size() && index_!=interface_.size() &&!_\bs_\bi_\bz_\be())\n+218 ++index_;\n+219 }\n+220\n+225 std::size_t index() const\n+226 {\n+227 return interface_[index_];\n+228 }\n+232 std::size_t _\bs_\bi_\bz_\be() const\n+233 {\n+234 assert(sizes_.size());\n+235 return sizes_[index_];\n+236 }\n+240 std::size_t* getSizesPointer()\n+241 {\n+242 return &sizes_[0];\n+243 }\n+248 bool _\be_\bm_\bp_\bt_\by() const\n+249 {\n+250 return !interface_.size();\n+251 }\n+252\n+257 std::size_t indicesLeft() const\n+258 {\n+259 return interface_.size()-index_;\n+260 }\n+_\b2_\b6_\b4 std::size_t _\bf_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be;\n+268 int rank() const\n+269 {\n+270 return rank_;\n+271 }\n+275 std::size_t offset() const\n+276 {\n+277 return index_;\n+278 }\n+279private:\n+281 int rank_;\n+283 std::size_t index_;\n+285 InterfaceInformation interface_;\n+286 std::vector sizes_;\n+287};\n+288\n+289\n+290} // end unnamed namespace\n+291\n+329template > >\n+_\b3_\b3_\b0class _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+331{\n+332public:\n+337 typedef std::map,\n+338 std::less,\n+_\b3_\b3_\b9 typename std::allocator_traits::template rebind_alloc< std::\n+pair > > >\n+_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bM_\ba_\bp;\n+340\n+341#ifndef DUNE_PARALLEL_MAX_COMMUNICATION_BUFFER_SIZE\n+_\b3_\b4_\b8 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(MPI_Comm comm, const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bM_\ba_\bp& inf)\n+349 : maxBufferSize_(32768), interface_(&inf)\n+350 {\n+351 MPI_Comm_dup(comm, &communicator_);\n+352 }\n+_\b3_\b5_\b7 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& inf)\n+358 : maxBufferSize_(32768), interface_(&inf.interfaces())\n+359 {\n+360 MPI_Comm_dup(inf._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &communicator_);\n+361 }\n+362#else\n+369 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(MPI_Comm comm, _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bM_\ba_\bp& inf)\n+370 : maxBufferSize_(DUNE_PARALLEL_MAX_COMMUNICATION_BUFFER_SIZE),\n+371 interface_(&inf)\n+372 {\n+373 MPI_Comm_dup(comm, &communicator_);\n+374 }\n+379 VariableSizeCommunicator(const Interface& inf)\n+380 : maxBufferSize_(DUNE_PARALLEL_MAX_COMMUNICATION_BUFFER_SIZE),\n+381 interface_(&inf.interfaces())\n+382 {\n+383 MPI_Comm_dup(inf.communicator(), &communicator_);\n+384 }\n+385#endif\n+_\b3_\b9_\b2 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(MPI_Comm comm, const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bM_\ba_\bp& inf, std::\n+size_t max_buffer_size)\n+393 : maxBufferSize_(max_buffer_size), interface_(&inf)\n+394 {\n+395 MPI_Comm_dup(comm, &communicator_);\n+396 }\n+397\n+_\b4_\b0_\b3 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& inf, std::size_t max_buffer_size)\n+404 : maxBufferSize_(max_buffer_size), interface_(&inf.interfaces())\n+405 {\n+406 MPI_Comm_dup(inf._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &communicator_);\n+407 }\n+408\n+_\b4_\b0_\b9 _\b~_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br()\n+410 {\n+411 MPI_Comm_free(&communicator_);\n+412 }\n+413\n+_\b4_\b1_\b8 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(const _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br& other) {\n+419 maxBufferSize_ = other.maxBufferSize_;\n+420 interface_ = other.interface_;\n+421 MPI_Comm_dup(other.communicator_, &communicator_);\n+422 }\n+423\n+_\b4_\b2_\b8 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br& other)\n+{\n+429 if(this == &other) // don't do anything if objects are the same\n+430 return *this;\n+431\n+432 maxBufferSize_ = other.maxBufferSize_;\n+433 interface_ = other.interface_;\n+434 MPI_Comm_free(&communicator_);\n+435 MPI_Comm_dup(other.communicator_, &communicator_);\n+436\n+437 return *this;\n+438 }\n+439\n+459 template\n+_\b4_\b6_\b0 void _\bf_\bo_\br_\bw_\ba_\br_\bd(DataHandle& handle)\n+461 {\n+462 communicate(handle);\n+463 }\n+464\n+484 template\n+_\b4_\b8_\b5 void _\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd(DataHandle& handle)\n+486 {\n+487 communicate(handle);\n+488 }\n+489\n+490private:\n+491 template\n+492 void communicateSizes(DataHandle& handle,\n+493 std::vector& recv_trackers);\n+494\n+501 template\n+502 void communicate(DataHandle& handle);\n+512 template\n+513 void setupInterfaceTrackers(DataHandle& handle,\n+514 std::vector& send_trackers,\n+515 std::vector& recv_trackers);\n+523 template\n+524 void communicateFixedSize(DataHandle& handle);\n+532 template\n+533 void communicateVariableSize(DataHandle& handle);\n+540 std::size_t maxBufferSize_;\n+548 const _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bM_\ba_\bp* interface_;\n+554 MPI_Comm communicator_;\n+555};\n+556\n+558namespace\n+559{\n+563template\n+564class SizeDataHandle\n+565{\n+566public:\n+567 typedef std::size_t DataType;\n+568\n+569 SizeDataHandle(DataHandle& data,\n+570 std::vector& trackers)\n+571 : data_(data), trackers_(trackers), index_()\n+572 {}\n+573 bool _\bf_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be()\n+574 {\n+575 return true;\n+576 }\n+577 std::size_t _\bs_\bi_\bz_\be([[maybe_unused]] std::size_t i)\n+578 {\n+579 return 1;\n+580 }\n+581 template\n+582 void gather(B& buf, int i)\n+583 {\n+584 buf.write(data_.size(i));\n+585 }\n+586 void setReceivingIndex(std::size_t i)\n+587 {\n+588 index_=i;\n+589 }\n+590 std::size_t* getSizesPointer()\n+591 {\n+592 return trackers_[index_].getSizesPointer();\n+593 }\n+594\n+595private:\n+596 DataHandle& data_;\n+597 std::vector& trackers_;\n+598 int index_;\n+599};\n+600\n+601template\n+602void setReceivingIndex(T&, int)\n+603{}\n+604\n+605template\n+606void setReceivingIndex(SizeDataHandle& t, int i)\n+607{\n+608 t.setReceivingIndex(i);\n+609}\n+610\n+611\n+617template\n+618struct InterfaceInformationChooser\n+619{\n+623 static const InterfaceInformation&\n+624 getSend(const std::pair& info)\n+625 {\n+626 return info.first;\n+627 }\n+628\n+632 static const InterfaceInformation&\n+633 getReceive(const std::pair&\n+info)\n+634 {\n+635 return info.second;\n+636 }\n+637};\n+638\n+639template<>\n+640struct InterfaceInformationChooser\n+641{\n+642 static const InterfaceInformation&\n+643 getSend(const std::pair& info)\n+644 {\n+645 return info.second;\n+646 }\n+647\n+648 static const InterfaceInformation&\n+649 getReceive(const std::pair&\n+info)\n+650 {\n+651 return info.first;\n+652 }\n+653};\n+654\n+660template\n+661struct PackEntries\n+662{\n+663\n+664 int operator()(DataHandle& handle, InterfaceTracker& tracker,\n+665 MessageBuffer& buffer,\n+666 [[maybe_unused]] int i) const\n+667 {\n+668 return operator()(handle,tracker,buffer);\n+669 }\n+670\n+678 int operator()(DataHandle& handle, InterfaceTracker& tracker,\n+679 MessageBuffer& buffer) const\n+680 {\n+681 if(tracker.fixedSize) // fixed size if variable is >0!\n+682 {\n+683\n+684 std::size_t noIndices=std::min(buffer.size()/tracker.fixedSize,\n+tracker.indicesLeft());\n+685 for(std::size_t i=0; i< noIndices; ++i)\n+686 {\n+687 handle.gather(buffer, tracker.index());\n+688 tracker.moveToNextIndex();\n+689 }\n+690 return noIndices*tracker.fixedSize;\n+691 }\n+692 else\n+693 {\n+694 int packed=0;\n+695 tracker.skipZeroIndices();\n+696 while(!tracker.finished())\n+697 if(buffer.hasSpaceForItems(handle.size(tracker.index())))\n+698 {\n+699 handle.gather(buffer, tracker.index());\n+700 packed+=handle.size(tracker.index());\n+701 tracker.moveToNextIndex();\n+702 }\n+703 else\n+704 break;\n+705 return packed;\n+706 }\n+707 }\n+708};\n+709\n+715template\n+716struct UnpackEntries{\n+717\n+725 bool operator()(DataHandle& handle, InterfaceTracker& tracker,\n+726 MessageBuffer& buffer,\n+727 int count=0)\n+728 {\n+729 if(tracker.fixedSize) // fixed size if variable is >0!\n+730 {\n+731 std::size_t noIndices=std::min(buffer.size()/tracker.fixedSize,\n+tracker.indicesLeft());\n+732\n+733 for(std::size_t i=0; i< noIndices; ++i)\n+734 {\n+735 handle.scatter(buffer, tracker.index(), tracker.fixedSize);\n+736 tracker.moveToNextIndex();\n+737 }\n+738 return tracker.finished();\n+739 }\n+740 else\n+741 {\n+742 assert(count);\n+743 for(int unpacked=0;unpacked\n+761struct UnpackSizeEntries{\n+762\n+770 bool operator()(SizeDataHandle& handle, InterfaceTracker&\n+tracker,\n+771 MessageBuffer::DataType>& buffer) const\n+772 {\n+773 std::size_t noIndices=std::min(buffer.size(), tracker.indicesLeft());\n+774 std::copy(static_cast(buffer), static_cast\n+(buffer)+noIndices,\n+775 handle.getSizesPointer()+tracker.offset());\n+776 tracker.increment(noIndices);\n+777 return noIndices;\n+778 }\n+779 bool operator()(SizeDataHandle& handle, InterfaceTracker&\n+tracker,\n+780 MessageBuffer::DataType>& buffer, int)\n+const\n+781 {\n+782 return operator()(handle,tracker,buffer);\n+783 }\n+784};\n+785\n+793void sendFixedSize(std::vector& send_trackers,\n+794 std::vector& send_requests,\n+795 std::vector& recv_trackers,\n+796 std::vector& recv_requests,\n+797 MPI_Comm communicator)\n+798{\n+799 typedef std::vector::iterator TIter;\n+800 std::vector::iterator mIter=recv_requests.begin();\n+801\n+802 for(TIter iter=recv_trackers.begin(), end=recv_trackers.end(); iter!=end;\n+803 ++iter, ++mIter)\n+804 {\n+805 MPI_Irecv(&(iter->fixedSize), 1, _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be(),\n+806 iter->rank(), 933881, communicator, &(*mIter));\n+807 }\n+808\n+809 // Send our size to all neighbours using non-blocking synchronous\n+communication.\n+810 std::vector::iterator mIter1=send_requests.begin();\n+811 for(TIter iter=send_trackers.begin(), end=send_trackers.end();\n+812 iter!=end;\n+813 ++iter, ++mIter1)\n+814 {\n+815 MPI_Issend(&(iter->fixedSize), 1, _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be(),\n+816 iter->rank(), 933881, communicator, &(*mIter1));\n+817 }\n+818}\n+819\n+820\n+825template\n+826struct SetupSendRequest{\n+827 void operator()(DataHandle& handle,\n+828 InterfaceTracker& tracker,\n+829 MessageBuffer& buffer,\n+830 MPI_Request& request,\n+831 MPI_Comm comm) const\n+832 {\n+833 buffer.reset();\n+834 int _\bs_\bi_\bz_\be=PackEntries()(handle, tracker, buffer);\n+835 // Skip indices of zero size.\n+836 while(!tracker.finished() && !handle.size(tracker.index()))\n+837 tracker.moveToNextIndex();\n+838 if(_\bs_\bi_\bz_\be)\n+839 MPI_Issend(buffer, _\bs_\bi_\bz_\be, _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bD_\ba_\bt_\ba_\bH_\ba_\bn_\bd_\bl_\be_\b:_\b:_\bD_\ba_\bt_\ba_\bT_\by_\bp_\be_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be\n+(),\n+840 tracker.rank(), 933399, comm, &request);\n+841 }\n+842};\n+843\n+844\n+849template\n+850struct SetupRecvRequest{\n+851 void operator()(DataHandle& /*handle*/,\n+852 InterfaceTracker& tracker,\n+853 MessageBuffer& buffer,\n+854 MPI_Request& request,\n+855 MPI_Comm comm) const\n+856 {\n+857 buffer.reset();\n+858 if(tracker.indicesLeft())\n+859 MPI_Irecv(buffer, buffer.size(), _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bD_\ba_\bt_\ba_\bH_\ba_\bn_\bd_\bl_\be_\b:_\b:_\bD_\ba_\bt_\ba_\bT_\by_\bp_\be_\b>_\b:_\b:\n+_\bg_\be_\bt_\bT_\by_\bp_\be(),\n+860 tracker.rank(), 933399, comm, &request);\n+861 }\n+862};\n+863\n+867template\n+868struct NullPackUnpackFunctor\n+869{\n+870 int operator()(DataHandle&, InterfaceTracker&,\n+871 MessageBuffer&, int)\n+872 {\n+873 return 0;\n+874 }\n+875 int operator()(DataHandle&, InterfaceTracker&,\n+876 MessageBuffer&)\n+877 {\n+878 return 0;\n+879 }\n+880};\n+881\n+896template\n+897std::size_t checkAndContinue(DataHandle& handle,\n+898 std::vector& trackers,\n+899 std::vector& requests,\n+900 std::vector& requests2,\n+901 std::vector >& buffers,\n+902 MPI_Comm comm,\n+903 BufferFunctor buffer_func,\n+904 CommunicationFunctor comm_func,\n+905 bool valid=true,\n+906 bool getCount=false)\n+907{\n+908 std::size_t _\bs_\bi_\bz_\be=requests.size();\n+909 std::vector statuses(_\bs_\bi_\bz_\be);\n+910 int no_completed;\n+911 std::vector indices(_\bs_\bi_\bz_\be, -1); // the indices for which the\n+communication finished.\n+912\n+913 MPI_Testsome(_\bs_\bi_\bz_\be, &(requests[0]), &no_completed, &(indices[0]), &(statuses\n+[0]));\n+914 indices.resize(no_completed);\n+915 for(std::vector::iterator index=indices.begin(), end=indices.end();\n+916 index!=end; ++index)\n+917 {\n+918 InterfaceTracker& tracker=trackers[*index];\n+919 setReceivingIndex(handle, *index);\n+920 if(getCount)\n+921 {\n+922 // Get the number of entries received\n+923 int count;\n+924 MPI_Get_count(&(statuses[index-indices.begin()]),\n+925 _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bD_\ba_\bt_\ba_\bH_\ba_\bn_\bd_\bl_\be_\b:_\b:_\bD_\ba_\bt_\ba_\bT_\by_\bp_\be_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be(),\n+926 &count);\n+927 // Communication completed, we can reuse the buffers, e.g. unpack or repack\n+928 buffer_func(handle, tracker, buffers[*index], count);\n+929 }else\n+930 buffer_func(handle, tracker, buffers[*index]);\n+931 tracker.skipZeroIndices();\n+932 if(!tracker.finished()){\n+933 // Maybe start another communication.\n+934 comm_func(handle, tracker, buffers[*index], requests2[*index], comm);\n+935 tracker.skipZeroIndices();\n+936 if(valid)\n+937 --no_completed; // communication not finished, decrement counter for\n+finished ones.\n+938 }\n+939 }\n+940 return no_completed;\n+941\n+942}\n+943\n+953template\n+954std::size_t receiveSizeAndSetupReceive(DataHandle& handle,\n+955 std::vector& trackers,\n+956 std::vector& size_requests,\n+957 std::vector& data_requests,\n+958 std::vector >& buffers,\n+959 MPI_Comm comm)\n+960{\n+961 return checkAndContinue(handle, trackers, size_requests, data_requests,\n+buffers, comm,\n+962 NullPackUnpackFunctor(), SetupRecvRequest(),\n+false);\n+963}\n+964\n+973template\n+974std::size_t checkSendAndContinueSending(DataHandle& handle,\n+975 std::vector& trackers,\n+976 std::vector& requests,\n+977 std::vector >& buffers,\n+978 MPI_Comm comm)\n+979{\n+980 return checkAndContinue(handle, trackers, requests, requests, buffers,\n+comm,\n+981 NullPackUnpackFunctor(), SetupSendRequest());\n+982}\n+983\n+992template\n+993std::size_t checkReceiveAndContinueReceiving(DataHandle& handle,\n+994 std::vector& trackers,\n+995 std::vector& requests,\n+996 std::vector >& buffers,\n+997 MPI_Comm comm)\n+998{\n+999 return checkAndContinue(handle, trackers, requests, requests, buffers,\n+comm,\n+1000 UnpackEntries(), SetupRecvRequest(),\n+1001 true, !Impl::callFixedSize(handle));\n+1002}\n+1003\n+1004\n+1005bool validRecvRequests(const std::vector reqs)\n+1006{\n+1007 for(std::vector::const_iterator i=reqs.begin(), end=reqs.end\n+();\n+1008 i!=end; ++i)\n+1009 if(*i!=MPI_REQUEST_NULL)\n+1010 return true;\n+1011 return false;\n+1012}\n+1013\n+1024template\n+1025std::size_t setupRequests(DataHandle& handle,\n+1026 std::vector& trackers,\n+1027 std::vector >& buffers,\n+1028 std::vector& requests,\n+1029 const Functor& setupFunctor,\n+1030 MPI_Comm communicator)\n+1031{\n+1032 typedef typename std::vector::iterator TIter;\n+1033 typename std::vector >::\n+iterator\n+1034 biter=buffers.begin();\n+1035 typename std::vector::iterator riter=requests.begin();\n+1036 std::size_t complete=0;\n+1037 for(TIter titer=trackers.begin(), end=trackers.end(); titer!=end; ++titer,\n+++biter, ++riter)\n+1038 {\n+1039 setupFunctor(handle, *titer, *biter, *riter, communicator);\n+1040 complete+=titer->finished();\n+1041 }\n+1042 return complete;\n+1043}\n+1044} // end unnamed namespace\n+1045\n+1046template\n+1047template\n+1048void VariableSizeCommunicator::setupInterfaceTrackers\n+(DataHandle& handle,\n+1049 std::vector& send_trackers,\n+1050 std::vector& recv_trackers)\n+1051{\n+1052 if(interface_->_\bs_\bi_\bz_\be()==0)\n+1053 return;\n+1054 send_trackers.reserve(interface_->_\bs_\bi_\bz_\be());\n+1055 recv_trackers.reserve(interface_->_\bs_\bi_\bz_\be());\n+1056\n+1057 int fixedsize=0;\n+1058 if(Impl::callFixedSize(handle))\n+1059 ++fixedsize;\n+1060\n+1061\n+1062 typedef typename InterfaceMap::const_iterator IIter;\n+1063 for(IIter inf=interface_->begin(), end=interface_->end(); inf!=end; ++inf)\n+1064 {\n+1065\n+1066 if(Impl::callFixedSize(handle) && InterfaceInformationChooser::\n+getSend(inf->second).size())\n+1067 fixedsize=handle.size(InterfaceInformationChooser::getSend(inf-\n+>second)[0]);\n+1068 assert(!Impl::callFixedSize(handle)||fixedsize>0);\n+1069 send_trackers.push_back(InterfaceTracker(inf->first,\n+1070 InterfaceInformationChooser::getSend(inf->second), fixedsize));\n+1071 recv_trackers.push_back(InterfaceTracker(inf->first,\n+1072 InterfaceInformationChooser::getReceive(inf->second), fixedsize,\n+fixedsize==0));\n+1073 }\n+1074}\n+1075\n+1076template\n+1077template\n+1078void VariableSizeCommunicator::communicateFixedSize(DataHandle&\n+handle)\n+1079{\n+1080 std::vector size_send_req(interface_->_\bs_\bi_\bz_\be());\n+1081 std::vector size_recv_req(interface_->_\bs_\bi_\bz_\be());\n+1082\n+1083 std::vector send_trackers;\n+1084 std::vector recv_trackers;\n+1085 setupInterfaceTrackers(handle,send_trackers, recv_trackers);\n+1086 sendFixedSize(send_trackers, size_send_req, recv_trackers, size_recv_req,\n+communicator_);\n+1087\n+1088 std::vector data_send_req(interface_->_\bs_\bi_\bz_\be(),\n+MPI_REQUEST_NULL);\n+1089 std::vector data_recv_req(interface_->_\bs_\bi_\bz_\be(),\n+MPI_REQUEST_NULL);\n+1090 typedef typename DataHandle::DataType DataType;\n+1091 std::vector > send_buffers(interface_->_\bs_\bi_\bz_\be(),\n+MessageBuffer(maxBufferSize_)),\n+1092 recv_buffers(interface_->_\bs_\bi_\bz_\be(), MessageBuffer(maxBufferSize_));\n+1093\n+1094\n+1095 setupRequests(handle, send_trackers, send_buffers, data_send_req,\n+1096 SetupSendRequest(), communicator_);\n+1097\n+1098 std::size_t no_size_to_recv, no_to_send, no_to_recv, old_size;\n+1099 no_size_to_recv = no_to_send = no_to_recv = old_size = interface_->_\bs_\bi_\bz_\be();\n+1100\n+1101 // Skip empty interfaces.\n+1102 typedef typename std::vector::const_iterator Iter;\n+1103 for(Iter i=recv_trackers.begin(), end=recv_trackers.end(); i!=end; ++i)\n+1104 if(i->empty())\n+1105 --no_to_recv;\n+1106 for(Iter i=send_trackers.begin(), end=send_trackers.end(); i!=end; ++i)\n+1107 if(i->empty())\n+1108 --no_to_send;\n+1109\n+1110 while(no_size_to_recv+no_to_send+no_to_recv)\n+1111 {\n+1112 // Receive the fixedsize and setup receives accordingly\n+1113 if(no_size_to_recv)\n+1114 no_size_to_recv -= receiveSizeAndSetupReceive(handle,recv_trackers,\n+size_recv_req,\n+1115 data_recv_req, recv_buffers,\n+1116 communicator_);\n+1117\n+1118 // Check send completion and initiate other necessary sends\n+1119 if(no_to_send)\n+1120 no_to_send -= checkSendAndContinueSending(handle, send_trackers,\n+data_send_req,\n+1121 send_buffers, communicator_);\n+1122 if(validRecvRequests(data_recv_req))\n+1123 // Receive data and setup new unblocking receives if necessary\n+1124 no_to_recv -= checkReceiveAndContinueReceiving(handle, recv_trackers,\n+data_recv_req,\n+1125 recv_buffers, communicator_);\n+1126 }\n+1127\n+1128 // Wait for completion of sending the size.\n+1129 //std::vector statuses(interface_->size(),\n+MPI_STATUSES_IGNORE);\n+1130 MPI_Waitall(size_send_req.size(), &(size_send_req[0]),\n+MPI_STATUSES_IGNORE);\n+1131\n+1132}\n+1133\n+1134template\n+1135template\n+1136void VariableSizeCommunicator::communicateSizes(DataHandle&\n+handle,\n+1137 std::vector& data_recv_trackers)\n+1138{\n+1139 std::vector send_trackers;\n+1140 std::vector recv_trackers;\n+1141 std::size_t _\bs_\bi_\bz_\be = interface_->_\bs_\bi_\bz_\be();\n+1142 std::vector send_requests(_\bs_\bi_\bz_\be, MPI_REQUEST_NULL);\n+1143 std::vector recv_requests(_\bs_\bi_\bz_\be, MPI_REQUEST_NULL);\n+1144 std::vector >\n+1145 send_buffers(_\bs_\bi_\bz_\be, MessageBuffer(maxBufferSize_)),\n+1146 recv_buffers(_\bs_\bi_\bz_\be, MessageBuffer(maxBufferSize_));\n+1147 SizeDataHandle size_handle(handle,data_recv_trackers);\n+1148 setupInterfaceTrackers(size_handle,send_trackers, recv_trackers);\n+1149 setupRequests(size_handle, send_trackers, send_buffers, send_requests,\n+1150 SetupSendRequest >(), communicator_);\n+1151 setupRequests(size_handle, recv_trackers, recv_buffers, recv_requests,\n+1152 SetupRecvRequest >(), communicator_);\n+1153\n+1154 // Count valid requests that we have to wait for.\n+1155 auto valid_req_func =\n+1156 [](const MPI_Request& req) { return req != MPI_REQUEST_NULL; };\n+1157\n+1158 auto size_to_send = std::count_if(send_requests.begin(), send_requests.end\n+(),\n+1159 valid_req_func);\n+1160 auto size_to_recv = std::count_if(recv_requests.begin(), recv_requests.end\n+(),\n+1161 valid_req_func);\n+1162\n+1163 while(size_to_send+size_to_recv)\n+1164 {\n+1165 if(size_to_send)\n+1166 size_to_send -=\n+1167 checkSendAndContinueSending(size_handle, send_trackers, send_requests,\n+1168 send_buffers, communicator_);\n+1169 if(size_to_recv)\n+1170 // Could have done this using checkSendAndContinueSending\n+1171 // But the call below is more efficient as UnpackSizeEntries\n+1172 // uses std::copy.\n+1173 size_to_recv -=\n+1174 checkAndContinue(size_handle, recv_trackers, recv_requests, recv_requests,\n+1175 recv_buffers, communicator_, UnpackSizeEntries(),\n+1176 SetupRecvRequest >());\n+1177 }\n+1178}\n+1179\n+1180template\n+1181template\n+1182void VariableSizeCommunicator::communicateVariableSize\n+(DataHandle& handle)\n+1183{\n+1184\n+1185 std::vector send_trackers;\n+1186 std::vector recv_trackers;\n+1187 setupInterfaceTrackers(handle, send_trackers, recv_trackers);\n+1188\n+1189 std::vector send_requests(interface_->_\bs_\bi_\bz_\be(),\n+MPI_REQUEST_NULL);\n+1190 std::vector recv_requests(interface_->_\bs_\bi_\bz_\be(),\n+MPI_REQUEST_NULL);\n+1191 typedef typename DataHandle::DataType DataType;\n+1192 std::vector >\n+1193 send_buffers(interface_->_\bs_\bi_\bz_\be(), MessageBuffer(maxBufferSize_)),\n+1194 recv_buffers(interface_->_\bs_\bi_\bz_\be(), MessageBuffer(maxBufferSize_));\n+1195\n+1196 communicateSizes(handle, recv_trackers);\n+1197 // Setup requests for sending and receiving.\n+1198 setupRequests(handle, send_trackers, send_buffers, send_requests,\n+1199 SetupSendRequest(), communicator_);\n+1200 setupRequests(handle, recv_trackers, recv_buffers, recv_requests,\n+1201 SetupRecvRequest(), communicator_);\n+1202\n+1203 // Determine number of valid requests.\n+1204 auto valid_req_func =\n+1205 [](const MPI_Request& req) { return req != MPI_REQUEST_NULL;};\n+1206\n+1207 auto no_to_send = std::count_if(send_requests.begin(), send_requests.end\n+(),\n+1208 valid_req_func);\n+1209 auto no_to_recv = std::count_if(recv_requests.begin(), recv_requests.end\n+(),\n+1210 valid_req_func);\n+1211 while(no_to_send+no_to_recv)\n+1212 {\n+1213 // Check send completion and initiate other necessary sends\n+1214 if(no_to_send)\n+1215 no_to_send -= checkSendAndContinueSending(handle, send_trackers,\n+send_requests,\n+1216 send_buffers, communicator_);\n+1217 if(no_to_recv)\n+1218 // Receive data and setup new unblocking receives if necessary\n+1219 no_to_recv -= checkReceiveAndContinueReceiving(handle, recv_trackers,\n+recv_requests,\n+1220 recv_buffers, communicator_);\n+1221 }\n+1222}\n+1223\n+1224template\n+1225template\n+1226void VariableSizeCommunicator::communicate(DataHandle& handle)\n+1227{\n+1228 if( interface_->_\bs_\bi_\bz_\be() == 0)\n+1229 // Simply return as otherwise we will index an empty container\n+1230 // either for MPI_Wait_all or MPI_Test_some.\n+1231 return;\n+1232\n+1233 if(Impl::callFixedSize(handle))\n+1234 communicateFixedSize(handle);\n+1235 else\n+1236 communicateVariableSize(handle);\n+1237}\n+1238} // end namespace Dune\n+1239\n+1240#endif // HAVE_MPI\n+1241#endif // DUNE_COMMON_PARALLEL_VARIABLESIZECOMMUNICATOR_HH\n+_\bf_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be\n+std::size_t fixedSize\n+The number of data items per index if it is fixed, 0 otherwise.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:264\n+_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n+Traits classes for mapping types onto MPI_Datatype.\n+_\bc_\bo_\bn_\bc_\be_\bp_\bt_\b._\bh_\bh\n+Infrastructure for concepts.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+MPI_Comm communicator() const\n+Get the MPI Communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:426\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bV_\be_\bc_\bt_\bo_\br_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-size method\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densevector.hh:336\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bV_\be_\bc_\bt_\bo_\br_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Traits::size_type size_type\n-The type used for the index access and size operation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densevector.hh:259\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b:_\b:_\bt_\by_\bp_\be\n-T type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:531\n+_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bz_\be\n+constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::\n+integer_sequence< T, II... >)\n+Return the size of the sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\be_\bm_\bp_\bt_\by\n+constexpr std::bool_constant<(sizeof...(II)==0)> empty(std::integer_sequence<\n+T, II... >)\n+Checks whether the sequence is empty.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be\n+static MPI_Datatype getType()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bi_\bz_\be\n+size_t size() const\n+Get the number of entries in the interface.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:117\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+Communication interface between remote and local indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parallel/interface.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt_\b:_\b:_\bH_\ba_\bs_\bF_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:42\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bc_\be_\bp_\bt_\b:_\b:_\bH_\ba_\bs_\bF_\bi_\bx_\be_\bd_\bS_\bi_\bz_\be_\b:_\b:_\br_\be_\bq_\bu_\bi_\br_\be\n+auto require(H &&h) -> decltype(h.fixedSize())\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+A buffered communicator where the amount of data sent does not have to be known\n+a priori.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:331\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+VariableSizeCommunicator(const Interface &inf, std::size_t max_buffer_size)\n+Creates a communicator with a specific maximum buffer size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:403\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bb_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void backward(DataHandle &handle)\n+Communicate backwards.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:485\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+~VariableSizeCommunicator()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:409\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+VariableSizeCommunicator(MPI_Comm comm, const InterfaceMap &inf, std::size_t\n+max_buffer_size)\n+Creates a communicator with a specific maximum buffer size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:392\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+VariableSizeCommunicator(const VariableSizeCommunicator &other)\n+Copy-constructs a communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:418\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bo_\br_\bw_\ba_\br_\bd\n+void forward(DataHandle &handle)\n+Communicate forward.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:460\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+VariableSizeCommunicator & operator=(const VariableSizeCommunicator &other)\n+Copy-assignes a communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\bM_\ba_\bp\n+std::map< int, std::pair< InterfaceInformation, InterfaceInformation >, std::\n+less< int >, typename std::allocator_traits< Allocator >::template\n+rebind_alloc< std::pair< const int, std::pair< InterfaceInformation,\n+InterfaceInformation > > > > InterfaceMap\n+The type of the map from process number to InterfaceInformation for sending and\n+receiving to and from...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:339\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+VariableSizeCommunicator(MPI_Comm comm, const InterfaceMap &inf)\n+Creates a communicator with the default maximum buffer size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:348\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bS_\bi_\bz_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+VariableSizeCommunicator(const Interface &inf)\n+Creates a communicator with the default maximum buffer size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn variablesizecommunicator.hh:357\n+_\bi_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b._\bh_\bh\n+Provides classes for building the communication interface between remote\n+indices.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00059.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00059.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: float_cmp.cc File Reference\n+dune-common: mpiguard.hh File Reference\n \n \n \n \n \n \n \n@@ -65,125 +65,53 @@\n \n \n \n \n \n \n \n
    \n \n-
    float_cmp.cc File Reference
    \n+Namespaces
    \n+
    mpiguard.hh File Reference
    \n \n
    \n-
    #include "float_cmp.hh"
    \n-#include <vector>
    \n-#include <limits>
    \n-#include <algorithm>
    \n-#include <cstdlib>
    \n-#include <dune/common/fvector.hh>
    \n+\n+

    Implements a MPIGuard which detects an error on a remote process. \n+More...

    \n+\n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::FloatCmp::EpsilonType< T >
     Mapping of value type to epsilon type. More...
     
    struct  Dune::FloatCmp::EpsilonType< std::vector< T, A > >
     Specialization of EpsilonType for std::vector. More...
     
    struct  Dune::FloatCmp::EpsilonType< FieldVector< T, n > >
     Specialization of EpsilonType for Dune::FieldVector. More...
     
    struct  Dune::FloatCmp::DefaultEpsilon< T, relativeWeak >
    class  Dune::MPIGuardError
     This exception is thrown if the MPIGuard detects an error on a remote process. More...
     
    struct  Dune::FloatCmp::DefaultEpsilon< T, relativeStrong >
     
    struct  Dune::FloatCmp::DefaultEpsilon< T, absolute >
    class  Dune::MPIGuard
     detects a thrown exception and communicates to all other processes More...
     
    \n \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    namespace  Dune::FloatCmp
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<class T , CmpStyle style>
    bool Dune::FloatCmp::eq (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
     test for equality using epsilon
     
    template<class T , CmpStyle style>
    bool Dune::FloatCmp::ne (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
     test for inequality using epsilon
     
    template<class T , CmpStyle style>
    bool Dune::FloatCmp::gt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
     test if first greater than second
     
    template<class T , CmpStyle style>
    bool Dune::FloatCmp::lt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
     test if first lesser than second
     
    template<class T , CmpStyle style>
    bool Dune::FloatCmp::ge (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
     test if first greater or equal second
     
    template<class T , CmpStyle style>
    bool Dune::FloatCmp::le (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
     test if first lesser or equal second
     
    template<class T >
    bool Dune::FloatCmp::eq (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class T >
    bool Dune::FloatCmp::ne (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class T >
    bool Dune::FloatCmp::gt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class T >
    bool Dune::FloatCmp::lt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class T >
    bool Dune::FloatCmp::ge (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class T >
    bool Dune::FloatCmp::le (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class I , class T , CmpStyle cstyle, RoundingStyle rstyle>
    Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
     round using epsilon
     
    template<class I , class T , CmpStyle cstyle>
    Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
     
    template<class I , class T >
    Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    template<class I , class T , CmpStyle cstyle, RoundingStyle rstyle>
    Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
     truncate using epsilon
     
    template<class I , class T , CmpStyle cstyle>
    Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
     
    template<class I , class T >
    Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
     
    \n-
    \n+

    Detailed Description

    \n+

    Implements a MPIGuard which detects an error on a remote process.

    \n+
    Author
    Christian Engwer
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,126 +1,36 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-float_cmp.cc File Reference\n-#include \"_\bf_\bl_\bo_\ba_\bt_\b__\bc_\bm_\bp_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+mpiguard.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Implements a MPIGuard which detects an error on a remote process. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bh_\be_\bl_\bp_\be_\br_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n-\u00a0 Mapping of value type to epsilon type. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0 Specialization of _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be for std::vector. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bn_\b _\b>_\b _\b>\n-\u00a0 Specialization of _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be for _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\b _\bT_\b,_\b _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bW_\be_\ba_\bk_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\b _\bT_\b,_\b _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bS_\bt_\br_\bo_\bn_\bg_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\b _\bT_\b,_\b _\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\bE_\br_\br_\bo_\br\n+\u00a0 This exception is thrown if the _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd detects an error on a remote\n+ process. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+\u00a0 detects a thrown exception and communicates to all other processes\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\be_\bq (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, style >::value())\n-\u00a0 test for equality using epsilon\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bn_\be (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, style >::value())\n-\u00a0 test for inequality using epsilon\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bg_\bt (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, style >::value())\n-\u00a0 test if first greater than second\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bl_\bt (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, style >::value())\n-\u00a0 test if first lesser than second\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bg_\be (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, style >::value())\n-\u00a0 test if first greater or equal second\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bl_\be (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, style >::value())\n-\u00a0 test if first lesser or equal second\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\be_\bq (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::\n- value())\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bn_\be (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::\n- value())\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bg_\bt (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::\n- value())\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bl_\bt (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::\n- value())\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bg_\be (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::\n- value())\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bl_\be (const T &first, const T &second, typename\n- _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::\n- value())\n-\u00a0\n-template\n- I\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\br_\bo_\bu_\bn_\bd (const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type\n- epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, cstyle >::value())\n-\u00a0 round using epsilon\n-\u00a0\n-template\n- I\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\br_\bo_\bu_\bn_\bd (const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type\n- epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, cstyle >::value())\n-\u00a0\n-template\n- I\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\br_\bo_\bu_\bn_\bd (const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type\n- epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::value())\n-\u00a0\n-template\n- I\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bt_\br_\bu_\bn_\bc (const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type\n- epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, cstyle >::value())\n-\u00a0 truncate using epsilon\n-\u00a0\n-template\n- I\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bt_\br_\bu_\bn_\bc (const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type\n- epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, cstyle >::value())\n-\u00a0\n-template\n- I\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bt_\br_\bu_\bn_\bc (const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be< T >::Type\n- epsilon=_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn< T, _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be >::value())\n-\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Implements a MPIGuard which detects an error on a remote process.\n+ Author\n+ Christian Engwer\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00059_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00059_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: float_cmp.cc Source File\n+dune-common: mpiguard.hh Source File\n \n \n \n \n \n \n \n@@ -70,632 +70,216 @@\n \n \n \n \n \n \n \n
    \n-
    float_cmp.cc
    \n+
    mpiguard.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#include "float_cmp.hh"
    \n-
    6
    \n-
    7#include <vector>
    \n-
    8#include <limits>
    \n-
    9#include <algorithm>
    \n-
    10#include <cstdlib>
    \n-\n-
    12
    \n-
    13namespace Dune {
    \n-
    14
    \n+
    5
    \n+
    13#ifndef DUNE_COMMON_PARALLEL_MPIGUARD_HH
    \n+
    14#define DUNE_COMMON_PARALLEL_MPIGUARD_HH
    \n
    15
    \n-
    \n-
    16 namespace FloatCmp {
    \n-
    17 // traits
    \n+
    16#if HAVE_MPI
    \n+
    17#include <mpi.h>
    \n+
    18#endif
    \n
    19
    \n-
    \n-
    23 template<class T> struct EpsilonType {
    \n-
    25 typedef T Type;
    \n-
    26 };
    \n-
    \n-
    28
    \n-
    33 template<class T, typename A>
    \n-
    \n-
    34 struct EpsilonType<std::vector<T, A> > {
    \n-
    36 typedef typename EpsilonType<T>::Type Type;
    \n-
    37 };
    \n-
    \n-
    39
    \n-
    44 template<class T, int n>
    \n-
    \n-
    45 struct EpsilonType<FieldVector<T, n> > {
    \n-
    47 typedef typename EpsilonType<T>::Type Type;
    \n-
    48 };
    \n-
    \n+\n+\n+\n+\n+
    24
    \n+
    25namespace Dune
    \n+
    26{
    \n+
    27
    \n+
    28#ifndef DOXYGEN
    \n+
    29
    \n+
    30 /*
    \n+
    31 Interface class for the communication needed by MPIGuard
    \n+
    32 */
    \n+
    33 struct GuardCommunicator
    \n+
    34 {
    \n+
    35 // cleanup
    \n+
    36 virtual ~GuardCommunicator() {};
    \n+
    37 // all the communication methods we need
    \n+
    38 virtual int rank() = 0;
    \n+
    39 virtual int size() = 0;
    \n+
    40 virtual int sum(int i) = 0;
    \n+
    41 // create a new GuardCommunicator pointer
    \n+
    42 template <class C>
    \n+
    43 static GuardCommunicator * create(const Communication<C> & c);
    \n+
    44#if HAVE_MPI
    \n+
    45 inline
    \n+
    46 static GuardCommunicator * create(const MPI_Comm & c);
    \n+
    47#endif
    \n+
    48 };
    \n
    49
    \n-
    50 // default epsilon
    \n-
    51 template<class T>
    \n-
    \n-\n-
    \n-
    53 static typename EpsilonType<T>::Type value()
    \n-
    54 { return std::numeric_limits<typename EpsilonType<T>::Type>::epsilon()*8.; }
    \n-
    \n-
    55 };
    \n-
    \n-
    56 template<class T>
    \n-
    \n-\n-
    \n-
    58 static typename EpsilonType<T>::Type value()
    \n-
    59 { return std::numeric_limits<typename EpsilonType<T>::Type>::epsilon()*8.; }
    \n-
    \n-
    60 };
    \n-
    \n-
    61 template<class T>
    \n-
    \n-\n-
    \n-
    63 static typename EpsilonType<T>::Type value()
    \n-
    64 { return std::max(std::numeric_limits<typename EpsilonType<T>::Type>::epsilon(), 1e-6); }
    \n-
    \n-
    65 };
    \n-
    \n-
    66
    \n-
    67 namespace Impl {
    \n-
    68 // basic comparison
    \n-
    69 template<class T, CmpStyle style = defaultCmpStyle>
    \n-
    70 struct eq_t;
    \n-
    71 template<class T>
    \n-
    72 struct eq_t<T, relativeWeak> {
    \n-
    73 static bool eq(const T &first,
    \n-
    74 const T &second,
    \n-\n-
    76 {
    \n-
    77 using std::abs;
    \n-
    78 return abs(first - second) <= epsilon*std::max(abs(first), abs(second));
    \n-
    79 }
    \n-
    80 };
    \n-
    81 template<class T>
    \n-
    82 struct eq_t<T, relativeStrong> {
    \n-
    83 static bool eq(const T &first,
    \n-
    84 const T &second,
    \n-\n-
    86 {
    \n-
    87 using std::abs;
    \n-
    88 return abs(first - second) <= epsilon*std::min(abs(first), abs(second));
    \n-
    89 }
    \n-
    90 };
    \n-
    91 template<class T>
    \n-
    92 struct eq_t<T, absolute> {
    \n-
    93 static bool eq(const T &first,
    \n-
    94 const T &second,
    \n-\n-
    96 {
    \n-
    97 using std::abs;
    \n-
    98 return abs(first-second) <= epsilon;
    \n-
    99 }
    \n-
    100 };
    \n-
    101 template<class T, CmpStyle cstyle>
    \n-
    102 struct eq_t_std_vec {
    \n-
    103 typedef std::vector<T> V;
    \n-
    104 static bool eq(const V &first,
    \n-
    105 const V &second,
    \n-
    106 typename EpsilonType<V>::Type epsilon = DefaultEpsilon<V>::value()) {
    \n-
    107 auto size = first.size();
    \n-
    108 if(size != second.size()) return false;
    \n-
    109 for(unsigned int i = 0; i < size; ++i)
    \n-
    110 if(!eq_t<T, cstyle>::eq(first[i], second[i], epsilon))
    \n-
    111 return false;
    \n-
    112 return true;
    \n-
    113 }
    \n-
    114 };
    \n-
    115 template< class T>
    \n-
    116 struct eq_t<std::vector<T>, relativeWeak> : eq_t_std_vec<T, relativeWeak> {};
    \n-
    117 template< class T>
    \n-
    118 struct eq_t<std::vector<T>, relativeStrong> : eq_t_std_vec<T, relativeStrong> {};
    \n-
    119 template< class T>
    \n-
    120 struct eq_t<std::vector<T>, absolute> : eq_t_std_vec<T, absolute> {};
    \n-
    121
    \n-
    122 template<class T, int n, CmpStyle cstyle>
    \n-
    123 struct eq_t_fvec {
    \n-
    124 typedef Dune::FieldVector<T, n> V;
    \n-
    125 static bool eq(const V &first,
    \n-
    126 const V &second,
    \n-
    127 typename EpsilonType<V>::Type epsilon = DefaultEpsilon<V>::value()) {
    \n-
    128 for(int i = 0; i < n; ++i)
    \n-
    129 if(!eq_t<T, cstyle>::eq(first[i], second[i], epsilon))
    \n-
    130 return false;
    \n-
    131 return true;
    \n-
    132 }
    \n-
    133 };
    \n-
    134 template< class T, int n >
    \n-
    135 struct eq_t< Dune::FieldVector<T, n>, relativeWeak> : eq_t_fvec<T, n, relativeWeak> {};
    \n-
    136 template< class T, int n >
    \n-
    137 struct eq_t< Dune::FieldVector<T, n>, relativeStrong> : eq_t_fvec<T, n, relativeStrong> {};
    \n-
    138 template< class T, int n >
    \n-
    139 struct eq_t< Dune::FieldVector<T, n>, absolute> : eq_t_fvec<T, n, absolute> {};
    \n-
    140 } // namespace Impl
    \n+
    50 namespace {
    \n+
    51 /*
    \n+
    52 templated implementation of different communication classes
    \n+
    53 */
    \n+
    54 // the default class will always fail, due to the missing implementation of "sum"
    \n+
    55 template <class Imp>
    \n+
    56 struct GenericGuardCommunicator
    \n+
    57 : public GuardCommunicator
    \n+
    58 {};
    \n+
    59 // specialization for Communication
    \n+
    60 template <class T>
    \n+
    61 struct GenericGuardCommunicator< Communication<T> >
    \n+
    62 : public GuardCommunicator
    \n+
    63 {
    \n+
    64 const Communication<T> comm;
    \n+
    65 GenericGuardCommunicator(const Communication<T> & c) :
    \n+
    66 comm(c) {}
    \n+
    67 int rank() override { return comm.rank(); };
    \n+
    68 int size() override { return comm.size(); };
    \n+
    69 int sum(int i) override { return comm.sum(i); }
    \n+
    70 };
    \n+
    71
    \n+
    72#if HAVE_MPI
    \n+
    73 // specialization for MPI_Comm
    \n+
    74 template <>
    \n+
    75 struct GenericGuardCommunicator<MPI_Comm>
    \n+
    76 : public GenericGuardCommunicator< Communication<MPI_Comm> >
    \n+
    77 {
    \n+
    78 GenericGuardCommunicator(const MPI_Comm & c) :
    \n+
    79 GenericGuardCommunicator< Communication<MPI_Comm> >(
    \n+
    80 Communication<MPI_Comm>(c)) {}
    \n+
    81 };
    \n+
    82#endif
    \n+
    83 } // anonymous namespace
    \n+
    84
    \n+
    85 template<class C>
    \n+
    86 GuardCommunicator * GuardCommunicator::create(const Communication<C> & comm)
    \n+
    87 {
    \n+
    88 return new GenericGuardCommunicator< Communication<C> >(comm);
    \n+
    89 }
    \n+
    90
    \n+
    91#if HAVE_MPI
    \n+
    92 GuardCommunicator * GuardCommunicator::create(const MPI_Comm & comm)
    \n+
    93 {
    \n+
    94 return new GenericGuardCommunicator< Communication<MPI_Comm> >(comm);
    \n+
    95 }
    \n+
    96#endif
    \n+
    97
    \n+
    98#endif
    \n+
    99
    \n+
    103 class MPIGuardError : public ParallelError {};
    \n+
    104
    \n+
    \n+\n+
    138 {
    \n+
    139 GuardCommunicator * comm_;
    \n+
    140 bool active_;
    \n
    141
    \n-
    142 // operations in functional style
    \n-
    143 template <class T, CmpStyle style>
    \n-
    \n-
    144 bool eq(const T &first,
    \n-
    145 const T &second,
    \n-
    146 typename EpsilonType<T>::Type epsilon)
    \n-
    147 {
    \n-
    148 return Impl::eq_t<T, style>::eq(first, second, epsilon);
    \n-
    149 }
    \n-
    \n-
    150 template <class T, CmpStyle style>
    \n-
    \n-
    151 bool ne(const T &first,
    \n-
    152 const T &second,
    \n-
    153 typename EpsilonType<T>::Type epsilon)
    \n-
    154 {
    \n-
    155 return !eq<T, style>(first, second, epsilon);
    \n-
    156 }
    \n-
    \n-
    157 template <class T, CmpStyle style>
    \n-
    \n-
    158 bool gt(const T &first,
    \n-
    159 const T &second,
    \n-
    160 typename EpsilonType<T>::Type epsilon)
    \n-
    161 {
    \n-
    162 return first > second && ne<T, style>(first, second, epsilon);
    \n-
    163 }
    \n-
    \n-
    164 template <class T, CmpStyle style>
    \n-
    \n-
    165 bool lt(const T &first,
    \n-
    166 const T &second,
    \n-
    167 typename EpsilonType<T>::Type epsilon)
    \n-
    168 {
    \n-
    169 return first < second && ne<T, style>(first, second, epsilon);
    \n-
    170 }
    \n-
    \n-
    171 template <class T, CmpStyle style>
    \n-
    \n-
    172 bool ge(const T &first,
    \n-
    173 const T &second,
    \n-
    174 typename EpsilonType<T>::Type epsilon)
    \n-
    175 {
    \n-
    176 return first > second || eq<T, style>(first, second, epsilon);
    \n-
    177 }
    \n-
    \n-
    178 template <class T, CmpStyle style>
    \n-
    \n-
    179 bool le(const T &first,
    \n-
    180 const T &second,
    \n-
    181 typename EpsilonType<T>::Type epsilon)
    \n-
    182 {
    \n-
    183 return first < second || eq<T, style>(first, second, epsilon);
    \n-
    184 }
    \n-
    \n-
    185
    \n-
    186 // default template arguments
    \n-
    187 template <class T>
    \n-
    \n-
    188 bool eq(const T &first,
    \n-
    189 const T &second,
    \n-\n-
    191 {
    \n-
    192 return eq<T, defaultCmpStyle>(first, second, epsilon);
    \n-
    193 }
    \n-
    \n-
    194 template <class T>
    \n-
    \n-
    195 bool ne(const T &first,
    \n-
    196 const T &second,
    \n-\n-
    198 {
    \n-
    199 return ne<T, defaultCmpStyle>(first, second, epsilon);
    \n+
    142 // we don't want to copy this class
    \n+
    143 MPIGuard (const MPIGuard &);
    \n+
    144
    \n+
    145 public:
    \n+
    \n+
    150 MPIGuard (bool active=true) :
    \n+
    151 comm_(GuardCommunicator::create(
    \n+
    152 MPIHelper::getCommunication())),
    \n+
    153 active_(active)
    \n+
    154 {}
    \n+
    \n+
    155
    \n+
    \n+
    161 MPIGuard (MPIHelper & m, bool active=true) :
    \n+
    162 comm_(GuardCommunicator::create(
    \n+
    163 m.getCommunication())),
    \n+
    164 active_(active)
    \n+
    165 {}
    \n+
    \n+
    166
    \n+
    177 template <class C>
    \n+
    \n+
    178 MPIGuard (const C & comm, bool active=true) :
    \n+
    179 comm_(GuardCommunicator::create(comm)),
    \n+
    180 active_(active)
    \n+
    181 {}
    \n+
    \n+
    182
    \n+
    183#if HAVE_MPI
    \n+
    \n+
    184 MPIGuard (const MPI_Comm & comm, bool active=true) :
    \n+
    185 comm_(GuardCommunicator::create(comm)),
    \n+
    186 active_(active)
    \n+
    187 {}
    \n+
    \n+
    188#endif
    \n+
    189
    \n+
    \n+\n+
    193 {
    \n+
    194 if (active_)
    \n+
    195 {
    \n+
    196 active_ = false;
    \n+
    197 finalize(false);
    \n+
    198 }
    \n+
    199 delete comm_;
    \n
    200 }
    \n
    \n-
    201 template <class T>
    \n-
    \n-
    202 bool gt(const T &first,
    \n-
    203 const T &second,
    \n-\n-
    205 {
    \n-
    206 return gt<T, defaultCmpStyle>(first, second, epsilon);
    \n-
    207 }
    \n-
    \n-
    208 template <class T>
    \n-
    \n-
    209 bool lt(const T &first,
    \n-
    210 const T &second,
    \n-\n-
    212 {
    \n-
    213 return lt<T, defaultCmpStyle>(first, second, epsilon);
    \n-
    214 }
    \n-
    \n-
    215 template <class T>
    \n-
    \n-
    216 bool ge(const T &first,
    \n-
    217 const T &second,
    \n-\n-
    219 {
    \n-
    220 return ge<T, defaultCmpStyle>(first, second, epsilon);
    \n-
    221 }
    \n-
    \n-
    222 template <class T>
    \n-
    \n-
    223 bool le(const T &first,
    \n-
    224 const T &second,
    \n-\n-
    226 {
    \n-
    227 return le<T, defaultCmpStyle>(first, second, epsilon);
    \n-
    228 }
    \n-
    \n-
    229
    \n-
    230 // rounding operations
    \n-
    231 namespace Impl {
    \n-
    232 template<class I, class T, CmpStyle cstyle = defaultCmpStyle, RoundingStyle rstyle = defaultRoundingStyle>
    \n-
    233 struct round_t;
    \n-
    234 template<class I, class T, CmpStyle cstyle>
    \n-
    235 struct round_t<I, T, cstyle, downward> {
    \n-
    236 static I
    \n-
    237 round(const T &val,
    \n-\n-
    239 // first get an approximation
    \n-
    240 I lower = I(val);
    \n-
    241 I upper;
    \n-
    242 if(eq<T, cstyle>(T(lower), val, epsilon)) return lower;
    \n-
    243 if(T(lower) > val) { upper = lower; lower--; }
    \n-
    244 else upper = lower+1;
    \n-
    245 if(le<T, cstyle>(val - T(lower), T(upper) - val, epsilon))
    \n-
    246 return lower;
    \n-
    247 else return upper;
    \n-
    248 }
    \n-
    249 };
    \n-
    250 template<class I, class T, CmpStyle cstyle>
    \n-
    251 struct round_t<I, T, cstyle, upward> {
    \n-
    252 static I
    \n-
    253 round(const T &val,
    \n-\n-
    255 // first get an approximation
    \n-
    256 I lower = I(val);
    \n-
    257 I upper;
    \n-
    258 if(eq<T, cstyle>(T(lower), val, epsilon)) return lower;
    \n-
    259 if(T(lower) > val) { upper = lower; lower--; }
    \n-
    260 else upper = lower+1;
    \n-
    261 if(lt<T, cstyle>(val - T(lower), T(upper) - val, epsilon))
    \n-
    262 return lower;
    \n-
    263 else return upper;
    \n-
    264 }
    \n-
    265 };
    \n-
    266 template<class I, class T, CmpStyle cstyle>
    \n-
    267 struct round_t<I, T, cstyle, towardZero> {
    \n-
    268 static I
    \n-
    269 round(const T &val,
    \n-\n-
    271 if(val > T(0))
    \n-
    272 return round_t<I, T, cstyle, downward>::round(val, epsilon);
    \n-
    273 else return round_t<I, T, cstyle, upward>::round(val, epsilon);
    \n-
    274 }
    \n-
    275 };
    \n-
    276 template<class I, class T, CmpStyle cstyle>
    \n-
    277 struct round_t<I, T, cstyle, towardInf> {
    \n-
    278 static I
    \n-
    279 round(const T &val,
    \n-\n-
    281 if(val > T(0))
    \n-
    282 return round_t<I, T, cstyle, upward>::round(val, epsilon);
    \n-
    283 else return round_t<I, T, cstyle, downward>::round(val, epsilon);
    \n-
    284 }
    \n-
    285 };
    \n-
    286 template<class I, class T, CmpStyle cstyle, RoundingStyle rstyle>
    \n-
    287 struct round_t<std::vector<I>, std::vector<T>, cstyle, rstyle> {
    \n-
    288 static std::vector<I>
    \n-
    289 round(const T &val,
    \n-\n-
    291 unsigned int size = val.size();
    \n-
    292 std::vector<I> res(size);
    \n-
    293 for(unsigned int i = 0; i < size; ++i)
    \n-
    294 res[i] = round_t<I, T, cstyle, rstyle>::round(val[i], epsilon);
    \n-
    295 return res;
    \n-
    296 }
    \n-
    297 };
    \n-
    298 template<class I, class T, int n, CmpStyle cstyle, RoundingStyle rstyle>
    \n-
    299 struct round_t<Dune::FieldVector<I, n>, Dune::FieldVector<T, n>, cstyle, rstyle> {
    \n-\n-
    301 round(const T &val,
    \n-\n-\n-
    304 for(int i = 0; i < n; ++i)
    \n-
    305 res[i] = round_t<I, T, cstyle, rstyle>::round(val[i], epsilon);
    \n-
    306 return res;
    \n-
    307 }
    \n-
    308 };
    \n-
    309 } // end namespace Impl
    \n-
    310 template<class I, class T, CmpStyle cstyle, RoundingStyle rstyle>
    \n-
    \n-
    311 I round(const T &val, typename EpsilonType<T>::Type epsilon /*= DefaultEpsilon<T, cstyle>::value()*/)
    \n-
    312 {
    \n-
    313 return Impl::round_t<I, T, cstyle, rstyle>::round(val, epsilon);
    \n-
    314 }
    \n-
    \n-
    315 template<class I, class T, CmpStyle cstyle>
    \n-
    \n-
    316 I round(const T &val, typename EpsilonType<T>::Type epsilon = DefaultEpsilon<T, cstyle>::value())
    \n-
    317 {
    \n-
    318 return round<I, T, cstyle, defaultRoundingStyle>(val, epsilon);
    \n-
    319 }
    \n-
    \n-
    320 template<class I, class T, RoundingStyle rstyle>
    \n-
    321 I round(const T &val, typename EpsilonType<T>::Type epsilon = DefaultEpsilon<T, defaultCmpStyle>::value())
    \n-
    322 {
    \n-
    323 return round<I, T, defaultCmpStyle, rstyle>(val, epsilon);
    \n-
    324 }
    \n-
    325 template<class I, class T>
    \n-
    \n-\n-
    327 {
    \n-
    328 return round<I, T, defaultCmpStyle>(val, epsilon);
    \n-
    329 }
    \n-
    \n-
    330
    \n-
    331 // truncation
    \n-
    332 namespace Impl {
    \n-
    333 template<class I, class T, CmpStyle cstyle = defaultCmpStyle, RoundingStyle rstyle = defaultRoundingStyle>
    \n-
    334 struct trunc_t;
    \n-
    335 template<class I, class T, CmpStyle cstyle>
    \n-
    336 struct trunc_t<I, T, cstyle, downward> {
    \n-
    337 static I
    \n-
    338 trunc(const T &val,
    \n-\n-
    340 // this should be optimized away unless needed
    \n-
    341 if(!std::numeric_limits<I>::is_signed)
    \n-
    342 // make sure this works for all useful cases even if I is an unsigned type
    \n-
    343 if(eq<T, cstyle>(val, T(0), epsilon)) return I(0);
    \n-
    344 // first get an approximation
    \n-
    345 I lower = I(val); // now |val-lower| < 1
    \n-
    346 // make sure we're really lower in case the cast truncated to an unexpected direction
    \n-
    347 if(T(lower) > val) lower--; // now val-lower < 1
    \n-
    348 // check whether lower + 1 is approximately val
    \n-
    349 if(eq<T, cstyle>(T(lower+1), val, epsilon))
    \n-
    350 return lower+1;
    \n-
    351 else return lower;
    \n-
    352 }
    \n-
    353 };
    \n-
    354 template<class I, class T, CmpStyle cstyle>
    \n-
    355 struct trunc_t<I, T, cstyle, upward> {
    \n-
    356 static I
    \n-
    357 trunc(const T &val,
    \n-\n-
    359 I upper = trunc_t<I, T, cstyle, downward>::trunc(val, epsilon);
    \n-
    360 if(ne<T, cstyle>(T(upper), val, epsilon)) ++upper;
    \n-
    361 return upper;
    \n-
    362 }
    \n-
    363 };
    \n-
    364 template<class I, class T, CmpStyle cstyle>
    \n-
    365 struct trunc_t<I, T, cstyle, towardZero> {
    \n-
    366 static I
    \n-
    367 trunc(const T &val,
    \n-\n-
    369 if(val > T(0)) return trunc_t<I, T, cstyle, downward>::trunc(val, epsilon);
    \n-
    370 else return trunc_t<I, T, cstyle, upward>::trunc(val, epsilon);
    \n-
    371 }
    \n-
    372 };
    \n-
    373 template<class I, class T, CmpStyle cstyle>
    \n-
    374 struct trunc_t<I, T, cstyle, towardInf> {
    \n-
    375 static I
    \n-
    376 trunc(const T &val,
    \n-\n-
    378 if(val > T(0)) return trunc_t<I, T, cstyle, upward>::trunc(val, epsilon);
    \n-
    379 else return trunc_t<I, T, cstyle, downward>::trunc(val, epsilon);
    \n-
    380 }
    \n-
    381 };
    \n-
    382 template<class I, class T, CmpStyle cstyle, RoundingStyle rstyle>
    \n-
    383 struct trunc_t<std::vector<I>, std::vector<T>, cstyle, rstyle> {
    \n-
    384 static std::vector<I>
    \n-
    385 trunc(const std::vector<T> &val,
    \n-\n-
    387 unsigned int size = val.size();
    \n-
    388 std::vector<I> res(size);
    \n-
    389 for(unsigned int i = 0; i < size; ++i)
    \n-
    390 res[i] = trunc_t<I, T, cstyle, rstyle>::trunc(val[i], epsilon);
    \n-
    391 return res;
    \n-
    392 }
    \n-
    393 };
    \n-
    394 template<class I, class T, int n, CmpStyle cstyle, RoundingStyle rstyle>
    \n-
    395 struct trunc_t<Dune::FieldVector<I, n>, Dune::FieldVector<T, n>, cstyle, rstyle> {
    \n-\n-\n-\n-\n-
    400 for(int i = 0; i < n; ++i)
    \n-
    401 res[i] = trunc_t<I, T, cstyle, rstyle>::trunc(val[i], epsilon);
    \n-
    402 return res;
    \n-
    403 }
    \n-
    404 };
    \n-
    405 } // namespace Impl
    \n-
    406 template<class I, class T, CmpStyle cstyle, RoundingStyle rstyle>
    \n-
    \n-
    407 I trunc(const T &val, typename EpsilonType<T>::Type epsilon /*= DefaultEpsilon<T, cstyle>::value()*/)
    \n-
    408 {
    \n-
    409 return Impl::trunc_t<I, T, cstyle, rstyle>::trunc(val, epsilon);
    \n-
    410 }
    \n-
    \n-
    411 template<class I, class T, CmpStyle cstyle>
    \n-
    \n-
    412 I trunc(const T &val, typename EpsilonType<T>::Type epsilon = DefaultEpsilon<T, cstyle>::value())
    \n-
    413 {
    \n-
    414 return trunc<I, T, cstyle, defaultRoundingStyle>(val, epsilon);
    \n-
    415 }
    \n-
    \n-
    416 template<class I, class T, RoundingStyle rstyle>
    \n-
    417 I trunc(const T &val, typename EpsilonType<T>::Type epsilon = DefaultEpsilon<T, defaultCmpStyle>::value())
    \n-
    418 {
    \n-
    419 return trunc<I, T, defaultCmpStyle, rstyle>(val, epsilon);
    \n-
    420 }
    \n-
    421 template<class I, class T>
    \n-
    \n-\n-
    423 {
    \n-
    424 return trunc<I, T, defaultCmpStyle>(val, epsilon);
    \n-
    425 }
    \n-
    \n-
    426 } //namespace Dune
    \n-
    \n-
    427
    \n-
    428 // oo interface
    \n-
    429 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    431 FloatCmpOps(EpsilonType epsilon) : epsilon_(epsilon) {}
    \n-
    \n-
    432
    \n-
    433
    \n-
    434 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-\n-
    \n-\n-
    437 {
    \n-
    438 return epsilon_;
    \n-
    439 }
    \n-
    \n-
    440
    \n-
    441 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    442 void
    \n-
    \n-\n-
    444 {
    \n-
    445 epsilon_ = epsilon__;
    \n-
    446 }
    \n-
    \n-
    447
    \n-
    448
    \n-
    449 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    451 eq(const ValueType &first, const ValueType &second) const
    \n-
    452 {
    \n-
    453 return Dune::FloatCmp::eq<ValueType, cstyle>(first, second, epsilon_);
    \n-
    454 }
    \n-
    \n-
    455
    \n-
    456 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    458 ne(const ValueType &first, const ValueType &second) const
    \n-
    459 {
    \n-
    460 return Dune::FloatCmp::ne<ValueType, cstyle>(first, second, epsilon_);
    \n-
    461 }
    \n-
    \n-
    462
    \n-
    463 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    465 gt(const ValueType &first, const ValueType &second) const
    \n-
    466 {
    \n-
    467 return Dune::FloatCmp::gt<ValueType, cstyle>(first, second, epsilon_);
    \n-
    468 }
    \n-
    \n-
    469
    \n-
    470 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    472 lt(const ValueType &first, const ValueType &second) const
    \n-
    473 {
    \n-
    474 return Dune::FloatCmp::lt<ValueType, cstyle>(first, second, epsilon_);
    \n-
    475 }
    \n-
    \n-
    476
    \n-
    477 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    479 ge(const ValueType &first, const ValueType &second) const
    \n-
    480 {
    \n-
    481 return Dune::FloatCmp::ge<ValueType, cstyle>(first, second, epsilon_);
    \n-
    482 }
    \n-
    \n-
    483
    \n-
    484 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    \n-\n-
    486 le(const ValueType &first, const ValueType &second) const
    \n-
    487 {
    \n-
    488 return Dune::FloatCmp::le<ValueType, cstyle>(first, second, epsilon_);
    \n-
    489 }
    \n-
    \n-
    490
    \n-
    491
    \n-
    492 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    493 template<class I>
    \n-
    \n-\n-
    495 round(const ValueType &val) const
    \n-
    496 {
    \n-
    497 return Dune::FloatCmp::round<I, ValueType, cstyle, rstyle_>(val, epsilon_);
    \n-
    498 }
    \n-
    \n-
    499
    \n-
    500 template<class T, FloatCmp::CmpStyle cstyle_, FloatCmp::RoundingStyle rstyle_>
    \n-
    501 template<class I>
    \n-
    \n-\n-
    503 trunc(const ValueType &val) const
    \n-
    504 {
    \n-
    505 return Dune::FloatCmp::trunc<I, ValueType, cstyle, rstyle_>(val, epsilon_);
    \n-
    506 }
    \n-
    \n-
    507
    \n-
    508} //namespace Dune
    \n-
    Implements a vector constructed from a given type representing a field and a compile-time given size.
    \n-
    Various ways to compare floating-point numbers.
    \n-
    bool ne(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
    test for inequality using epsilon
    Definition float_cmp.cc:151
    \n-
    bool eq(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
    test for equality using epsilon
    Definition float_cmp.cc:144
    \n-
    I round(const T &val, typename EpsilonType< T >::Type epsilon)
    round using epsilon
    Definition float_cmp.cc:311
    \n-
    I trunc(const T &val, typename EpsilonType< T >::Type epsilon)
    truncate using epsilon
    Definition float_cmp.cc:407
    \n-
    bool lt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
    test if first lesser than second
    Definition float_cmp.cc:165
    \n-
    bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
    test if first greater than second
    Definition float_cmp.cc:158
    \n-
    bool ge(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
    test if first greater or equal second
    Definition float_cmp.cc:172
    \n-
    bool le(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
    test if first lesser or equal second
    Definition float_cmp.cc:179
    \n-
    @ relativeStrong
    |a-b|/|a| <= epsilon && |a-b|/|b| <= epsilon
    Definition float_cmp.hh:108
    \n-
    @ relativeWeak
    |a-b|/|a| <= epsilon || |a-b|/|b| <= epsilon
    Definition float_cmp.hh:106
    \n-
    @ absolute
    |a-b| <= epsilon
    Definition float_cmp.hh:110
    \n-
    @ towardZero
    always round toward 0
    Definition float_cmp.hh:118
    \n-
    @ towardInf
    always round away from 0
    Definition float_cmp.hh:120
    \n-
    @ upward
    round toward
    Definition float_cmp.hh:124
    \n-
    @ downward
    round toward
    Definition float_cmp.hh:122
    \n-
    STL namespace.
    \n+
    201
    \n+
    \n+
    206 void reactivate() {
    \n+
    207 if (active_ == true)
    \n+
    208 finalize();
    \n+
    209 active_ = true;
    \n+
    210 }
    \n+
    \n+
    211
    \n+
    \n+
    222 void finalize(bool success = true)
    \n+
    223 {
    \n+
    224 int result = success ? 0 : 1;
    \n+
    225 bool was_active = active_;
    \n+
    226 active_ = false;
    \n+
    227 result = comm_->sum(result);
    \n+
    228 if (result>0 && was_active)
    \n+
    229 {
    \n+
    230 DUNE_THROW(MPIGuardError, "Terminating process "
    \n+
    231 << comm_->rank() << " due to "
    \n+
    232 << result << " remote error(s)");
    \n+
    233 }
    \n+
    234 }
    \n+
    \n+
    235 };
    \n+
    \n+
    236
    \n+
    237}
    \n+
    238
    \n+
    239#endif // DUNE_COMMON_PARALLEL_MPIGUARD_HH
    \n+
    Helpers for dealing with MPI.
    \n+
    Implements an utility class that provides collective communication methods for sequential programs.
    \n+
    Implements an utility class that provides MPI's collective communication methods.
    \n+
    A few common exception classes.
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
    Return the size of the sequence.
    Definition integersequence.hh:75
    \n-
    vector space out of a tensor product of fields.
    Definition fvector.hh:91
    \n-
    Mapping of value type to epsilon type.
    Definition float_cmp.cc:23
    \n-
    T Type
    The epsilon type corresponding to value type T.
    Definition float_cmp.cc:25
    \n-
    EpsilonType< T >::Type Type
    The epsilon type corresponding to value type std::vector<T, A>
    Definition float_cmp.cc:36
    \n-
    EpsilonType< T >::Type Type
    The epsilon type corresponding to value type Dune::FieldVector<T, n>
    Definition float_cmp.cc:47
    \n-
    static EpsilonType< T >::Type value()
    Definition float_cmp.cc:53
    \n-
    static EpsilonType< T >::Type value()
    Definition float_cmp.cc:58
    \n-
    static EpsilonType< T >::Type value()
    Definition float_cmp.cc:63
    \n-
    mapping from a value type and a compare style to a default epsilon
    Definition float_cmp.hh:138
    \n-
    static EpsilonType< T >::Type value()
    Returns the default epsilon for the given value type and compare style.
    \n-
    bool le(const ValueType &first, const ValueType &second) const
    test if first lesser or equal second
    Definition float_cmp.cc:486
    \n-
    FloatCmpOps(EpsilonType epsilon=DefaultEpsilon::value())
    construct an operations object
    Definition float_cmp.cc:431
    \n-
    bool eq(const ValueType &first, const ValueType &second) const
    test for equality using epsilon
    Definition float_cmp.cc:451
    \n-
    bool lt(const ValueType &first, const ValueType &second) const
    test if first lesser than second
    Definition float_cmp.cc:472
    \n-
    bool ge(const ValueType &first, const ValueType &second) const
    test if first greater or equal second
    Definition float_cmp.cc:479
    \n-
    FloatCmp::EpsilonType< T >::Type EpsilonType
    Type of the epsilon.
    Definition float_cmp.hh:304
    \n-
    bool ne(const ValueType &first, const ValueType &second) const
    test for inequality using epsilon
    Definition float_cmp.cc:458
    \n-
    T ValueType
    Type of the values to compare.
    Definition float_cmp.hh:299
    \n-
    EpsilonType epsilon() const
    return the current epsilon
    Definition float_cmp.cc:436
    \n-
    I round(const ValueType &val) const
    round using epsilon
    Definition float_cmp.cc:495
    \n-
    I trunc(const ValueType &val) const
    truncate using epsilon
    Definition float_cmp.cc:503
    \n-
    bool gt(const ValueType &first, const ValueType &second) const
    test if first greater than second
    Definition float_cmp.cc:465
    \n+
    Default exception if an error in the parallel communication of the program occurred.
    Definition exceptions.hh:287
    \n+
    This exception is thrown if the MPIGuard detects an error on a remote process.
    Definition mpiguard.hh:103
    \n+
    detects a thrown exception and communicates to all other processes
    Definition mpiguard.hh:138
    \n+
    void reactivate()
    reactivate the guard.
    Definition mpiguard.hh:206
    \n+
    void finalize(bool success=true)
    stop the guard.
    Definition mpiguard.hh:222
    \n+
    ~MPIGuard()
    destroy the guard and check for undetected exceptions
    Definition mpiguard.hh:192
    \n+
    MPIGuard(const C &comm, bool active=true)
    create an MPIGuard operating on an arbitrary communicator.
    Definition mpiguard.hh:178
    \n+
    MPIGuard(const MPI_Comm &comm, bool active=true)
    Definition mpiguard.hh:184
    \n+
    MPIGuard(bool active=true)
    create an MPIGuard operating on the Communicator of the global Dune::MPIHelper
    Definition mpiguard.hh:150
    \n+
    MPIGuard(MPIHelper &m, bool active=true)
    create an MPIGuard operating on the Communicator of a special Dune::MPIHelper m
    Definition mpiguard.hh:161
    \n+
    A real mpi helper.
    Definition mpihelper.hh:181
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,712 +1,231 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-float_cmp.cc\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpiguard.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#include \"_\bf_\bl_\bo_\ba_\bt_\b__\bc_\bm_\bp_\b._\bh_\bh\"\n-6\n-7#include \n-8#include \n-9#include \n-10#include \n-11#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-12\n-13namespace _\bD_\bu_\bn_\be {\n-14\n+5\n+13#ifndef DUNE_COMMON_PARALLEL_MPIGUARD_HH\n+14#define DUNE_COMMON_PARALLEL_MPIGUARD_HH\n 15\n-_\b1_\b6 namespace FloatCmp {\n-17 // traits\n+16#if HAVE_MPI\n+17#include \n+18#endif\n 19\n-_\b2_\b3 template struct _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be {\n-_\b2_\b5 typedef T _\bT_\by_\bp_\be;\n-26 };\n-28\n-33 template\n-_\b3_\b4 struct _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be<_\bs_\bt_\bd::vector > {\n-_\b3_\b6 typedef typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be _\bT_\by_\bp_\be;\n-37 };\n-39\n-44 template\n-_\b4_\b5 struct _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br > {\n-_\b4_\b7 typedef typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be _\bT_\by_\bp_\be;\n+20#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+23#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bh_\be_\bl_\bp_\be_\br_\b._\bh_\bh>\n+24\n+25namespace _\bD_\bu_\bn_\be\n+26{\n+27\n+28#ifndef DOXYGEN\n+29\n+30 /*\n+31 Interface class for the communication needed by MPIGuard\n+32 */\n+33 struct GuardCommunicator\n+34 {\n+35 // cleanup\n+36 virtual ~GuardCommunicator() {};\n+37 // all the communication methods we need\n+38 virtual int rank() = 0;\n+39 virtual int size() = 0;\n+40 virtual int sum(int i) = 0;\n+41 // create a new GuardCommunicator pointer\n+42 template \n+43 static GuardCommunicator * create(const Communication & c);\n+44#if HAVE_MPI\n+45 inline\n+46 static GuardCommunicator * create(const MPI_Comm & c);\n+47#endif\n 48 };\n 49\n-50 // default epsilon\n-51 template\n-_\b5_\b2 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn {\n-_\b5_\b3 static typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be _\bv_\ba_\bl_\bu_\be()\n-54 { return std::numeric_limits::Type>::epsilon()*8.; }\n-55 };\n-56 template\n-_\b5_\b7 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn {\n-_\b5_\b8 static typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be _\bv_\ba_\bl_\bu_\be()\n-59 { return std::numeric_limits::Type>::epsilon()*8.; }\n-60 };\n-61 template\n-_\b6_\b2 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn {\n-_\b6_\b3 static typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be _\bv_\ba_\bl_\bu_\be()\n-64 { return std::max(std::numeric_limits_\b:_\b:_\bT_\by_\bp_\be>::\n-epsilon(), 1e-6); }\n-65 };\n-66\n-67 namespace Impl {\n-68 // basic comparison\n-69 template\n-70 struct eq_t;\n-71 template\n-72 struct eq_t {\n-73 static bool _\be_\bq(const T &first,\n-74 const T &second,\n-75 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-76 {\n-77 using std::abs;\n-78 return abs(first - second) <= epsilon*std::max(abs(first), abs(second));\n-79 }\n-80 };\n-81 template\n-82 struct eq_t {\n-83 static bool _\be_\bq(const T &first,\n-84 const T &second,\n-85 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-86 {\n-87 using std::abs;\n-88 return abs(first - second) <= epsilon*std::min(abs(first), abs(second));\n+50 namespace {\n+51 /*\n+52 templated implementation of different communication classes\n+53 */\n+54 // the default class will always fail, due to the missing implementation of\n+\"sum\"\n+55 template \n+56 struct GenericGuardCommunicator\n+57 : public GuardCommunicator\n+58 {};\n+59 // specialization for Communication\n+60 template \n+61 struct GenericGuardCommunicator< Communication >\n+62 : public GuardCommunicator\n+63 {\n+64 const Communication comm;\n+65 GenericGuardCommunicator(const Communication & c) :\n+66 comm(c) {}\n+67 int rank() override { return comm.rank(); };\n+68 int size() override { return comm.size(); };\n+69 int sum(int i) override { return comm.sum(i); }\n+70 };\n+71\n+72#if HAVE_MPI\n+73 // specialization for MPI_Comm\n+74 template <>\n+75 struct GenericGuardCommunicator\n+76 : public GenericGuardCommunicator< Communication >\n+77 {\n+78 GenericGuardCommunicator(const MPI_Comm & c) :\n+79 GenericGuardCommunicator< Communication >(\n+80 Communication(c)) {}\n+81 };\n+82#endif\n+83 } // anonymous namespace\n+84\n+85 template\n+86 GuardCommunicator * GuardCommunicator::create(const Communication & comm)\n+87 {\n+88 return new GenericGuardCommunicator< Communication >(comm);\n 89 }\n-90 };\n-91 template\n-92 struct eq_t {\n-93 static bool _\be_\bq(const T &first,\n-94 const T &second,\n-95 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-96 {\n-97 using std::abs;\n-98 return abs(first-second) <= epsilon;\n-99 }\n-100 };\n-101 template\n-102 struct eq_t_std_vec {\n-103 typedef std::vector V;\n-104 static bool _\be_\bq(const V &first,\n-105 const V &second,\n-106 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bV_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bV_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be()) {\n-107 auto _\bs_\bi_\bz_\be = first.size();\n-108 if(_\bs_\bi_\bz_\be != second.size()) return false;\n-109 for(unsigned int i = 0; i < _\bs_\bi_\bz_\be; ++i)\n-110 if(!eq_t::eq(first[i], second[i], epsilon))\n-111 return false;\n-112 return true;\n-113 }\n-114 };\n-115 template< class T>\n-116 struct eq_t<_\bs_\bt_\bd::vector, _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bW_\be_\ba_\bk> : eq_t_std_vec\n-{};\n-117 template< class T>\n-118 struct eq_t<_\bs_\bt_\bd::vector, _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bS_\bt_\br_\bo_\bn_\bg> : eq_t_std_vec {};\n-119 template< class T>\n-120 struct eq_t<_\bs_\bt_\bd::vector, _\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be> : eq_t_std_vec {};\n-121\n-122 template\n-123 struct eq_t_fvec {\n-124 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\b _\bn_\b> V;\n-125 static bool _\be_\bq(const V &first,\n-126 const V &second,\n-127 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bV_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bV_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be()) {\n-128 for(int i = 0; i < n; ++i)\n-129 if(!eq_t::eq(first[i], second[i], epsilon))\n-130 return false;\n-131 return true;\n-132 }\n-133 };\n-134 template< class T, int n >\n-135 struct eq_t< _\bD_\bu_\bn_\be::FieldVector, _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bW_\be_\ba_\bk> : eq_t_fvec {};\n-136 template< class T, int n >\n-137 struct eq_t< _\bD_\bu_\bn_\be::FieldVector, _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bS_\bt_\br_\bo_\bn_\bg> : eq_t_fvec {};\n-138 template< class T, int n >\n-139 struct eq_t< _\bD_\bu_\bn_\be::FieldVector, _\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be> : eq_t_fvec\n-{};\n-140 } // namespace Impl\n+90\n+91#if HAVE_MPI\n+92 GuardCommunicator * GuardCommunicator::create(const MPI_Comm & comm)\n+93 {\n+94 return new GenericGuardCommunicator< Communication >(comm);\n+95 }\n+96#endif\n+97\n+98#endif\n+99\n+_\b1_\b0_\b3 class _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\bE_\br_\br_\bo_\br : public _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br {};\n+104\n+_\b1_\b3_\b7 class _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+138 {\n+139 GuardCommunicator * comm_;\n+140 bool active_;\n 141\n-142 // operations in functional style\n-143 template \n-_\b1_\b4_\b4 bool _\be_\bq(const T &first,\n-145 const T &second,\n-146 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon)\n-147 {\n-148 return Impl::eq_t::eq(first, second, epsilon);\n-149 }\n-150 template \n-_\b1_\b5_\b1 bool _\bn_\be(const T &first,\n-152 const T &second,\n-153 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon)\n-154 {\n-155 return !eq(first, second, epsilon);\n-156 }\n-157 template \n-_\b1_\b5_\b8 bool _\bg_\bt(const T &first,\n-159 const T &second,\n-160 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon)\n-161 {\n-162 return first > second && ne(first, second, epsilon);\n-163 }\n-164 template \n-_\b1_\b6_\b5 bool _\bl_\bt(const T &first,\n-166 const T &second,\n-167 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon)\n-168 {\n-169 return first < second && ne(first, second, epsilon);\n-170 }\n-171 template \n-_\b1_\b7_\b2 bool _\bg_\be(const T &first,\n-173 const T &second,\n-174 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon)\n-175 {\n-176 return first > second || eq(first, second, epsilon);\n-177 }\n-178 template \n-_\b1_\b7_\b9 bool _\bl_\be(const T &first,\n-180 const T &second,\n-181 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon)\n-182 {\n-183 return first < second || eq(first, second, epsilon);\n-184 }\n-185\n-186 // default template arguments\n-187 template \n-_\b1_\b8_\b8 bool _\be_\bq(const T &first,\n-189 const T &second,\n-190 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,\n-_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-191 {\n-192 return eq(first, second, epsilon);\n-193 }\n-194 template \n-_\b1_\b9_\b5 bool _\bn_\be(const T &first,\n-196 const T &second,\n-197 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,\n-_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-198 {\n-199 return ne(first, second, epsilon);\n+142 // we don't want to copy this class\n+143 _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd (const _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd &);\n+144\n+145 public:\n+_\b1_\b5_\b0 _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd (bool active=true) :\n+151 comm_(GuardCommunicator::create(\n+152 _\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br::getCommunication())),\n+153 active_(active)\n+154 {}\n+155\n+_\b1_\b6_\b1 _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd (_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br & m, bool active=true) :\n+162 comm_(GuardCommunicator::create(\n+163 m.getCommunication())),\n+164 active_(active)\n+165 {}\n+166\n+177 template \n+_\b1_\b7_\b8 _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd (const C & comm, bool active=true) :\n+179 comm_(GuardCommunicator::create(comm)),\n+180 active_(active)\n+181 {}\n+182\n+183#if HAVE_MPI\n+_\b1_\b8_\b4 _\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd (const MPI_Comm & comm, bool active=true) :\n+185 comm_(GuardCommunicator::create(comm)),\n+186 active_(active)\n+187 {}\n+188#endif\n+189\n+_\b1_\b9_\b2 _\b~_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd()\n+193 {\n+194 if (active_)\n+195 {\n+196 active_ = false;\n+197 _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be(false);\n+198 }\n+199 delete comm_;\n 200 }\n-201 template \n-_\b2_\b0_\b2 bool _\bg_\bt(const T &first,\n-203 const T &second,\n-204 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,\n-_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-205 {\n-206 return gt(first, second, epsilon);\n-207 }\n-208 template \n-_\b2_\b0_\b9 bool _\bl_\bt(const T &first,\n-210 const T &second,\n-211 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,\n-_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-212 {\n-213 return lt(first, second, epsilon);\n-214 }\n-215 template \n-_\b2_\b1_\b6 bool _\bg_\be(const T &first,\n-217 const T &second,\n-218 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,\n-_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-219 {\n-220 return ge(first, second, epsilon);\n-221 }\n-222 template \n-_\b2_\b2_\b3 bool _\bl_\be(const T &first,\n-224 const T &second,\n-225 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,\n-_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-226 {\n-227 return le(first, second, epsilon);\n-228 }\n-229\n-230 // rounding operations\n-231 namespace Impl {\n-232 template\n-233 struct round_t;\n-234 template\n-235 struct round_t {\n-236 static I\n-237 _\br_\bo_\bu_\bn_\bd(const T &val,\n-238 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-239 // first get an approximation\n-240 I lower = I(val);\n-241 I upper;\n-242 if(eq(T(lower), val, epsilon)) return lower;\n-243 if(T(lower) > val) { upper = lower; lower--; }\n-244 else upper = lower+1;\n-245 if(le(val - T(lower), T(upper) - val, epsilon))\n-246 return lower;\n-247 else return upper;\n-248 }\n-249 };\n-250 template\n-251 struct round_t {\n-252 static I\n-253 _\br_\bo_\bu_\bn_\bd(const T &val,\n-254 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-255 // first get an approximation\n-256 I lower = I(val);\n-257 I upper;\n-258 if(eq(T(lower), val, epsilon)) return lower;\n-259 if(T(lower) > val) { upper = lower; lower--; }\n-260 else upper = lower+1;\n-261 if(lt(val - T(lower), T(upper) - val, epsilon))\n-262 return lower;\n-263 else return upper;\n-264 }\n-265 };\n-266 template\n-267 struct round_t {\n-268 static I\n-269 _\br_\bo_\bu_\bn_\bd(const T &val,\n-270 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-271 if(val > T(0))\n-272 return round_t::round(val, epsilon);\n-273 else return round_t::round(val, epsilon);\n-274 }\n-275 };\n-276 template\n-277 struct round_t {\n-278 static I\n-279 _\br_\bo_\bu_\bn_\bd(const T &val,\n-280 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-281 if(val > T(0))\n-282 return round_t::round(val, epsilon);\n-283 else return round_t::round(val, epsilon);\n-284 }\n-285 };\n-286 template\n-287 struct round_t<_\bs_\bt_\bd::vector, std::vector, cstyle, rstyle> {\n-288 static std::vector\n-289 _\br_\bo_\bu_\bn_\bd(const T &val,\n-290 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-291 unsigned int _\bs_\bi_\bz_\be = val.size();\n-292 std::vector res(_\bs_\bi_\bz_\be);\n-293 for(unsigned int i = 0; i < _\bs_\bi_\bz_\be; ++i)\n-294 res[i] = round_t::round(val[i], epsilon);\n-295 return res;\n-296 }\n-297 };\n-298 template\n-299 struct round_t<_\bD_\bu_\bn_\be::FieldVector, _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br, cstyle,\n-rstyle> {\n-300 static _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bI_\b,_\b _\bn_\b>\n-301 _\br_\bo_\bu_\bn_\bd(const T &val,\n-302 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-303 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bI_\b,_\b _\bn_\b> res;\n-304 for(int i = 0; i < n; ++i)\n-305 res[i] = round_t::round(val[i], epsilon);\n-306 return res;\n-307 }\n-308 };\n-309 } // end namespace Impl\n-310 template\n-_\b3_\b1_\b1 I _\br_\bo_\bu_\bn_\bd(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon /*=\n-DefaultEpsilon::value()*/)\n-312 {\n-313 return Impl::round_t::round(val, epsilon);\n-314 }\n-315 template\n-_\b3_\b1_\b6 I _\br_\bo_\bu_\bn_\bd(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon =\n-_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-317 {\n-318 return round(val, epsilon);\n-319 }\n-320 template\n-321 I _\br_\bo_\bu_\bn_\bd(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon =\n-_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-322 {\n-323 return round(val, epsilon);\n-324 }\n-325 template\n-_\b3_\b2_\b6 I _\br_\bo_\bu_\bn_\bd(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon =\n-_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-327 {\n-328 return round(val, epsilon);\n-329 }\n-330\n-331 // truncation\n-332 namespace Impl {\n-333 template\n-334 struct trunc_t;\n-335 template\n-336 struct trunc_t {\n-337 static I\n-338 _\bt_\br_\bu_\bn_\bc(const T &val,\n-339 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-340 // this should be optimized away unless needed\n-341 if(!std::numeric_limits::is_signed)\n-342 // make sure this works for all useful cases even if I is an unsigned type\n-343 if(eq(val, T(0), epsilon)) return I(0);\n-344 // first get an approximation\n-345 I lower = I(val); // now |val-lower| < 1\n-346 // make sure we're really lower in case the cast truncated to an unexpected\n-direction\n-347 if(T(lower) > val) lower--; // now val-lower < 1\n-348 // check whether lower + 1 is approximately val\n-349 if(eq(T(lower+1), val, epsilon))\n-350 return lower+1;\n-351 else return lower;\n-352 }\n-353 };\n-354 template\n-355 struct trunc_t {\n-356 static I\n-357 _\bt_\br_\bu_\bn_\bc(const T &val,\n-358 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-359 I upper = trunc_t::trunc(val, epsilon);\n-360 if(ne(T(upper), val, epsilon)) ++upper;\n-361 return upper;\n-362 }\n-363 };\n-364 template\n-365 struct trunc_t {\n-366 static I\n-367 _\bt_\br_\bu_\bn_\bc(const T &val,\n-368 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-369 if(val > T(0)) return trunc_t::trunc(val, epsilon);\n-370 else return trunc_t::trunc(val, epsilon);\n-371 }\n-372 };\n-373 template\n-374 struct trunc_t {\n-375 static I\n-376 _\bt_\br_\bu_\bn_\bc(const T &val,\n-377 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-378 if(val > T(0)) return trunc_t::trunc(val, epsilon);\n-379 else return trunc_t::trunc(val, epsilon);\n-380 }\n-381 };\n-382 template\n-383 struct trunc_t<_\bs_\bt_\bd::vector, std::vector, cstyle, rstyle> {\n-384 static std::vector\n-385 _\bt_\br_\bu_\bn_\bc(const std::vector &val,\n-386 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-387 unsigned int _\bs_\bi_\bz_\be = val.size();\n-388 std::vector res(_\bs_\bi_\bz_\be);\n-389 for(unsigned int i = 0; i < _\bs_\bi_\bz_\be; ++i)\n-390 res[i] = trunc_t::trunc(val[i], epsilon);\n-391 return res;\n-392 }\n-393 };\n-394 template\n-395 struct trunc_t<_\bD_\bu_\bn_\be::FieldVector, _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br, cstyle,\n-rstyle> {\n-396 static _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bI_\b,_\b _\bn_\b>\n-397 _\bt_\br_\bu_\bn_\bc(const _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\b _\bn_\b> &val,\n-398 typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon = (_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-())) {\n-399 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bI_\b,_\b _\bn_\b> res;\n-400 for(int i = 0; i < n; ++i)\n-401 res[i] = trunc_t::trunc(val[i], epsilon);\n-402 return res;\n-403 }\n-404 };\n-405 } // namespace Impl\n-406 template\n-_\b4_\b0_\b7 I _\bt_\br_\bu_\bn_\bc(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon /*=\n-DefaultEpsilon::value()*/)\n-408 {\n-409 return Impl::trunc_t::trunc(val, epsilon);\n-410 }\n-411 template\n-_\b4_\b1_\b2 I _\bt_\br_\bu_\bn_\bc(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon =\n-_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-413 {\n-414 return trunc(val, epsilon);\n-415 }\n-416 template\n-417 I _\bt_\br_\bu_\bn_\bc(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon =\n-_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-418 {\n-419 return trunc(val, epsilon);\n-420 }\n-421 template\n-_\b4_\b2_\b2 I _\bt_\br_\bu_\bn_\bc(const T &val, typename _\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bT_\by_\bp_\be epsilon =\n-_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\bT_\b,_\b _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bm_\bp_\bS_\bt_\by_\bl_\be_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be())\n-423 {\n-424 return trunc(val, epsilon);\n-425 }\n-426 } //namespace Dune\n-427\n-428 // oo interface\n-429 template\n-_\b4_\b3_\b0 _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-431_\b _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs(_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be epsilon) : epsilon_(epsilon) {}\n-432\n-433\n-434 template\n-435 typename _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be\n-_\b4_\b3_\b6 _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:_\be_\bp_\bs_\bi_\bl_\bo_\bn() const\n-437 {\n-438 return epsilon_;\n-439 }\n-440\n-441 template\n-442 void\n-_\b4_\b4_\b3 _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:_\be_\bp_\bs_\bi_\bl_\bo_\bn(_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be epsilon__)\n-444 {\n-445 epsilon_ = epsilon__;\n-446 }\n-447\n-448\n-449 template\n-_\b4_\b5_\b0 bool _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-451_\b _\be_\bq(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &first, const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &second) const\n-452 {\n-453 return Dune::FloatCmp::eq(first, second, epsilon_);\n-454 }\n-455\n-456 template\n-_\b4_\b5_\b7 bool _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-458_\b _\bn_\be(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &first, const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &second) const\n-459 {\n-460 return Dune::FloatCmp::ne(first, second, epsilon_);\n-461 }\n-462\n-463 template\n-_\b4_\b6_\b4 bool _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-465_\b _\bg_\bt(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &first, const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &second) const\n-466 {\n-467 return Dune::FloatCmp::gt(first, second, epsilon_);\n-468 }\n-469\n-470 template\n-_\b4_\b7_\b1 bool _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-472_\b _\bl_\bt(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &first, const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &second) const\n-473 {\n-474 return Dune::FloatCmp::lt(first, second, epsilon_);\n-475 }\n-476\n-477 template\n-_\b4_\b7_\b8 bool _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-479_\b _\bg_\be(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &first, const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &second) const\n-480 {\n-481 return Dune::FloatCmp::ge(first, second, epsilon_);\n-482 }\n-483\n-484 template\n-_\b4_\b8_\b5 bool _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-486_\b _\bl_\be(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &first, const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &second) const\n-487 {\n-488 return Dune::FloatCmp::le(first, second, epsilon_);\n-489 }\n-490\n-491\n-492 template\n-493 template\n-_\b4_\b9_\b4 I _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-495_\b _\br_\bo_\bu_\bn_\bd(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &val) const\n-496 {\n-497 return Dune::FloatCmp::round(val, epsilon_);\n-498 }\n-499\n-500 template\n-501 template\n-_\b5_\b0_\b2 I _\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b<_\bT_\b,_\b _\bc_\bs_\bt_\by_\bl_\be_\b__\b,_\b _\br_\bs_\bt_\by_\bl_\be_\b__\b>_\b:_\b:\n-503_\b _\bt_\br_\bu_\bn_\bc(const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be &val) const\n-504 {\n-505 return Dune::FloatCmp::trunc(val, epsilon_);\n-506 }\n-507\n-508} //namespace Dune\n-_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-Implements a vector constructed from a given type representing a field and a\n-compile-time given size.\n-_\bf_\bl_\bo_\ba_\bt_\b__\bc_\bm_\bp_\b._\bh_\bh\n-Various ways to compare floating-point numbers.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bn_\be\n-bool ne(const T &first, const T &second, typename EpsilonType< T >::Type\n-epsilon)\n-test for inequality using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\be_\bq\n-bool eq(const T &first, const T &second, typename EpsilonType< T >::Type\n-epsilon)\n-test for equality using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:144\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\br_\bo_\bu_\bn_\bd\n-I round(const T &val, typename EpsilonType< T >::Type epsilon)\n-round using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bt_\br_\bu_\bn_\bc\n-I trunc(const T &val, typename EpsilonType< T >::Type epsilon)\n-truncate using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:407\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bl_\bt\n-bool lt(const T &first, const T &second, typename EpsilonType< T >::Type\n-epsilon)\n-test if first lesser than second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:165\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bg_\bt\n-bool gt(const T &first, const T &second, typename EpsilonType< T >::Type\n-epsilon)\n-test if first greater than second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:158\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bg_\be\n-bool ge(const T &first, const T &second, typename EpsilonType< T >::Type\n-epsilon)\n-test if first greater or equal second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bl_\be\n-bool le(const T &first, const T &second, typename EpsilonType< T >::Type\n-epsilon)\n-test if first lesser or equal second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:179\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bS_\bt_\br_\bo_\bn_\bg\n-@ relativeStrong\n-|a-b|/|a| <= epsilon && |a-b|/|b| <= epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bW_\be_\ba_\bk\n-@ relativeWeak\n-|a-b|/|a| <= epsilon || |a-b|/|b| <= epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:106\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be\n-@ absolute\n-|a-b| <= epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:110\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bt_\bo_\bw_\ba_\br_\bd_\bZ_\be_\br_\bo\n-@ towardZero\n-always round toward 0\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bt_\bo_\bw_\ba_\br_\bd_\bI_\bn_\bf\n-@ towardInf\n-always round away from 0\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bu_\bp_\bw_\ba_\br_\bd\n-@ upward\n-round toward\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:124\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bd_\bo_\bw_\bn_\bw_\ba_\br_\bd\n-@ downward\n-round toward\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:122\n-_\bs_\bt_\bd\n-STL namespace.\n+201\n+_\b2_\b0_\b6 void _\br_\be_\ba_\bc_\bt_\bi_\bv_\ba_\bt_\be() {\n+207 if (active_ == true)\n+208 _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be();\n+209 active_ = true;\n+210 }\n+211\n+_\b2_\b2_\b2 void _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be(bool success = true)\n+223 {\n+224 int result = success ? 0 : 1;\n+225 bool was_active = active_;\n+226 active_ = false;\n+227 result = comm_->sum(result);\n+228 if (result>0 && was_active)\n+229 {\n+230 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\bE_\br_\br_\bo_\br, \"Terminating process \"\n+231 << comm_->rank() << \" due to \"\n+232 << result << \" remote error(s)\");\n+233 }\n+234 }\n+235 };\n+236\n+237}\n+238\n+239#endif // DUNE_COMMON_PARALLEL_MPIGUARD_HH\n+_\bm_\bp_\bi_\bh_\be_\bl_\bp_\be_\br_\b._\bh_\bh\n+Helpers for dealing with MPI.\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides collective communication methods for\n+sequential programs.\n+_\bm_\bp_\bi_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides MPI's collective communication\n+methods.\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bz_\be\n-constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::\n-integer_sequence< T, II... >)\n-Return the size of the sequence.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br\n-vector space out of a tensor product of fields.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fvector.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be\n-Mapping of value type to epsilon type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b:_\b:_\bT_\by_\bp_\be\n-T Type\n-The epsilon type corresponding to value type T.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-EpsilonType< T >::Type Type\n-The epsilon type corresponding to value type std::vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-EpsilonType< T >::Type Type\n-The epsilon type corresponding to value type Dune::FieldVector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\b _\bT_\b,_\b _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bW_\be_\ba_\bk_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-static EpsilonType< T >::Type value()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\b _\bT_\b,_\b _\br_\be_\bl_\ba_\bt_\bi_\bv_\be_\bS_\bt_\br_\bo_\bn_\bg_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-static EpsilonType< T >::Type value()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b<_\b _\bT_\b,_\b _\ba_\bb_\bs_\bo_\bl_\bu_\bt_\be_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-static EpsilonType< T >::Type value()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn\n-mapping from a value type and a compare style to a default epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:138\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-static EpsilonType< T >::Type value()\n-Returns the default epsilon for the given value type and compare style.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bl_\be\n-bool le(const ValueType &first, const ValueType &second) const\n-test if first lesser or equal second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:486\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs\n-FloatCmpOps(EpsilonType epsilon=DefaultEpsilon::value())\n-construct an operations object\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:431\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\be_\bq\n-bool eq(const ValueType &first, const ValueType &second) const\n-test for equality using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:451\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bl_\bt\n-bool lt(const ValueType &first, const ValueType &second) const\n-test if first lesser than second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:472\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bg_\be\n-bool ge(const ValueType &first, const ValueType &second) const\n-test if first greater or equal second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:479\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bE_\bp_\bs_\bi_\bl_\bo_\bn_\bT_\by_\bp_\be\n-FloatCmp::EpsilonType< T >::Type EpsilonType\n-Type of the epsilon.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:304\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bn_\be\n-bool ne(const ValueType &first, const ValueType &second) const\n-test for inequality using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:458\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-T ValueType\n-Type of the values to compare.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\be_\bp_\bs_\bi_\bl_\bo_\bn\n-EpsilonType epsilon() const\n-return the current epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:436\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\br_\bo_\bu_\bn_\bd\n-I round(const ValueType &val) const\n-round using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:495\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bt_\br_\bu_\bn_\bc\n-I trunc(const ValueType &val) const\n-truncate using epsilon\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bl_\bo_\ba_\bt_\bC_\bm_\bp_\bO_\bp_\bs_\b:_\b:_\bg_\bt\n-bool gt(const ValueType &first, const ValueType &second) const\n-test if first greater than second\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn float_cmp.cc:465\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br\n+Default exception if an error in the parallel communication of the program\n+occurred.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:287\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\bE_\br_\br_\bo_\br\n+This exception is thrown if the MPIGuard detects an error on a remote process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+detects a thrown exception and communicates to all other processes\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:138\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\br_\be_\ba_\bc_\bt_\bi_\bv_\ba_\bt_\be\n+void reactivate()\n+reactivate the guard.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be\n+void finalize(bool success=true)\n+stop the guard.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\b~_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+~MPIGuard()\n+destroy the guard and check for undetected exceptions\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:192\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+MPIGuard(const C &comm, bool active=true)\n+create an MPIGuard operating on an arbitrary communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:178\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+MPIGuard(const MPI_Comm &comm, bool active=true)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+MPIGuard(bool active=true)\n+create an MPIGuard operating on the Communicator of the global Dune::MPIHelper\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd_\b:_\b:_\bM_\bP_\bI_\bG_\bu_\ba_\br_\bd\n+MPIGuard(MPIHelper &m, bool active=true)\n+create an MPIGuard operating on the Communicator of a special Dune::MPIHelper m\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpiguard.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br\n+A real mpi helper.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpihelper.hh:181\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00062.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00062.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: arraylist.hh File Reference\n+dune-common: parmetis.hh File Reference\n \n \n \n \n \n \n \n@@ -65,56 +65,23 @@\n
    \n \n \n \n \n \n \n
    \n- \n-
    arraylist.hh File Reference
    \n+
    parmetis.hh File Reference
    \n
    \n
    \n \n-

    Implements a random-access container that can efficiently change size (similar to std::deque) \n-More...

    \n-
    #include <array>
    \n-#include <cassert>
    \n-#include <memory>
    \n-#include <vector>
    \n-#include "iteratorfacades.hh"
    \n-
    \n

    Go to the source code of this file.

    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::ArrayList< T, N, A >
     A dynamically growing random access list. More...
     
    class  Dune::ArrayListIterator< T, N, A >
     A random access iterator for the Dune::ArrayList class. More...
     
    class  Dune::ConstArrayListIterator< T, N, A >
     A constant random access iterator for the Dune::ArrayList class. More...
     
    \n-\n-\n-\n-\n-

    \n-Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-

    Detailed Description

    \n-

    Implements a random-access container that can efficiently change size (similar to std::deque)

    \n-

    This file implements the class ArrayList which behaves like dynamically growing array together with the class ArrayListIterator which is random access iterator as needed by the stl for sorting and other algorithms.

    Author
    Markus Blatt
    \n-
    \n+\n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,41 +1,11 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-arraylist.hh File Reference\n-Implements a random-access container that can efficiently change size (similar\n-to std::deque) _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \"_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh\"\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+parmetis.hh File Reference\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\b _\bT_\b,_\b _\bN_\b,_\b _\bA_\b _\b>\n-\u00a0 A dynamically growing random access list. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bN_\b,_\b _\bA_\b _\b>\n-\u00a0 A random access iterator for the _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt class. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bN_\b,_\b _\bA_\b _\b>\n-\u00a0 A constant random access iterator for the _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt class.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0 _\bD_\bu_\bn_\be namespace.\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implements a random-access container that can efficiently change size (similar\n-to std::deque)\n-This file implements the class ArrayList which behaves like dynamically growing\n-array together with the class ArrayListIterator which is random access iterator\n-as needed by the stl for sorting and other algorithms.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00062_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00062_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: arraylist.hh Source File\n+dune-common: parmetis.hh Source File\n \n \n \n \n \n \n \n@@ -70,627 +70,65 @@\n \n \n \n \n \n \n \n
    \n-
    arraylist.hh
    \n+
    parmetis.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5
    \n-
    6#ifndef DUNE_COMMON_ARRAYLIST_HH
    \n-
    7#define DUNE_COMMON_ARRAYLIST_HH
    \n-
    8
    \n-
    9#include <array>
    \n-
    10#include <cassert>
    \n-
    11#include <memory>
    \n-
    12#include <vector>
    \n-
    13#include "iteratorfacades.hh"
    \n-
    14
    \n-
    15namespace Dune
    \n-
    16{
    \n-
    17 // forward declaration
    \n-
    18 template<class T, int N, class A>
    \n-
    19 class ArrayListIterator;
    \n+
    5#ifndef DUNE_PARMETIS_HH
    \n+
    6#define DUNE_PARMETIS_HH
    \n+
    7
    \n+
    15#if HAVE_PARMETIS
    \n+
    16
    \n+
    17#if HAVE_MPI
    \n+
    18#include <mpi.h>
    \n+
    19#endif
    \n
    20
    \n-
    21 template<class T, int N, class A>
    \n-
    22 class ConstArrayListIterator;
    \n-
    23
    \n-
    60 template<class T, int N=100, class A=std::allocator<T> >
    \n-
    \n-\n-
    62 {
    \n-
    63 public:
    \n-
    69 typedef T MemberType;
    \n-
    70
    \n-
    74 typedef T value_type;
    \n-
    75
    \n-
    79 typedef T& reference;
    \n-
    80
    \n-
    84 typedef const T& const_reference;
    \n-
    85
    \n-
    89 typedef T* pointer;
    \n-
    90
    \n-
    94 typedef const T* const_pointer;
    \n-
    95
    \n-
    100 constexpr static int chunkSize_ = (N > 0) ? N : 1;
    \n-
    101
    \n-\n-
    106
    \n-\n-
    111
    \n-
    115 typedef std::size_t size_type;
    \n-
    116
    \n-
    120 typedef std::ptrdiff_t difference_type;
    \n-
    121
    \n-
    \n-\n-
    127
    \n-
    \n-\n-
    134
    \n-
    \n-\n-
    140
    \n-
    \n-\n-
    146
    \n-
    \n-
    151 inline void push_back(const_reference entry);
    \n-
    152
    \n-
    \n-\n-
    159
    \n-
    \n-\n-
    166
    \n-
    \n-
    171 inline size_type size() const;
    \n-
    172
    \n-
    \n-
    180 inline void purge();
    \n-
    181
    \n-
    \n-
    185 inline void clear();
    \n-
    \n-\n-
    190
    \n-
    191 private:
    \n-
    192
    \n-
    196 using SmartPointerAllocator = typename std::allocator_traits<A>::template rebind_alloc< std::shared_ptr< std::array<MemberType,chunkSize_> > >;
    \n-
    197
    \n-
    201 using ArrayAllocator = typename std::allocator_traits<A>::template rebind_alloc< std::array<MemberType,chunkSize_> >;
    \n-
    202
    \n-
    206 friend class ArrayListIterator<T,N,A>;
    \n-
    207 friend class ConstArrayListIterator<T,N,A>;
    \n-
    208
    \n-
    210 std::vector<std::shared_ptr<std::array<MemberType,chunkSize_> >,
    \n-
    211 SmartPointerAllocator> chunks_;
    \n-
    220 size_type capacity_;
    \n-
    222 size_type size_;
    \n-
    224 size_type start_;
    \n-
    233 inline reference elementAt(size_type i);
    \n-
    234
    \n-
    243 inline const_reference elementAt(size_type i) const;
    \n-
    244 };
    \n-
    245
    \n-
    246
    \n-
    250 template<class T, int N, class A>
    \n-
    \n-
    251 class ArrayListIterator : public RandomAccessIteratorFacade<ArrayListIterator<T,N,A>,
    \n-
    252 typename A::value_type,
    \n-
    253 typename A::value_type &,
    \n-
    254 typename A::difference_type>
    \n-
    255 {
    \n-
    256
    \n-
    257 friend class ArrayList<T,N,A>;
    \n-
    258 friend class ConstArrayListIterator<T,N,A>;
    \n-
    259 public:
    \n-
    263 typedef typename A::value_type MemberType;
    \n-
    264
    \n-
    265 typedef typename A::difference_type difference_type;
    \n-
    266
    \n-
    267 typedef typename A::size_type size_type;
    \n-
    268
    \n-
    269 using reference = typename A::value_type &;
    \n-
    270
    \n-
    271 using const_reference = typename A::value_type const&;
    \n-
    272
    \n-
    278 constexpr static int chunkSize_ = (N > 0) ? N : 1;
    \n-
    279
    \n-
    280
    \n-
    286 inline bool equals(const ArrayListIterator<MemberType,N,A>& other) const;
    \n-
    287
    \n-
    293 inline bool equals(const ConstArrayListIterator<MemberType,N,A>& other) const;
    \n-
    294
    \n-
    298 inline void increment();
    \n-
    299
    \n-
    303 inline void decrement();
    \n-
    304
    \n-
    309 inline reference elementAt(size_type i) const;
    \n-
    310
    \n-
    315 inline reference dereference() const;
    \n-
    316
    \n-
    326 inline void eraseToHere();
    \n-
    327
    \n-
    329 inline size_type position(){return position_;}
    \n-
    330
    \n-
    332 inline void advance(difference_type n);
    \n-
    333
    \n-
    335 inline difference_type distanceTo(const ArrayListIterator<T,N,A>& other) const;
    \n-
    336
    \n-
    \n-
    338 inline ArrayListIterator() : position_(0), list_(nullptr)
    \n-
    339 {}
    \n-
    \n-
    340
    \n-
    341 private:
    \n-\n-
    348
    \n-
    352 size_type position_;
    \n-\n-
    357 };
    \n-
    \n-
    358
    \n-
    362 template<class T, int N, class A>
    \n-
    \n-\n-
    364 : public RandomAccessIteratorFacade<ConstArrayListIterator<T,N,A>,
    \n-
    365 const typename A::value_type,
    \n-
    366 typename A::value_type const&,
    \n-
    367 typename A::difference_type>
    \n-
    368 {
    \n-
    369
    \n-
    370 friend class ArrayList<T,N,A>;
    \n-
    371 friend class ArrayListIterator<T,N,A>;
    \n-
    372
    \n-
    373 public:
    \n-
    377 typedef typename A::value_type MemberType;
    \n-
    378
    \n-
    379 typedef typename A::difference_type difference_type;
    \n-
    380
    \n-
    381 typedef typename A::size_type size_type;
    \n-
    382
    \n-
    383 using reference = typename A::value_type const&;
    \n-
    384
    \n-
    385 using const_reference = typename A::value_type const&;
    \n-
    386
    \n-
    392 constexpr static int chunkSize_ = (N > 0) ? N : 1;
    \n-
    393
    \n-
    \n-
    399 inline bool equals(const ConstArrayListIterator<MemberType,N,A>& other) const;
    \n-
    400
    \n-
    \n-
    404 inline void increment();
    \n-
    405
    \n-
    \n-
    409 inline void decrement();
    \n-
    410
    \n-
    \n-
    412 inline void advance(difference_type n);
    \n-
    413
    \n-
    \n-\n-
    416
    \n-
    \n-\n-
    422
    \n-
    \n-
    427 inline reference dereference() const;
    \n-
    428
    \n-
    \n-
    429 inline ConstArrayListIterator() : position_(0), list_(nullptr)
    \n-
    430 {}
    \n-
    \n-
    431
    \n-
    \n-\n-
    433
    \n-
    434 private:
    \n-
    435
    \n-
    441 inline ConstArrayListIterator(const ArrayList<T,N,A>& arrayList, size_type position);
    \n-
    442
    \n-
    446 size_type position_;
    \n-
    450 const ArrayList<T,N,A>* list_;
    \n-
    451 };
    \n-
    452
    \n-
    453
    \n-
    454 template<class T, int N, class A>
    \n-
    \n-\n-
    456 : capacity_(0), size_(0), start_(0)
    \n-
    457 {
    \n-
    458 chunks_.reserve(100);
    \n-
    459 }
    \n-
    \n-
    460
    \n-
    461 template<class T, int N, class A>
    \n-
    \n-\n-
    463 capacity_=0;
    \n-
    464 size_=0;
    \n-
    465 start_=0;
    \n-
    466 chunks_.clear();
    \n-
    467 }
    \n-
    \n-
    468
    \n-
    469 template<class T, int N, class A>
    \n-
    \n-\n-
    471 {
    \n-
    472 return size_;
    \n-
    473 }
    \n-
    \n-
    474
    \n-
    475 template<class T, int N, class A>
    \n-
    \n-\n-
    477 {
    \n-
    478 size_t index=start_+size_;
    \n-
    479 if(index==capacity_)
    \n-
    480 {
    \n-
    481 chunks_.push_back(std::make_shared<std::array<MemberType,chunkSize_> >());
    \n-
    482 capacity_ += chunkSize_;
    \n-
    483 }
    \n-
    484 elementAt(index)=entry;
    \n-
    485 ++size_;
    \n-
    486 }
    \n-
    \n-
    487
    \n-
    488 template<class T, int N, class A>
    \n-
    \n-\n-
    490 {
    \n-
    491 return elementAt(start_+i);
    \n-
    492 }
    \n-
    \n-
    493
    \n-
    494
    \n-
    495 template<class T, int N, class A>
    \n-
    \n-\n-
    497 {
    \n-
    498 return elementAt(start_+i);
    \n-
    499 }
    \n-
    \n-
    500
    \n-
    501 template<class T, int N, class A>
    \n-\n-
    503 {
    \n-
    504 return chunks_[i/chunkSize_]->operator[](i%chunkSize_);
    \n-
    505 }
    \n-
    506
    \n-
    507
    \n-
    508 template<class T, int N, class A>
    \n-
    509 typename ArrayList<T,N,A>::const_reference ArrayList<T,N,A>::elementAt(size_type i) const
    \n-
    510 {
    \n-
    511 return chunks_[i/chunkSize_]->operator[](i%chunkSize_);
    \n-
    512 }
    \n-
    513
    \n-
    514 template<class T, int N, class A>
    \n-
    \n-\n-
    516 {
    \n-
    517 return ArrayListIterator<T,N,A>(*this, start_);
    \n-
    518 }
    \n-
    \n-
    519
    \n-
    520 template<class T, int N, class A>
    \n-
    \n-\n-
    522 {
    \n-
    523 return ConstArrayListIterator<T,N,A>(*this, start_);
    \n-
    524 }
    \n-
    \n-
    525
    \n-
    526 template<class T, int N, class A>
    \n-
    \n-\n-
    528 {
    \n-
    529 return ArrayListIterator<T,N,A>(*this, start_+size_);
    \n-
    530 }
    \n-
    \n-
    531
    \n-
    532 template<class T, int N, class A>
    \n-
    \n-\n-
    534 {
    \n-
    535 return ConstArrayListIterator<T,N,A>(*this, start_+size_);
    \n-
    536 }
    \n-
    \n-
    537
    \n-
    538 template<class T, int N, class A>
    \n-
    \n-\n-
    540 {
    \n-
    541 // Distance to copy to the left.
    \n-
    542 size_t distance = start_/chunkSize_;
    \n-
    543 if(distance>0) {
    \n-
    544 // Number of chunks with entries in it;
    \n-
    545 size_t chunks = ((start_%chunkSize_ + size_)/chunkSize_ );
    \n-
    546
    \n-
    547 // Copy chunks to the left.
    \n-
    548 std::copy(chunks_.begin()+distance,
    \n-
    549 chunks_.begin()+(distance+chunks), chunks_.begin());
    \n-
    550
    \n-
    551 // Calculate new parameters
    \n-
    552 start_ = start_ % chunkSize_;
    \n-
    553 //capacity += distance * chunkSize_;
    \n-
    554 }
    \n-
    555 }
    \n-
    \n-
    556
    \n-
    557 template<class T, int N, class A>
    \n-
    \n-\n-
    559 {
    \n-
    560 position_+=i;
    \n-
    561 }
    \n-
    \n-
    562
    \n-
    563 template<class T, int N, class A>
    \n-
    \n-\n-
    565 {
    \n-
    566 position_+=i;
    \n-
    567 }
    \n-
    \n-
    568
    \n-
    569
    \n-
    570 template<class T, int N, class A>
    \n-
    \n-\n-
    572 {
    \n-
    573 // Makes only sense if we reference a common list
    \n-
    574 assert(list_==(other.list_));
    \n-
    575 return position_==other.position_ ;
    \n-
    576 }
    \n-
    \n-
    577
    \n-
    578
    \n-
    579 template<class T, int N, class A>
    \n-
    \n-\n-
    581 {
    \n-
    582 // Makes only sense if we reference a common list
    \n-
    583 assert(list_==(other.list_));
    \n-
    584 return position_==other.position_ ;
    \n-
    585 }
    \n-
    \n-
    586
    \n-
    587
    \n-
    588 template<class T, int N, class A>
    \n-
    \n-\n-
    590 {
    \n-
    591 // Makes only sense if we reference a common list
    \n-
    592 assert(list_==(other.list_));
    \n-
    593 return position_==other.position_ ;
    \n-
    594 }
    \n-
    \n-
    595
    \n-
    596 template<class T, int N, class A>
    \n-
    \n-\n-
    598 {
    \n-
    599 ++position_;
    \n-
    600 }
    \n-
    \n-
    601
    \n-
    602 template<class T, int N, class A>
    \n-
    \n-\n-
    604 {
    \n-
    605 ++position_;
    \n-
    606 }
    \n-
    \n-
    607
    \n-
    608 template<class T, int N, class A>
    \n-
    \n-\n-
    610 {
    \n-
    611 --position_;
    \n-
    612 }
    \n-
    \n-
    613
    \n-
    614 template<class T, int N, class A>
    \n-
    \n-\n-
    616 {
    \n-
    617 --position_;
    \n-
    618 }
    \n-
    \n-
    619
    \n-
    620 template<class T, int N, class A>
    \n-
    \n-\n-
    622 {
    \n-
    623 return list_->elementAt(i+position_);
    \n-
    624 }
    \n-
    \n-
    625
    \n-
    626 template<class T, int N, class A>
    \n-
    \n-\n-
    628 {
    \n-
    629 return list_->elementAt(i+position_);
    \n-
    630 }
    \n-
    \n-
    631
    \n-
    632 template<class T, int N, class A>
    \n-
    \n-\n-
    634 {
    \n-
    635 return list_->elementAt(position_);
    \n-
    636 }
    \n-
    \n-
    637
    \n-
    638 template<class T, int N, class A>
    \n-
    \n-\n-
    640 {
    \n-
    641 return list_->elementAt(position_);
    \n-
    642 }
    \n-
    \n-
    643
    \n-
    644 template<class T, int N, class A>
    \n-
    \n-\n-
    646 {
    \n-
    647 // Makes only sense if we reference a common list
    \n-
    648 assert(list_==(other.list_));
    \n-
    649 return other.position_ - position_;
    \n-
    650 }
    \n-
    \n-
    651
    \n-
    652 template<class T, int N, class A>
    \n-
    \n-\n-
    654 {
    \n-
    655 // Makes only sense if we reference a common list
    \n-
    656 assert(list_==(other.list_));
    \n-
    657 return other.position_ - position_;
    \n-
    658 }
    \n-
    \n-
    659
    \n-
    660 template<class T, int N, class A>
    \n-
    \n-\n-
    662 {
    \n-
    663 list_->size_ -= ++position_ - list_->start_;
    \n-
    664 // chunk number of the new position.
    \n-
    665 size_t posChunkStart = position_ / chunkSize_;
    \n-
    666 // number of chunks to deallocate
    \n-
    667 size_t chunks = (position_ - list_->start_ + list_->start_ % chunkSize_)
    \n-
    668 / chunkSize_;
    \n-
    669 list_->start_ = position_;
    \n-
    670
    \n-
    671 // Deallocate memory not needed any more.
    \n-
    672 for(size_t chunk=0; chunk<chunks; chunk++) {
    \n-
    673 --posChunkStart;
    \n-
    674 list_->chunks_[posChunkStart].reset();
    \n-
    675 }
    \n-
    676
    \n-
    677 // Capacity stays the same as the chunks before us
    \n-
    678 // are still there. They null pointers.
    \n-
    679 assert(list_->start_+list_->size_<=list_->capacity_);
    \n-
    680 }
    \n-
    \n-
    681
    \n-
    682 template<class T, int N, class A>
    \n-\n-
    684 : position_(position), list_(&arrayList)
    \n-
    685 {}
    \n-
    686
    \n-
    687
    \n-
    688 template<class T, int N, class A>
    \n-
    689 ConstArrayListIterator<T,N,A>::ConstArrayListIterator(const ArrayList<T,N,A>& arrayList,
    \n-
    690 size_type position)
    \n-
    691 : position_(position), list_(&arrayList)
    \n-
    692 {}
    \n-
    693
    \n-
    694 template<class T, int N, class A>
    \n-
    \n-\n-
    696 : position_(other.position_), list_(other.list_)
    \n-
    697 {}
    \n-
    \n-
    \n-
    698
    \n-
    699
    \n-
    701}
    \n-
    702#endif
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    This file implements iterator facade classes for writing stl conformant iterators.
    \n-
    reference operator[](size_type i)
    Get the element at specific position.
    Definition arraylist.hh:489
    \n-
    iterator begin()
    Get an iterator that is positioned at the first element.
    Definition arraylist.hh:515
    \n-
    bool equals(const ArrayListIterator< MemberType, N, A > &other) const
    Compares two iterators.
    Definition arraylist.hh:571
    \n-
    void increment()
    Increment the iterator.
    Definition arraylist.hh:597
    \n-
    size_type size() const
    Get the number of elements in the list.
    Definition arraylist.hh:470
    \n-
    ConstArrayListIterator(const ArrayListIterator< T, N, A > &other)
    Definition arraylist.hh:695
    \n-
    void purge()
    Purge the list.
    Definition arraylist.hh:539
    \n-
    void decrement()
    decrement the iterator.
    Definition arraylist.hh:609
    \n-
    void eraseToHere()
    Erase all entries before the current position and the one at the current position.
    Definition arraylist.hh:661
    \n-
    ArrayList()
    Constructs an Array list with one chunk.
    Definition arraylist.hh:455
    \n-
    const_iterator begin() const
    Get a random access iterator that is positioned at the first element.
    Definition arraylist.hh:521
    \n-
    void increment()
    Increment the iterator.
    Definition arraylist.hh:603
    \n-
    reference elementAt(size_type i) const
    Get the value of the list at an arbitrary position.
    Definition arraylist.hh:627
    \n-
    iterator end()
    Get a random access iterator positioned after the last element.
    Definition arraylist.hh:527
    \n-
    reference dereference() const
    Access the element at the current position.
    Definition arraylist.hh:639
    \n-
    const_reference operator[](size_type i) const
    Get the element at specific position.
    Definition arraylist.hh:496
    \n-
    void decrement()
    decrement the iterator.
    Definition arraylist.hh:615
    \n-
    void advance(difference_type n)
    Definition arraylist.hh:564
    \n-
    const_iterator end() const
    Get a random access iterator positioned after the last element.
    Definition arraylist.hh:533
    \n-
    void clear()
    Delete all entries from the list.
    Definition arraylist.hh:462
    \n-
    reference elementAt(size_type i) const
    Get the value of the list at an arbitrary position.
    Definition arraylist.hh:621
    \n-
    bool equals(const ConstArrayListIterator< MemberType, N, A > &other) const
    Compares to iterators.
    Definition arraylist.hh:589
    \n-
    void advance(difference_type n)
    Definition arraylist.hh:558
    \n-
    difference_type distanceTo(const ConstArrayListIterator< T, N, A > &other) const
    Definition arraylist.hh:653
    \n-
    reference dereference() const
    Access the element at the current position.
    Definition arraylist.hh:633
    \n-
    void push_back(const_reference entry)
    Append an entry to the list.
    Definition arraylist.hh:476
    \n-
    difference_type distanceTo(const ArrayListIterator< T, N, A > &other) const
    Definition arraylist.hh:645
    \n-
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    A random access iterator for the Dune::ArrayList class.
    Definition arraylist.hh:255
    \n-
    size_type position()
    Definition arraylist.hh:329
    \n-
    A::value_type MemberType
    The member type.
    Definition arraylist.hh:263
    \n-
    ArrayListIterator()
    Standard constructor.
    Definition arraylist.hh:338
    \n-
    A::difference_type difference_type
    Definition arraylist.hh:265
    \n-
    static constexpr int chunkSize_
    The number of elements in one chunk of the list.
    Definition arraylist.hh:278
    \n-
    A::size_type size_type
    Definition arraylist.hh:267
    \n-
    typename A::value_type const & const_reference
    Definition arraylist.hh:271
    \n-
    typename A::value_type & reference
    Definition arraylist.hh:269
    \n-
    A constant random access iterator for the Dune::ArrayList class.
    Definition arraylist.hh:368
    \n-
    static constexpr int chunkSize_
    The number of elements in one chunk of the list.
    Definition arraylist.hh:392
    \n-
    ConstArrayListIterator()
    Definition arraylist.hh:429
    \n-
    typename A::value_type const & reference
    Definition arraylist.hh:383
    \n-
    A::value_type MemberType
    The member type.
    Definition arraylist.hh:377
    \n-
    A::difference_type difference_type
    Definition arraylist.hh:379
    \n-
    typename A::value_type const & const_reference
    Definition arraylist.hh:385
    \n-
    A::size_type size_type
    Definition arraylist.hh:381
    \n-
    A dynamically growing random access list.
    Definition arraylist.hh:62
    \n-
    T value_type
    Value type for stl compliance.
    Definition arraylist.hh:74
    \n-
    static constexpr int chunkSize_
    The number of elements in one chunk of the list. This has to be at least one. The default is 100.
    Definition arraylist.hh:100
    \n-
    const T * const_pointer
    The type of a const pointer to the type we store.
    Definition arraylist.hh:94
    \n-
    ArrayListIterator< MemberType, N, A > iterator
    A random access iterator.
    Definition arraylist.hh:105
    \n-
    const T & const_reference
    The type of a const reference to the type we store.
    Definition arraylist.hh:84
    \n-
    T & reference
    The type of a reference to the type we store.
    Definition arraylist.hh:79
    \n-
    std::size_t size_type
    The size type.
    Definition arraylist.hh:115
    \n-
    T MemberType
    The member type that is stored.
    Definition arraylist.hh:69
    \n-
    T * pointer
    The type of a pointer to the type we store.
    Definition arraylist.hh:89
    \n-
    ConstArrayListIterator< MemberType, N, A > const_iterator
    A constant random access iterator.
    Definition arraylist.hh:110
    \n-
    std::ptrdiff_t difference_type
    The difference type.
    Definition arraylist.hh:120
    \n-
    Base class for stl conformant forward iterators.
    Definition iteratorfacades.hh:435
    \n+
    21#if HAVE_PTSCOTCH_PARMETIS
    \n+
    22extern "C" {
    \n+
    23 #include <ptscotch.h>
    \n+
    24}
    \n+
    25#endif
    \n+
    26
    \n+
    27extern "C" {
    \n+
    28 #include <parmetis.h>
    \n+
    29}
    \n+
    30
    \n+
    31namespace Dune::ParMetis {
    \n+
    32
    \n+
    33#if defined(REALTYPEWIDTH)
    \n+
    34 using real_t = ::real_t;
    \n+
    35#else
    \n+
    36 using real_t = float;
    \n+
    37#endif
    \n+
    38
    \n+
    39#if defined(IDXTYPEWIDTH)
    \n+
    40 using idx_t = ::idx_t;
    \n+
    41#elif HAVE_PTSCOTCH_PARMETIS
    \n+
    42 using idx_t = SCOTCH_Num;
    \n+
    43#else
    \n+
    44 using idx_t = int;
    \n+
    45#endif
    \n+
    46
    \n+
    47} // end namespace Dune::ParMetis
    \n+
    48
    \n+
    49#endif // HAVE_PARMETIS
    \n+
    50#endif // DUNE_PARMETIS_HH
    \n+
    typename FieldTraits< Type >::real_type real_t
    Convenient access to FieldTraits<Type>::real_type.
    Definition typetraits.hh:301
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,698 +1,59 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-arraylist.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+parmetis.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5\n-6#ifndef DUNE_COMMON_ARRAYLIST_HH\n-7#define DUNE_COMMON_ARRAYLIST_HH\n-8\n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \"_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh\"\n-14\n-15namespace _\bD_\bu_\bn_\be\n-16{\n-17 // forward declaration\n-18 template\n-19 class ArrayListIterator;\n+5#ifndef DUNE_PARMETIS_HH\n+6#define DUNE_PARMETIS_HH\n+7\n+15#if HAVE_PARMETIS\n+16\n+17#if HAVE_MPI\n+18#include \n+19#endif\n 20\n-21 template\n-22 class ConstArrayListIterator;\n-23\n-60 template >\n-_\b6_\b1 class _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt\n-62 {\n-63 public:\n-_\b6_\b9 typedef T _\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be;\n-70\n-_\b7_\b4 typedef T _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n-75\n-_\b7_\b9 typedef T& _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-80\n-_\b8_\b4 typedef const T& _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-85\n-_\b8_\b9 typedef T* _\bp_\bo_\bi_\bn_\bt_\be_\br;\n-90\n-_\b9_\b4 typedef const T* _\bc_\bo_\bn_\bs_\bt_\b__\bp_\bo_\bi_\bn_\bt_\be_\br;\n-95\n-_\b1_\b0_\b0 constexpr static int _\bc_\bh_\bu_\bn_\bk_\bS_\bi_\bz_\be_\b_ = (N > 0) ? N : 1;\n-101\n-_\b1_\b0_\b5 typedef _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b> _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-106\n-_\b1_\b1_\b0 typedef _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b> _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-111\n-_\b1_\b1_\b5 typedef std::size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-116\n-_\b1_\b2_\b0 typedef std::ptrdiff_t _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be;\n-121\n-_\b1_\b2_\b6 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn();\n-127\n-_\b1_\b3_\b3 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-134\n-_\b1_\b3_\b9 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd();\n-140\n-_\b1_\b4_\b5 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-146\n-_\b1_\b5_\b1 inline void _\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk(_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be entry);\n-152\n-_\b1_\b5_\b8 inline _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i);\n-159\n-_\b1_\b6_\b5 inline _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const;\n-166\n-_\b1_\b7_\b1 inline _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const;\n-172\n-_\b1_\b8_\b0 inline void _\bp_\bu_\br_\bg_\be();\n-181\n-_\b1_\b8_\b5 inline void _\bc_\bl_\be_\ba_\br();\n-_\b1_\b8_\b9 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt();\n-190\n-191 private:\n-192\n-196 using SmartPointerAllocator = typename std::allocator_traits::template\n-rebind_alloc< std::shared_ptr< std::array > >;\n-197\n-201 using ArrayAllocator = typename std::allocator_traits::template\n-rebind_alloc< std::array >;\n-202\n-206 friend class _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-207 friend class _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-208\n-210 std::vector >,\n-211 SmartPointerAllocator> chunks_;\n-220 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be capacity_;\n-222 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_;\n-224 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be start_;\n-233 inline _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be elementAt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i);\n-234\n-_\b2_\b4_\b3 inline _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be elementAt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const;\n-244 };\n-245\n-246\n-250 template\n-_\b2_\b5_\b1 class _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br : public\n-_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be,\n-252 typename A::value_type,\n-253 typename A::value_type &,\n-254 typename A::difference_type>\n-255 {\n-256\n-257 friend class _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt;\n-258 friend class _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-259 public:\n-_\b2_\b6_\b3 typedef typename A::value_type _\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be;\n-264\n-_\b2_\b6_\b5 typedef typename A::difference_type _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be;\n-266\n-_\b2_\b6_\b7 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-268\n-_\b2_\b6_\b9 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = typename A::value_type &;\n-270\n-_\b2_\b7_\b1 using _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = typename A::value_type const&;\n-272\n-_\b2_\b7_\b8 constexpr static int _\bc_\bh_\bu_\bn_\bk_\bS_\bi_\bz_\be_\b_ = (N > 0) ? N : 1;\n-279\n-280\n-286 inline bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b>& other) const;\n-287\n-293 inline bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b>& other)\n-const;\n-294\n-298 inline void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-299\n-303 inline void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt();\n-304\n-309 inline _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const;\n-310\n-315 inline _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const;\n-316\n-326 inline void _\be_\br_\ba_\bs_\be_\bT_\bo_\bH_\be_\br_\be();\n-327\n-_\b3_\b2_\b9 inline _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(){return position_;}\n-330\n-332 inline void _\ba_\bd_\bv_\ba_\bn_\bc_\be(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n);\n-333\n-335 inline _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>& other)\n-const;\n-336\n-_\b3_\b3_\b8 inline _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br() : position_(0), list_(nullptr)\n-339 {}\n-340\n-341 private:\n-347 inline _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>& arrayList, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn);\n-348\n-352 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be position_;\n-_\b3_\b5_\b6 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>* list_;\n-357 };\n-358\n-362 template\n-_\b3_\b6_\b3 class _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-364 : public _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be,\n-365 const typename A::value_type,\n-366 typename A::value_type const&,\n-367 typename A::difference_type>\n-368 {\n-369\n-370 friend class _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt;\n-371 friend class _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-372\n-373 public:\n-_\b3_\b7_\b7 typedef typename A::value_type _\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be;\n-378\n-_\b3_\b7_\b9 typedef typename A::difference_type _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be;\n-380\n-_\b3_\b8_\b1 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-382\n-_\b3_\b8_\b3 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = typename A::value_type const&;\n-384\n-_\b3_\b8_\b5 using _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = typename A::value_type const&;\n-386\n-_\b3_\b9_\b2 constexpr static int _\bc_\bh_\bu_\bn_\bk_\bS_\bi_\bz_\be_\b_ = (N > 0) ? N : 1;\n-393\n-_\b3_\b9_\b9 inline bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b>& other)\n-const;\n-400\n-_\b4_\b0_\b4 inline void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-405\n-_\b4_\b0_\b9 inline void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt();\n-410\n-_\b4_\b1_\b2 inline void _\ba_\bd_\bv_\ba_\bn_\bc_\be(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be n);\n-413\n-_\b4_\b1_\b5 inline _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>&\n-other) const;\n-416\n-_\b4_\b2_\b1 inline _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const;\n-422\n-_\b4_\b2_\b7 inline _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const;\n-428\n-_\b4_\b2_\b9 inline _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br() : position_(0), list_(nullptr)\n-430 {}\n-431\n-_\b4_\b3_\b2 inline _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>& other);\n-433\n-434 private:\n-435\n-441 inline _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>& arrayList, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-position);\n-442\n-446 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be position_;\n-450 const _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>* list_;\n-451 };\n-452\n-453\n-454 template\n-_\b4_\b5_\b5 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt()\n-456 : capacity_(0), size_(0), start_(0)\n-457 {\n-458 chunks_.reserve(100);\n-459 }\n-460\n-461 template\n-_\b4_\b6_\b2 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bc_\bl_\be_\ba_\br(){\n-463 capacity_=0;\n-464 size_=0;\n-465 start_=0;\n-466 chunks_.clear();\n-467 }\n-468\n-469 template\n-_\b4_\b7_\b0 size_t _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bs_\bi_\bz_\be() const\n-471 {\n-472 return size_;\n-473 }\n-474\n-475 template\n-_\b4_\b7_\b6 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk(_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be entry)\n-477 {\n-478 size_t index=start_+size_;\n-479 if(index==capacity_)\n-480 {\n-481 chunks_.push_back(std::make_shared >());\n-482 capacity_ += chunkSize_;\n-483 }\n-484 elementAt(index)=entry;\n-485 ++size_;\n-486 }\n-487\n-488 template\n-_\b4_\b8_\b9 typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-i)\n-490 {\n-491 return elementAt(start_+i);\n-492 }\n-493\n-494\n-495 template\n-_\b4_\b9_\b6 typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-497 {\n-498 return elementAt(start_+i);\n-499 }\n-500\n-501 template\n-502 typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(size_type\n-i)\n-503 {\n-504 return chunks_[i/chunkSize_]->operator[](i%chunkSize_);\n-505 }\n-506\n-507\n-508 template\n-509 typename ArrayList::const_reference ArrayList::elementAt\n-(size_type i) const\n-510 {\n-511 return chunks_[i/chunkSize_]->operator[](i%chunkSize_);\n-512 }\n-513\n-514 template\n-_\b5_\b1_\b5 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b> _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n-516 {\n-517 return _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>(*this, start_);\n-518 }\n-519\n-520 template\n-_\b5_\b2_\b1 _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b> _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n-522 {\n-523 return _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>(*this, start_);\n-524 }\n-525\n-526 template\n-_\b5_\b2_\b7 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b> _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd()\n-528 {\n-529 return _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>(*this, start_+size_);\n-530 }\n-531\n-532 template\n-_\b5_\b3_\b3 _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b> _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd() const\n-534 {\n-535 return _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>(*this, start_+size_);\n-536 }\n-537\n-538 template\n-_\b5_\b3_\b9 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bp_\bu_\br_\bg_\be()\n-540 {\n-541 // Distance to copy to the left.\n-542 size_t distance = start_/chunkSize_;\n-543 if(distance>0) {\n-544 // Number of chunks with entries in it;\n-545 size_t chunks = ((start_%chunkSize_ + size_)/chunkSize_ );\n-546\n-547 // Copy chunks to the left.\n-548 std::copy(chunks_.begin()+distance,\n-549 chunks_.begin()+(distance+chunks), chunks_.begin());\n-550\n-551 // Calculate new parameters\n-552 start_ = start_ % chunkSize_;\n-553 //capacity += distance * chunkSize_;\n-554 }\n-555 }\n-556\n-557 template\n-_\b5_\b5_\b8 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be i)\n-559 {\n-560 position_+=i;\n-561 }\n-562\n-563 template\n-_\b5_\b6_\b4 void _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be i)\n-565 {\n-566 position_+=i;\n-567 }\n-568\n-569\n-570 template\n-_\b5_\b7_\b1 bool _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs(const\n-_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b>& other) const\n-572 {\n-573 // Makes only sense if we reference a common list\n-574 assert(list_==(other.list_));\n-575 return position_==other.position_ ;\n-576 }\n-577\n-578\n-579 template\n-_\b5_\b8_\b0 bool _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs(const\n-_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b>& other) const\n-581 {\n-582 // Makes only sense if we reference a common list\n-583 assert(list_==(other.list_));\n-584 return position_==other.position_ ;\n-585 }\n-586\n-587\n-588 template\n-_\b5_\b8_\b9 bool _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs(const\n-_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b,_\bN_\b,_\bA_\b>& other) const\n-590 {\n-591 // Makes only sense if we reference a common list\n-592 assert(list_==(other.list_));\n-593 return position_==other.position_ ;\n-594 }\n-595\n-596 template\n-_\b5_\b9_\b7 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n-598 {\n-599 ++position_;\n-600 }\n-601\n-602 template\n-_\b6_\b0_\b3 void _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n-604 {\n-605 ++position_;\n-606 }\n-607\n-608 template\n-_\b6_\b0_\b9 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n-610 {\n-611 --position_;\n-612 }\n-613\n-614 template\n-_\b6_\b1_\b5 void _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n-616 {\n-617 --position_;\n-618 }\n-619\n-620 template\n-_\b6_\b2_\b1 typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:\n-_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-622 {\n-623 return list_->elementAt(i+position_);\n-624 }\n-625\n-626 template\n-_\b6_\b2_\b7 typename _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-628 {\n-629 return list_->elementAt(i+position_);\n-630 }\n-631\n-632 template\n-_\b6_\b3_\b3 typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:\n-_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const\n-634 {\n-635 return list_->elementAt(position_);\n-636 }\n-637\n-638 template\n-_\b6_\b3_\b9 typename _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const\n-640 {\n-641 return list_->elementAt(position_);\n-642 }\n-643\n-644 template\n-_\b6_\b4_\b5 typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n-_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>& other)\n-const\n-646 {\n-647 // Makes only sense if we reference a common list\n-648 assert(list_==(other.list_));\n-649 return other.position_ - position_;\n-650 }\n-651\n-652 template\n-_\b6_\b5_\b3 typename _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n-_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>&\n-other) const\n-654 {\n-655 // Makes only sense if we reference a common list\n-656 assert(list_==(other.list_));\n-657 return other.position_ - position_;\n-658 }\n-659\n-660 template\n-_\b6_\b6_\b1 void _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\be_\br_\ba_\bs_\be_\bT_\bo_\bH_\be_\br_\be()\n-662 {\n-663 list_->size_ -= ++position_ - list_->start_;\n-664 // chunk number of the new position.\n-665 size_t posChunkStart = position_ / chunkSize_;\n-666 // number of chunks to deallocate\n-667 size_t chunks = (position_ - list_->start_ + list_->start_ % chunkSize_)\n-668 / chunkSize_;\n-669 list_->start_ = position_;\n-670\n-671 // Deallocate memory not needed any more.\n-672 for(size_t chunk=0; chunkchunks_[posChunkStart].reset();\n-675 }\n-676\n-677 // Capacity stays the same as the chunks before us\n-678 // are still there. They null pointers.\n-679 assert(list_->start_+list_->size_<=list_->capacity_);\n-680 }\n-681\n-682 template\n-683 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bT_\b,_\bN_\b,_\bA_\b>& arrayList,\n-size_type position)\n-684 : position_(position), list_(&arrayList)\n-685 {}\n-686\n-687\n-688 template\n-689 _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const\n-ArrayList& arrayList,\n-690 size_type position)\n-691 : position_(position), list_(&arrayList)\n-692 {}\n-693\n-694 template\n-_\b6_\b9_\b5 _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const\n-_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\b,_\bN_\b,_\bA_\b>& other)\n-696 : position_(other.position_), list_(other.list_)\n-697 {}\n-698\n-699\n-701}\n-702#endif\n-_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh\n-This file implements iterator facade classes for writing stl conformant\n-iterators.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-reference operator[](size_type i)\n-Get the element at specific position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:489\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-iterator begin()\n-Get an iterator that is positioned at the first element.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:515\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const ArrayListIterator< MemberType, N, A > &other) const\n-Compares two iterators.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-void increment()\n-Increment the iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:597\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-Get the number of elements in the list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:470\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstArrayListIterator(const ArrayListIterator< T, N, A > &other)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bp_\bu_\br_\bg_\be\n-void purge()\n-Purge the list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-void decrement()\n-decrement the iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:609\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\br_\ba_\bs_\be_\bT_\bo_\bH_\be_\br_\be\n-void eraseToHere()\n-Erase all entries before the current position and the one at the current\n-position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:661\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt\n-ArrayList()\n-Constructs an Array list with one chunk.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:455\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-const_iterator begin() const\n-Get a random access iterator that is positioned at the first element.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:521\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-void increment()\n-Increment the iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:603\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n-reference elementAt(size_type i) const\n-Get the value of the list at an arbitrary position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\be_\bn_\bd\n-iterator end()\n-Get a random access iterator positioned after the last element.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:527\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-reference dereference() const\n-Access the element at the current position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:639\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-const_reference operator[](size_type i) const\n-Get the element at specific position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:496\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-void decrement()\n-decrement the iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:615\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n-void advance(difference_type n)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:564\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-Get a random access iterator positioned after the last element.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:533\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bl_\be_\ba_\br\n-void clear()\n-Delete all entries from the list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:462\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n-reference elementAt(size_type i) const\n-Get the value of the list at an arbitrary position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:621\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const ConstArrayListIterator< MemberType, N, A > &other) const\n-Compares to iterators.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n-void advance(difference_type n)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:558\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-difference_type distanceTo(const ConstArrayListIterator< T, N, A > &other)\n-const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:653\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-reference dereference() const\n-Access the element at the current position.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:633\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk\n-void push_back(const_reference entry)\n-Append an entry to the list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:476\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-difference_type distanceTo(const ArrayListIterator< T, N, A > &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:645\n-_\bD_\bu_\bn_\be\n-Dune namespace.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-A random access iterator for the Dune::ArrayList class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:255\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-size_type position()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:329\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be\n-A::value_type MemberType\n-The member type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ArrayListIterator()\n-Standard constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:338\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n-A::difference_type difference_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bh_\bu_\bn_\bk_\bS_\bi_\bz_\be_\b_\n-static constexpr int chunkSize_\n-The number of elements in one chunk of the list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:278\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:267\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-typename A::value_type const & const_reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-typename A::value_type & reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:269\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-A constant random access iterator for the Dune::ArrayList class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:368\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bh_\bu_\bn_\bk_\bS_\bi_\bz_\be_\b_\n-static constexpr int chunkSize_\n-The number of elements in one chunk of the list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:392\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstArrayListIterator()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:429\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-typename A::value_type const & reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:383\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be\n-A::value_type MemberType\n-The member type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:377\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n-A::difference_type difference_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:379\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-typename A::value_type const & const_reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:385\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:381\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt\n-A dynamically growing random access list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:62\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n-T value_type\n-Value type for stl compliance.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bh_\bu_\bn_\bk_\bS_\bi_\bz_\be_\b_\n-static constexpr int chunkSize_\n-The number of elements in one chunk of the list. This has to be at least one.\n-The default is 100.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:100\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bp_\bo_\bi_\bn_\bt_\be_\br\n-const T * const_pointer\n-The type of a const pointer to the type we store.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-ArrayListIterator< MemberType, N, A > iterator\n-A random access iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const T & const_reference\n-The type of a const reference to the type we store.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-T & reference\n-The type of a reference to the type we store.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-std::size_t size_type\n-The size type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:115\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be\n-T MemberType\n-The member type that is stored.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:69\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n-T * pointer\n-The type of a pointer to the type we store.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstArrayListIterator< MemberType, N, A > const_iterator\n-A constant random access iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:110\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n-std::ptrdiff_t difference_type\n-The difference type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be\n-Base class for stl conformant forward iterators.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:435\n+21#if HAVE_PTSCOTCH_PARMETIS\n+22extern \"C\" {\n+23 #include \n+24}\n+25#endif\n+26\n+27extern \"C\" {\n+28 #include \n+29}\n+30\n+31namespace Dune::ParMetis {\n+32\n+33#if defined(REALTYPEWIDTH)\n+34 using _\br_\be_\ba_\bl_\b__\bt = ::real_t;\n+35#else\n+36 using _\br_\be_\ba_\bl_\b__\bt = float;\n+37#endif\n+38\n+39#if defined(IDXTYPEWIDTH)\n+40 using idx_t = ::idx_t;\n+41#elif HAVE_PTSCOTCH_PARMETIS\n+42 using idx_t = SCOTCH_Num;\n+43#else\n+44 using idx_t = int;\n+45#endif\n+46\n+47} // end namespace Dune::ParMetis\n+48\n+49#endif // HAVE_PARMETIS\n+50#endif // DUNE_PARMETIS_HH\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bl_\b__\bt\n+typename FieldTraits< Type >::real_type real_t\n+Convenient access to FieldTraits::real_type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:301\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00065.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00065.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: hybridutilities.hh File Reference\n+dune-common: selection.hh File Reference\n \n \n \n \n \n \n \n@@ -65,123 +65,54 @@\n \n \n \n \n \n \n \n
    \n \n-
    hybridutilities.hh File Reference
    \n+Namespaces
    \n+ \n \n
    \n-
    #include <tuple>
    \n-#include <utility>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/typeutilities.hh>
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/common/indices.hh>
    \n-#include <dune/common/rangeutilities.hh>
    \n+\n+

    Provides classes for selecting indices based on attribute flags. \n+More...

    \n+
    #include <cstdint>
    \n+#include <dune/common/iteratorfacades.hh>
    \n+#include <dune/common/parallel/indexset.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Hybrid::HybridFunctor< Functor >
     Adapter of a hybrid functor that maintains results hybrid. More...
    class  Dune::SelectionIterator< TS, TG, TL, N >
     A const iterator over an uncached selection. More...
     
    class  Dune::UncachedSelection< TS, TG, TL, N >
     An uncached selection of indices. More...
     
    class  Dune::Selection< TS, TG, TL, N >
     A cached selection of indices. More...
     
    \n \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    namespace  Dune::Hybrid
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Functions

    template<class T >
    constexpr auto Dune::Hybrid::size (const T &t)
     Size query.
     
    template<class Container , class Index >
    constexpr decltype(auto) Dune::Hybrid::elementAt (Container &&c, Index &&i)
     Get element at given position from container.
     
    template<class Begin , class End >
    constexpr auto Dune::Hybrid::integralRange (const Begin &begin, const End &end)
     Create an integral range.
     
    template<class End >
    constexpr auto Dune::Hybrid::integralRange (const End &end)
     Create an integral range starting from 0.
     
    template<class Range , class F >
    constexpr void Dune::Hybrid::forEach (Range &&range, F &&f)
     Range based for loop.
     
    template<class Range , class T , class F >
    constexpr T Dune::Hybrid::accumulate (Range &&range, T value, F &&f)
     Accumulate values.
     
    template<class Condition , class IfFunc , class ElseFunc >
    decltype(auto) Dune::Hybrid::ifElse (const Condition &condition, IfFunc &&ifFunc, ElseFunc &&elseFunc)
     A conditional expression.
     
    template<class Condition , class IfFunc >
    void Dune::Hybrid::ifElse (const Condition &condition, IfFunc &&ifFunc)
     A conditional expression.
     
    template<class Functor >
    constexpr HybridFunctor< Functor > Dune::Hybrid::hybridFunctor (const Functor &)
     Returns an HybridFunctor adaptor.
     
    template<class T1 , class T2 >
    constexpr auto Dune::Hybrid::equals (T1 &&t1, T2 &&t2)
     Equality comparison.
     
    template<class Cases , class Value , class Branches , class ElseBranch >
    constexpr decltype(auto) Dune::Hybrid::switchCases (const Cases &cases, const Value &value, Branches &&branches, ElseBranch &&elseBranch)
     Switch statement.
     
    template<class Cases , class Value , class Branches >
    constexpr void Dune::Hybrid::switchCases (const Cases &cases, const Value &value, Branches &&branches)
     Switch statement.
     
    template<class T , class Value , class Branches >
    constexpr void Dune::Hybrid::switchCases (IntegralRange< T > range, const Value &value, Branches &&branches)
     Switch statement.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Variables

    constexpr auto Dune::Hybrid::max = hybridFunctor(Impl::Max{})
     Function object that returns the greater of the given values.
     
    constexpr auto Dune::Hybrid::min = hybridFunctor(Impl::Min{})
     Function object that returns the smaller of the given values.
     
    constexpr auto Dune::Hybrid::plus = hybridFunctor(std::plus<>{})
     Function object for performing addition.
     
    constexpr auto Dune::Hybrid::minus = hybridFunctor(std::minus<>{})
     Function object for performing subtraction.
     
    constexpr auto Dune::Hybrid::equal_to = hybridFunctor(std::equal_to<>{})
     Function object for performing equality comparison.
     
    \n-
    \n+

    Detailed Description

    \n+

    Provides classes for selecting indices based on attribute flags.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,113 +1,35 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n-hybridutilities.hh File Reference\n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\br_\ba_\bn_\bg_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+selection.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bp_\bu_\bt_\bi_\bn_\bg_\b _\bb_\ba_\bs_\be_\bd_\b _\bo_\bn_\b _\bI_\bn_\bd_\be_\bx_\bs_\be_\bt_\bs\n+Provides classes for selecting indices based on attribute flags. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bd_\be_\bx_\bs_\be_\bt_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\b _\bF_\bu_\bn_\bc_\bt_\bo_\br_\b _\b>\n-\u00a0 Adapter of a hybrid functor that maintains results hybrid. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\bS_\b,_\b _\bT_\bG_\b,_\b _\bT_\bL_\b,_\b _\bN_\b _\b>\n+\u00a0 A const iterator over an uncached selection. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\b _\bT_\bS_\b,_\b _\bT_\bG_\b,_\b _\bT_\bL_\b,_\b _\bN_\b _\b>\n+\u00a0 An uncached selection of indices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\b _\bT_\bS_\b,_\b _\bT_\bG_\b,_\b _\bT_\bL_\b,_\b _\bN_\b _\b>\n+\u00a0 A cached selection of indices. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bi_\bz_\be (const T &t)\n-\u00a0 Size query.\n-\u00a0\n-template\n- constexpr decltype(auto)\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt (Container &&c,\n- Index &&i)\n-\u00a0 Get element at given position from\n- container.\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be (const Begin\n- &begin, const End &end)\n-\u00a0 Create an integral range.\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be (const End\n- &end)\n-\u00a0 Create an integral range starting from 0.\n-\u00a0\n-template\n- constexpr void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bf_\bo_\br_\bE_\ba_\bc_\bh (Range &&_\br_\ba_\bn_\bg_\be, F\n- &&f)\n-\u00a0 Range based for loop.\n-\u00a0\n-template\n- constexpr T\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be (Range &&_\br_\ba_\bn_\bg_\be, T\n- value, F &&f)\n-\u00a0 Accumulate values.\n-\u00a0\n-template\n- decltype(auto)\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bf_\bE_\bl_\bs_\be (const Condition\n- &condition, IfFunc &&ifFunc, ElseFunc\n- &&elseFunc)\n-\u00a0 A conditional expression.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bf_\bE_\bl_\bs_\be (const Condition\n- &condition, IfFunc &&ifFunc)\n-\u00a0 A conditional expression.\n-\u00a0\n-template\n-constexpr _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br< Functor >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br (const Functor\n- &)\n-\u00a0 Returns an _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br adaptor.\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs (T1 &&t1, T2 &&t2)\n-\u00a0 Equality comparison.\n-\u00a0\n-template\n- constexpr decltype(auto)\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs (const Cases\n- &cases, const Value &value, Branches\n- &&branches, ElseBranch &&elseBranch)\n-\u00a0 Switch statement.\n-\u00a0\n-template\n- constexpr void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs (const Cases\n- &cases, const Value &value, Branches\n- &&branches)\n-\u00a0 Switch statement.\n-\u00a0\n-template\n- constexpr void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs (_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be< T\n- > _\br_\ba_\bn_\bg_\be, const Value &value, Branches\n- &&branches)\n-\u00a0 Switch statement.\n-\u00a0\n-V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n-constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\ba_\bx = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Max{})\n-\u00a0 Function object that returns the greater of the given values.\n-\u00a0\n-constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Min{})\n-\u00a0 Function object that returns the smaller of the given values.\n-\u00a0\n-constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bp_\bl_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::plus<>{})\n-\u00a0 Function object for performing addition.\n-\u00a0\n-constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::minus<>{})\n-\u00a0 Function object for performing subtraction.\n-\u00a0\n-constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\b__\bt_\bo = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::equal_to<>{})\n-\u00a0 Function object for performing equality comparison.\n-\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Provides classes for selecting indices based on attribute flags.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00065_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00065_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: hybridutilities.hh Source File\n+dune-common: selection.hh Source File\n \n \n \n \n \n \n \n@@ -70,466 +70,324 @@\n \n \n \n \n \n \n \n
    \n-
    hybridutilities.hh
    \n+
    selection.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_HYBRIDUTILITIES_HH
    \n-
    6#define DUNE_COMMON_HYBRIDUTILITIES_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_SELECTION_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_SELECTION_HH
    \n
    7
    \n-
    8#include <tuple>
    \n-
    9#include <utility>
    \n-
    10
    \n-\n-\n-\n-\n-\n-
    16
    \n-
    17
    \n-
    18
    \n-
    19namespace Dune {
    \n-
    \n-
    20namespace Hybrid {
    \n-
    21
    \n-
    22namespace Impl {
    \n-
    23
    \n-
    24 // Try if std::tuple_size is implemented for class
    \n-
    25 template<class T>
    \n-
    26 constexpr auto size(const T&, const PriorityTag<2>&)
    \n-
    27 -> decltype(std::integral_constant<std::size_t,std::tuple_size<T>::value>())
    \n-
    28 {
    \n-
    29 return {};
    \n-
    30 }
    \n-
    31
    \n-
    32 // Try if there's a static constexpr size() method
    \n-
    33 template<class T>
    \n-
    34 constexpr auto size(const T&, const PriorityTag<1>&)
    \n-
    35 -> decltype(std::integral_constant<std::size_t,T::size()>())
    \n-
    36 {
    \n-
    37 return {};
    \n-
    38 }
    \n-
    39
    \n-
    40 // As a last resort try if there's a non-static size()
    \n-
    41 template<class T>
    \n-
    42 constexpr auto size(const T& t, const PriorityTag<0>&)
    \n-
    43 {
    \n-
    44 return t.size();
    \n-
    45 }
    \n-
    46
    \n-
    47} // namespace Impl
    \n-
    48
    \n+
    8#include <cstdint>
    \n+
    9
    \n+\n+\n+
    12
    \n+
    13namespace Dune
    \n+
    14{
    \n+
    29 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    31 {
    \n+
    32 public:
    \n+
    41 typedef TS AttributeSet;
    \n+
    42
    \n+\n+
    47
    \n+
    48 //typedef typename ParallelIndexSet::const_iterator ParallelIndexSetIterator;
    \n
    49
    \n-
    50
    \n-
    72template<class T>
    \n+
    50 typedef ConstArrayListIterator<IndexPair<TG,TL>, N, std::allocator<Dune::IndexPair<TG,TL> > > ParallelIndexSetIterator;
    \n+
    \n+\n+
    57 : iter_(iter), end_(end)
    \n+
    58 {
    \n+
    59 // Step to the first valid entry
    \n+
    60 while(iter_!=end_ && !AttributeSet::contains(iter_->local().attribute()))
    \n+
    61 ++iter_;
    \n+
    62 }
    \n+
    \n+
    63
    \n+
    \n+\n+
    65 {
    \n+
    66 assert(iter_!=end_);
    \n+
    67 for(++iter_; iter_!=end_; ++iter_)
    \n+
    68 if(AttributeSet::contains(iter_->local().attribute()))
    \n+
    69 break;
    \n+
    70 }
    \n+
    \n+
    71
    \n+
    72
    \n
    \n-
    73constexpr auto size(const T& t)
    \n-
    74{
    \n-
    75 return Impl::size(t, PriorityTag<42>());
    \n-
    76}
    \n+
    73 uint32_t operator*() const
    \n+
    74 {
    \n+
    75 return iter_->local().local();
    \n+
    76 }
    \n
    \n
    77
    \n-
    78
    \n-
    79
    \n-
    80namespace Impl {
    \n-
    81
    \n-
    82 template<class Container, class Index,
    \n-
    83 std::enable_if_t<IsTuple<std::decay_t<Container>>::value, int> = 0>
    \n-
    84 constexpr decltype(auto) elementAt(Container&& c, Index&&, PriorityTag<2>)
    \n-
    85 {
    \n-
    86 return std::get<std::decay_t<Index>::value>(c);
    \n-
    87 }
    \n-
    88
    \n-
    89 template<class T, T... t, class Index>
    \n-
    90 constexpr decltype(auto) elementAt(std::integer_sequence<T, t...> c, Index, PriorityTag<1>)
    \n-
    91 {
    \n-
    92 return Dune::integerSequenceEntry(c, std::integral_constant<std::size_t, Index::value>());
    \n-
    93 }
    \n-
    94
    \n-
    95 template<class Container, class Index>
    \n-
    96 constexpr decltype(auto) elementAt(Container&& c, Index&& i, PriorityTag<0>)
    \n-
    97 {
    \n-
    98 return c[i];
    \n-
    99 }
    \n-
    100
    \n-
    101} // namespace Impl
    \n-
    102
    \n-
    103
    \n-
    104
    \n-
    125template<class Container, class Index>
    \n-
    \n-
    126constexpr decltype(auto) elementAt(Container&& c, Index&& i)
    \n-
    127{
    \n-
    128 return Impl::elementAt(std::forward<Container>(c), std::forward<Index>(i), PriorityTag<42>());
    \n-
    129}
    \n-
    \n-
    130
    \n-
    131
    \n-
    132
    \n-
    133namespace Impl {
    \n-
    134
    \n-
    135 template<class Begin, class End,
    \n-
    136 std::enable_if_t<IsIntegralConstant<Begin>::value and IsIntegralConstant<End>::value, int> = 0>
    \n-
    137 constexpr auto integralRange(const Begin& /*begin*/, const End& /*end*/, const PriorityTag<1>&)
    \n-
    138 {
    \n-
    139 static_assert(Begin::value <= End::value, "You cannot create an integralRange where end<begin");
    \n-\n-
    141 }
    \n+
    \n+\n+
    79 {
    \n+
    80 return iter_ == other.iter_;
    \n+
    81 }
    \n+
    \n+
    82
    \n+
    \n+\n+
    84 {
    \n+
    85 return iter_ != other.iter_;
    \n+
    86 }
    \n+
    \n+
    87
    \n+
    88 private:
    \n+\n+
    90 const ParallelIndexSetIterator end_;
    \n+
    91 };
    \n+
    \n+
    92
    \n+
    93
    \n+
    97 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    99 {
    \n+
    100 public:
    \n+
    109 typedef TS AttributeSet;
    \n+
    110
    \n+
    114 typedef TG GlobalIndex;
    \n+
    115
    \n+
    122 typedef TL LocalIndex;
    \n+
    123
    \n+\n+
    128
    \n+\n+
    133
    \n+\n+
    138
    \n+
    \n+\n+
    140 : indexSet_()
    \n+
    141 {}
    \n+
    \n
    142
    \n-
    143 template<class Begin, class End>
    \n-
    144 constexpr auto integralRange(const Begin& begin, const End& end, const PriorityTag<0>&)
    \n-
    145 {
    \n-
    146 assert(begin<=end && "You cannot create an integralRange where end<begin");
    \n-
    147 return Dune::IntegralRange<End>(begin, end);
    \n-
    148 }
    \n-
    149
    \n-
    150} // namespace Impl
    \n-
    151
    \n-
    152
    \n-
    153
    \n-
    171template<class Begin, class End>
    \n-
    \n-
    172constexpr auto integralRange(const Begin& begin, const End& end)
    \n-
    173{
    \n-
    174 return Impl::integralRange(begin, end, PriorityTag<42>());
    \n-
    175}
    \n-
    \n-
    176
    \n-
    190template<class End>
    \n-
    \n-
    191constexpr auto integralRange(const End& end)
    \n-
    192{
    \n-
    193 return Impl::integralRange(Dune::Indices::_0, end, PriorityTag<42>());
    \n-
    194}
    \n+
    \n+\n+
    144 : indexSet_(&indexset)
    \n+
    145 {}
    \n
    \n-
    195
    \n+
    150 void setIndexSet(const ParallelIndexSet& indexset);
    \n+
    151
    \n+
    155 //const ParallelIndexSet& indexSet() const;
    \n+
    156
    \n+
    161 const_iterator begin() const;
    \n+
    162
    \n+
    167 const_iterator end() const;
    \n+
    168
    \n+
    169
    \n+
    170 private:
    \n+
    171 const ParallelIndexSet* indexSet_;
    \n+
    172
    \n+
    173 };
    \n+
    \n+
    174
    \n+
    178 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    180 {
    \n+
    181 public:
    \n+
    190 typedef TS AttributeSet;
    \n+
    191
    \n+
    195 typedef TG GlobalIndex;
    \n
    196
    \n-
    197
    \n-
    198namespace Impl {
    \n-
    199
    \n-
    200 template<class T>
    \n-
    201 constexpr void evaluateFoldExpression(std::initializer_list<T>&&)
    \n-
    202 {}
    \n-
    203
    \n-
    204 template<class Range, class F, class Index, Index... i>
    \n-
    205 constexpr void forEachIndex(Range&& range, F&& f, std::integer_sequence<Index, i...>)
    \n-
    206 {
    \n-
    207 evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
    \n-
    208 }
    \n+
    203 typedef TL LocalIndex;
    \n+
    204
    \n+\n
    209
    \n-
    210 template<class F, class Index, Index... i>
    \n-
    211 constexpr void forEach(std::integer_sequence<Index, i...> /*range*/, F&& f, PriorityTag<2>)
    \n-
    212 {
    \n-
    213 evaluateFoldExpression<int>({(f(std::integral_constant<Index,i>()), 0)...});
    \n-
    214 }
    \n-
    215
    \n-
    216
    \n-
    217 template<class Range, class F,
    \n-
    218 std::enable_if_t<IsIntegralConstant<decltype(Hybrid::size(std::declval<Range>()))>::value, int> = 0>
    \n-
    219 constexpr void forEach(Range&& range, F&& f, PriorityTag<1>)
    \n-
    220 {
    \n-
    221 auto size = Hybrid::size(range);
    \n-
    222 auto indices = std::make_index_sequence<size>();
    \n-
    223 (forEachIndex)(std::forward<Range>(range), std::forward<F>(f), indices);
    \n-
    224 }
    \n-
    225
    \n-
    226 template<class Range, class F>
    \n-
    227 constexpr void forEach(Range&& range, F&& f, PriorityTag<0>)
    \n-
    228 {
    \n-
    229 for(auto&& e : range)
    \n-
    230 f(e);
    \n-
    231 }
    \n-
    232
    \n-
    233} // namespace Impl
    \n-
    234
    \n-
    235
    \n-
    236
    \n-
    255template<class Range, class F>
    \n-
    \n-
    256constexpr void forEach(Range&& range, F&& f)
    \n-
    257{
    \n-
    258 Impl::forEach(std::forward<Range>(range), std::forward<F>(f), PriorityTag<42>());
    \n-
    259}
    \n-
    \n+
    213 typedef uint32_t* iterator;
    \n+
    214
    \n+
    218 typedef uint32_t* const_iterator;
    \n+
    219
    \n+
    \n+\n+
    221 : selected_()
    \n+
    222 {}
    \n+
    \n+
    223
    \n+
    \n+\n+
    225 : selected_(), size_(0), built_(false)
    \n+
    226 {
    \n+
    227 setIndexSet(indexset);
    \n+
    228 }
    \n+
    \n+
    229
    \n+
    230 ~Selection();
    \n+
    231
    \n+
    236 void setIndexSet(const ParallelIndexSet& indexset);
    \n+
    237
    \n+
    241 void free();
    \n+
    242
    \n+
    246 //IndexSet indexSet() const;
    \n+
    247
    \n+
    252 const_iterator begin() const;
    \n+
    253
    \n+
    258 const_iterator end() const;
    \n+
    259
    \n
    260
    \n-
    261
    \n-
    262
    \n-
    278template<class Range, class T, class F>
    \n-
    \n-
    279constexpr T accumulate(Range&& range, T value, F&& f)
    \n-
    280{
    \n-
    281 forEach(std::forward<Range>(range), [&](auto&& entry) {
    \n-
    282 value = f(value, entry);
    \n-
    283 });
    \n-
    284 return value;
    \n-
    285}
    \n-
    \n-
    286
    \n-
    287
    \n-
    288
    \n-
    289namespace Impl {
    \n+
    261 private:
    \n+
    262 uint32_t* selected_;
    \n+
    263 size_t size_;
    \n+
    264 bool built_;
    \n+
    265
    \n+
    266 };
    \n+
    \n+
    267
    \n+
    268 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    270 {
    \n+
    271 if(built_)
    \n+
    272 free();
    \n+
    273
    \n+
    274 // Count the number of entries the selection has to hold
    \n+\n+
    276 const const_iterator end = indexset.end();
    \n+
    277 int entries = 0;
    \n+
    278
    \n+
    279 for(const_iterator index = indexset.begin(); index != end; ++index)
    \n+
    280 if(AttributeSet::contains(index->local().attribute()))
    \n+
    281 ++entries;
    \n+
    282
    \n+
    283 selected_ = new uint32_t[entries];
    \n+
    284 built_ = true;
    \n+
    285
    \n+
    286 entries = 0;
    \n+
    287 for(const_iterator index = indexset.begin(); index != end; ++index)
    \n+
    288 if(AttributeSet::contains(index->local().attribute()))
    \n+
    289 selected_[entries++]= index->local().local();
    \n
    290
    \n-
    291 struct Id {
    \n-
    292 template<class T>
    \n-
    293 constexpr T operator()(T&& x) const {
    \n-
    294 return std::forward<T>(x);
    \n-
    295 }
    \n-
    296 };
    \n-
    297
    \n-
    298 template<class IfFunc, class ElseFunc>
    \n-
    299 constexpr decltype(auto) ifElse(std::true_type, IfFunc&& ifFunc, ElseFunc&& /*elseFunc*/)
    \n-
    300 {
    \n-
    301 return ifFunc(Id{});
    \n-
    302 }
    \n-
    303
    \n-
    304 template<class IfFunc, class ElseFunc>
    \n-
    305 constexpr decltype(auto) ifElse(std::false_type, IfFunc&& /*ifFunc*/, ElseFunc&& elseFunc)
    \n-
    306 {
    \n-
    307 return elseFunc(Id{});
    \n-
    308 }
    \n-
    309
    \n-
    310 template<class IfFunc, class ElseFunc>
    \n-
    311 decltype(auto) ifElse(const bool& condition, IfFunc&& ifFunc, ElseFunc&& elseFunc)
    \n-
    312 {
    \n-
    313 if (condition)
    \n-
    314 return ifFunc(Id{});
    \n-
    315 else
    \n-
    316 return elseFunc(Id{});
    \n-
    317 }
    \n-
    318
    \n-
    319} // namespace Impl
    \n-
    320
    \n+
    291 size_=entries;
    \n+
    292 built_=true;
    \n+
    293 }
    \n+
    \n+
    294
    \n+
    295 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    297 {
    \n+
    298 return selected_;
    \n+
    299 }
    \n+
    \n+
    300
    \n+
    301 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    303 {
    \n+
    304 return selected_+size_;
    \n+
    305 }
    \n+
    \n+
    306
    \n+
    307 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    309 {
    \n+
    310 delete[] selected_;
    \n+
    311 size_=0;
    \n+
    312 built_=false;
    \n+
    313 }
    \n+
    \n+
    314
    \n+
    315 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    317 {
    \n+
    318 if(built_)
    \n+
    319 free();
    \n+
    320 }
    \n+
    \n
    321
    \n-
    322
    \n-
    343template<class Condition, class IfFunc, class ElseFunc>
    \n-
    \n-
    344decltype(auto) ifElse(const Condition& condition, IfFunc&& ifFunc, ElseFunc&& elseFunc)
    \n-
    345{
    \n-
    346 return Impl::ifElse(condition, std::forward<IfFunc>(ifFunc), std::forward<ElseFunc>(elseFunc));
    \n-
    347}
    \n-
    \n-
    348
    \n-
    356template<class Condition, class IfFunc>
    \n-
    \n-
    357void ifElse(const Condition& condition, IfFunc&& ifFunc)
    \n-
    358{
    \n-
    359 ifElse(condition, std::forward<IfFunc>(ifFunc), [](auto&&) {});
    \n-
    360}
    \n-
    \n-
    361
    \n-
    362
    \n-
    363
    \n-
    364namespace Impl {
    \n-
    365
    \n-
    366 struct Max {
    \n-
    367 template<class... Args>
    \n-
    368 constexpr decltype(auto) operator()(Args&&... args) const
    \n-
    369 {
    \n-
    370 using T = std::common_type_t<Args...>;
    \n-
    371 return std::max({T(args)...});
    \n-
    372 }
    \n-
    373 };
    \n-
    374
    \n-
    375 struct Min {
    \n-
    376 template<class... Args>
    \n-
    377 constexpr decltype(auto) operator()(Args&&... args) const
    \n-
    378 {
    \n-
    379 using T = std::common_type_t<Args...>;
    \n-
    380 return std::min({T(args)...});
    \n-
    381 }
    \n-
    382 };
    \n-
    383
    \n-
    384} // namespace Impl
    \n-
    385
    \n-
    386
    \n-
    417template<class Functor>
    \n-
    \n-\n-
    419
    \n-
    420 static_assert(std::is_default_constructible_v<Functor>,
    \n-
    421 "Operator in integral expressions shall be constexpr default constructible");
    \n-
    422
    \n-
    423 inline static constexpr Functor _functor = Functor{};
    \n-
    424
    \n-
    425public:
    \n-
    426
    \n-
    436 template<class... Args>
    \n-
    \n-
    437 constexpr decltype(auto) operator()(const Args&... args) const
    \n-
    438 {
    \n-
    439 if constexpr (std::conjunction_v<IsCompileTimeConstant<Args>...>)
    \n-
    440 {
    \n-
    441 constexpr auto result = _functor(Args::value...);
    \n-
    442 // apply functor on integral constant arguments and return an integral constant of the result
    \n-
    443 // this is guaranteed to be evaluated at compile-time
    \n-
    444 return std::integral_constant<std::remove_cv_t<decltype(result)>,result>{};
    \n-
    445 } else {
    \n-
    446 // apply functor directly on arguments and return the result of the functor
    \n-
    447 // (integral constants are likely to be casted to underlying type)
    \n-
    448 // this not is guaranteed to be evaluated at compile-time although is possible if expression is constexpr
    \n-
    449 return _functor(args...);
    \n-
    450 }
    \n-
    451 }
    \n-
    \n-
    452};
    \n-
    \n-
    453
    \n-
    458template<class Functor>
    \n-
    \n-
    459constexpr HybridFunctor<Functor> hybridFunctor(const Functor&)
    \n-
    460{
    \n-
    461 return {};
    \n-
    462}
    \n-
    \n-
    463
    \n-
    484inline constexpr auto max = hybridFunctor(Impl::Max{});
    \n-
    485
    \n-
    506inline constexpr auto min = hybridFunctor(Impl::Min{});
    \n-
    507
    \n-
    528inline constexpr auto plus = hybridFunctor(std::plus<>{});
    \n-
    529
    \n-
    550inline constexpr auto minus = hybridFunctor(std::minus<>{});
    \n-
    551
    \n-
    572inline constexpr auto equal_to = hybridFunctor(std::equal_to<>{});
    \n-
    573
    \n-
    574
    \n-
    586template<class T1, class T2>
    \n-
    \n-
    587[[deprecated("Use Hybrid::equal_to instead!")]] constexpr auto equals(T1&& t1, T2&& t2){
    \n-
    588 return equal_to(std::forward<T1>(t1), std::forward<T2>(t2));
    \n-
    589}
    \n-
    \n-
    590
    \n-
    591
    \n-
    592namespace Impl {
    \n-
    593
    \n-
    594 // This overload is selected if the passed value is already a compile time constant.
    \n-
    595 template<class Result, class T, T t0, T... tt, class ValueType, ValueType value, class Branches, class ElseBranch>
    \n-
    596 constexpr Result switchCases(std::integer_sequence<T, t0, tt...>, const std::integral_constant<ValueType, value>& /*value*/, Branches&& branches, ElseBranch&& elseBranch)
    \n-
    597 {
    \n-
    598 // In case we pass a value known at compile time, we no longer have to do
    \n-
    599 // a dynamic to static dispatch via recursion. The only thing that's left
    \n-
    600 // is to check if the value is contained in the passed range.
    \n-
    601 // If this is true, we have to pass it to the branches callback
    \n-
    602 // as an appropriate integral_constant type. Otherwise we have to
    \n-
    603 // execute the else callback.
    \n-
    604 if constexpr (((t0 == value) || ... || (tt == value)))
    \n-
    605 return branches(std::integral_constant<T, value>{});
    \n-
    606 else
    \n-
    607 return elseBranch();
    \n-
    608 }
    \n-
    609
    \n-
    610 // This overload is selected if the passed value is dynamic.
    \n-
    611 template<class Result, class T, class Value, class Branches, class ElseBranch>
    \n-
    612 constexpr Result switchCases(std::integer_sequence<T>, const Value& /*value*/, Branches&& /*branches*/, ElseBranch&& elseBranch)
    \n-
    613 {
    \n-
    614 return elseBranch();
    \n-
    615 }
    \n-
    616
    \n-
    617 template<class Result, class T, T t0, T... tt, class Value, class Branches, class ElseBranch>
    \n-
    618 constexpr Result switchCases(std::integer_sequence<T, t0, tt...>, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n-
    619 {
    \n-
    620 if (t0 == value)
    \n-
    621 return branches(std::integral_constant<T, t0>());
    \n-
    622 else
    \n-
    623 return Impl::switchCases<Result>(std::integer_sequence<T, tt...>(), value, branches, elseBranch);
    \n-
    624 }
    \n-
    625
    \n-
    626 // This overload is selected if the range of cases is an IntegralRange
    \n-
    627 template <class Result, class T, class Value, class Branches, class ElseBranch>
    \n-
    628 constexpr Result switchCases(IntegralRange<T> range, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n-
    629 {
    \n-
    630 return range.contains(value) ? branches(T(value)) : elseBranch();
    \n-
    631 }
    \n-
    632
    \n-
    633 // This overload is selected if the range of cases is a StaticIntegralRange
    \n-
    634 template <class Result, class T, T to, T from, class Value, class Branches, class ElseBranch>
    \n-
    635 constexpr Result switchCases(StaticIntegralRange<T, to, from> range, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n-
    636 {
    \n-
    637 using seq = typename decltype(range)::integer_sequence;
    \n-
    638 return Impl::switchCases<Result>(seq{}, value, branches, elseBranch);
    \n-
    639 }
    \n-
    640
    \n-
    641} // namespace Impl
    \n-
    642
    \n-
    643
    \n-
    644
    \n-
    672template<class Cases, class Value, class Branches, class ElseBranch>
    \n-
    \n-
    673constexpr decltype(auto) switchCases(const Cases& cases, const Value& value, Branches&& branches, ElseBranch&& elseBranch)
    \n-
    674{
    \n-
    675 return Impl::switchCases<decltype(elseBranch())>(cases, value, std::forward<Branches>(branches), std::forward<ElseBranch>(elseBranch));
    \n-
    676}
    \n-
    \n-
    677
    \n-
    697template<class Cases, class Value, class Branches>
    \n-
    \n-
    698constexpr void switchCases(const Cases& cases, const Value& value, Branches&& branches)
    \n-
    699{
    \n-
    700 Impl::switchCases<void>(cases, value, std::forward<Branches>(branches),
    \n-
    701 []{ assert(false && "value not found in range"); });
    \n-
    702}
    \n-
    \n-
    703
    \n-
    722template <class T, class Value, class Branches>
    \n-
    \n-
    723constexpr void switchCases(IntegralRange<T> range, const Value& value, Branches&& branches)
    \n-
    724{
    \n-
    725 assert(range.contains(value) && "value not found in range");
    \n-
    726 branches(T(value));
    \n-
    727}
    \n-
    \n-
    728
    \n-
    729} // namespace Hybrid
    \n-
    \n-
    730} // namespace Dune
    \n-
    731
    \n-
    732
    \n-
    733#endif // #ifndef DUNE_COMMON_HYBRIDUTILITIES_HH
    \n-
    Utilities for type computations, constraining overloads, ...
    \n-
    Implements a vector constructed from a given type representing a field and a compile-time given size.
    \n-
    Utilities for reduction like operations on ranges.
    \n-\n-
    Traits for type conversions and type information.
    \n-
    constexpr index_constant< 0 > _0
    Compile time index with value 0.
    Definition indices.hh:52
    \n-
    static StaticIntegralRange< T, to, from > range(std::integral_constant< T, from >, std::integral_constant< T, to >) noexcept
    Definition rangeutilities.hh:312
    \n-
    constexpr auto size(const T &t)
    Size query.
    Definition hybridutilities.hh:73
    \n-
    constexpr auto minus
    Function object for performing subtraction.
    Definition hybridutilities.hh:550
    \n-
    constexpr auto equals(T1 &&t1, T2 &&t2)
    Equality comparison.
    Definition hybridutilities.hh:587
    \n-
    constexpr void forEach(Range &&range, F &&f)
    Range based for loop.
    Definition hybridutilities.hh:256
    \n-
    constexpr auto equal_to
    Function object for performing equality comparison.
    Definition hybridutilities.hh:572
    \n-
    constexpr decltype(auto) switchCases(const Cases &cases, const Value &value, Branches &&branches, ElseBranch &&elseBranch)
    Switch statement.
    Definition hybridutilities.hh:673
    \n-
    constexpr auto max
    Function object that returns the greater of the given values.
    Definition hybridutilities.hh:484
    \n-
    constexpr auto plus
    Function object for performing addition.
    Definition hybridutilities.hh:528
    \n-
    constexpr auto min
    Function object that returns the smaller of the given values.
    Definition hybridutilities.hh:506
    \n-
    decltype(auto) ifElse(const Condition &condition, IfFunc &&ifFunc, ElseFunc &&elseFunc)
    A conditional expression.
    Definition hybridutilities.hh:344
    \n-
    constexpr auto integralRange(const Begin &begin, const End &end)
    Create an integral range.
    Definition hybridutilities.hh:172
    \n-
    constexpr decltype(auto) elementAt(Container &&c, Index &&i)
    Get element at given position from container.
    Definition hybridutilities.hh:126
    \n-
    constexpr T accumulate(Range &&range, T value, F &&f)
    Accumulate values.
    Definition hybridutilities.hh:279
    \n-
    constexpr auto integerSequenceEntry(std::integer_sequence< T, t... >, std::integral_constant< std::size_t, index > i)
    Get entry of std::integer_sequence.
    Definition typetraits.hh:492
    \n+
    322 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    324 {
    \n+
    325 return SelectionIterator<TS,TG,TL,N>(indexSet_->begin(),
    \n+
    326 indexSet_->end());
    \n+
    327 }
    \n+
    \n+
    328
    \n+
    329 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    331 {
    \n+
    332 return SelectionIterator<TS,TG,TL,N>(indexSet_->end(),
    \n+
    333 indexSet_->end());
    \n+
    334 }
    \n+
    \n+
    335 template<typename TS, typename TG, typename TL, int N>
    \n+
    \n+\n+
    337 {
    \n+
    338 indexSet_ = &indexset;
    \n+
    339 }
    \n+
    \n+
    340
    \n+
    344}
    \n+
    345#endif // DUNE_COMMON_PARALLEL_SELECTION_HH
    \n+
    This file implements iterator facade classes for writing stl conformant iterators.
    \n+
    Provides a map between global and local indices.
    \n+
    const_iterator end() const
    Get an iterator over the selected indices.
    Definition selection.hh:330
    \n+
    void setIndexSet(const ParallelIndexSet &indexset)
    Set the index set of the selection.
    Definition selection.hh:269
    \n+
    void setIndexSet(const ParallelIndexSet &indexset)
    Set the index set of the selection.
    Definition selection.hh:336
    \n+
    iterator begin()
    Get an iterator over the indices positioned at the first index.
    \n+
    iterator end()
    Get an iterator over the indices positioned after the last index.
    \n+
    const_iterator end() const
    Get an iterator over the selected indices.
    Definition selection.hh:302
    \n+
    const_iterator begin() const
    Get the index set we are a selection for.
    Definition selection.hh:296
    \n+
    void free()
    Free allocated memory.
    Definition selection.hh:308
    \n+
    const_iterator begin() const
    Get the index set we are a selection for.
    Definition selection.hh:323
    \n+
    ~Selection()
    Definition selection.hh:316
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    constexpr HybridFunctor< Functor > hybridFunctor(const Functor &)
    Returns an HybridFunctor adaptor.
    Definition hybridutilities.hh:459
    \n-
    Definition binaryfunctions.hh:34
    \n-
    Adapter of a hybrid functor that maintains results hybrid.
    Definition hybridutilities.hh:418
    \n-
    dynamic integer range for use in range-based for loops
    Definition rangeutilities.hh:177
    \n-
    static integer range for use in range-based for loops
    Definition rangeutilities.hh:230
    \n-
    Check if T is an std::integral_constant<I, i>
    Definition typetraits.hh:384
    \n-
    Helper class for tagging priorities.
    Definition typeutilities.hh:73
    \n+
    A constant random access iterator for the Dune::ArrayList class.
    Definition arraylist.hh:368
    \n+
    Manager class for the mapping between local indices and globally unique indices.
    Definition indexset.hh:218
    \n+
    A const iterator over an uncached selection.
    Definition selection.hh:31
    \n+
    ConstArrayListIterator< IndexPair< TG, TL >, N, std::allocator< Dune::IndexPair< TG, TL > > > ParallelIndexSetIterator
    Definition selection.hh:50
    \n+
    void operator++()
    Definition selection.hh:64
    \n+
    uint32_t operator*() const
    Definition selection.hh:73
    \n+
    TS AttributeSet
    The type of the Set of attributes.
    Definition selection.hh:41
    \n+
    Dune::ParallelIndexSet< TG, TL, N > ParallelIndexSet
    The type of the underlying index set.
    Definition selection.hh:46
    \n+
    SelectionIterator(const ParallelIndexSetIterator &iter, const ParallelIndexSetIterator &end)
    Constructor.
    Definition selection.hh:56
    \n+
    bool operator!=(const SelectionIterator< TS, TG, TL, N > &other) const
    Definition selection.hh:83
    \n+
    bool operator==(const SelectionIterator< TS, TG, TL, N > &other) const
    Definition selection.hh:78
    \n+
    An uncached selection of indices.
    Definition selection.hh:99
    \n+
    UncachedSelection()
    Definition selection.hh:139
    \n+
    SelectionIterator< TS, TG, TL, N > iterator
    The type of the iterator of the selected indices.
    Definition selection.hh:132
    \n+
    TS AttributeSet
    The type of the Set of attributes.
    Definition selection.hh:109
    \n+
    iterator const_iterator
    The type of the iterator of the selected indices.
    Definition selection.hh:137
    \n+
    TG GlobalIndex
    The type of the global index of the underlying index set.
    Definition selection.hh:114
    \n+
    UncachedSelection(const ParallelIndexSet &indexset)
    Definition selection.hh:143
    \n+
    Dune::ParallelIndexSet< GlobalIndex, LocalIndex, N > ParallelIndexSet
    The type of the underlying index set.
    Definition selection.hh:127
    \n+
    TL LocalIndex
    The type of the local index of the underlying index set.
    Definition selection.hh:122
    \n+
    A cached selection of indices.
    Definition selection.hh:180
    \n+
    TG GlobalIndex
    The type of the global index of the underlying index set.
    Definition selection.hh:195
    \n+
    Selection(const ParallelIndexSet &indexset)
    Definition selection.hh:224
    \n+
    Selection()
    Definition selection.hh:220
    \n+
    TL LocalIndex
    The type of the local index of the underlying index set.
    Definition selection.hh:203
    \n+
    TS AttributeSet
    The type of the set of attributes.
    Definition selection.hh:190
    \n+
    uint32_t * iterator
    The type of the iterator of the selected indices.
    Definition selection.hh:213
    \n+
    uint32_t * const_iterator
    The type of the iterator of the selected indices.
    Definition selection.hh:218
    \n+
    Dune::ParallelIndexSet< GlobalIndex, LocalIndex, N > ParallelIndexSet
    The type of the underlying index set.
    Definition selection.hh:208
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,535 +1,388 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-hybridutilities.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+selection.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_HYBRIDUTILITIES_HH\n-6#define DUNE_COMMON_HYBRIDUTILITIES_HH\n+5#ifndef DUNE_COMMON_PARALLEL_SELECTION_HH\n+6#define DUNE_COMMON_PARALLEL_SELECTION_HH\n 7\n-8#include \n-9#include \n-10\n-11#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n-15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\br_\ba_\bn_\bg_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh>\n-16\n-17\n-18\n-19namespace _\bD_\bu_\bn_\be {\n-_\b2_\b0namespace Hybrid {\n-21\n-22namespace Impl {\n-23\n-24 // Try if std::tuple_size is implemented for class\n-25 template\n-26 constexpr auto size(const T&, const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b2_\b>&)\n-27 -> decltype(std::integral_constant::value>())\n-28 {\n-29 return {};\n-30 }\n-31\n-32 // Try if there's a static constexpr size() method\n-33 template\n-34 constexpr auto size(const T&, const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b1_\b>&)\n-35 -> decltype(std::integral_constant())\n-36 {\n-37 return {};\n-38 }\n-39\n-40 // As a last resort try if there's a non-static size()\n-41 template\n-42 constexpr auto size(const T& t, const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b0_\b>&)\n-43 {\n-44 return t.size();\n-45 }\n-46\n-47} // namespace Impl\n-48\n+8#include \n+9\n+10#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh>\n+11#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bi_\bn_\bd_\be_\bx_\bs_\be_\bt_\b._\bh_\bh>\n+12\n+13namespace _\bD_\bu_\bn_\be\n+14{\n+29 template\n+_\b3_\b0 class _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+31 {\n+32 public:\n+_\b4_\b1 typedef TS _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt;\n+42\n+_\b4_\b6 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b> _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+47\n+48 //typedef typename ParallelIndexSet::const_iterator\n+ParallelIndexSetIterator;\n 49\n-50\n-72template\n-_\b7_\b3constexpr auto _\bs_\bi_\bz_\be(const T& t)\n-74{\n-75 return Impl::size(t, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n-76}\n+_\b5_\b0 typedef _\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>, N, std::allocator > > _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b5_\b6 _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& iter, const\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& end)\n+57 : iter_(iter), end_(end)\n+58 {\n+59 // Step to the first valid entry\n+60 while(iter_!=end_ && !AttributeSet::contains(iter_->local().attribute()))\n+61 ++iter_;\n+62 }\n+63\n+_\b6_\b4 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+65 {\n+66 assert(iter_!=end_);\n+67 for(++iter_; iter_!=end_; ++iter_)\n+68 if(AttributeSet::contains(iter_->local().attribute()))\n+69 break;\n+70 }\n+71\n+72\n+_\b7_\b3 uint32_t _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const\n+74 {\n+75 return iter_->local().local();\n+76 }\n 77\n-78\n-79\n-80namespace Impl {\n-81\n-82 template>::value, int> = 0>\n-84 constexpr decltype(auto) elementAt(Container&& c, Index&&, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b2_\b>)\n-85 {\n-86 return std::get::value>(c);\n-87 }\n-88\n-89 template\n-90 constexpr decltype(auto) elementAt(std::integer_sequence c, Index,\n-PriorityTag<1>)\n-91 {\n-92 return _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by(c, std::integral_constant());\n-93 }\n-94\n-95 template\n-96 constexpr decltype(auto) elementAt(Container&& c, Index&& i, PriorityTag<0>)\n-97 {\n-98 return c[i];\n-99 }\n-100\n-101} // namespace Impl\n-102\n-103\n-104\n-125template\n-_\b1_\b2_\b6constexpr decltype(auto) _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(Container&& c, Index&& i)\n-127{\n-128 return Impl::elementAt(std::forward(c), std::forward(i),\n-_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n-129}\n-130\n-131\n-132\n-133namespace Impl {\n-134\n-135 template::value and\n-_\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt_\b<_\bE_\bn_\bd_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be, int> = 0>\n-137 constexpr auto integralRange(const Begin& /*begin*/, const End& /*end*/,\n-const _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b1_\b>&)\n-138 {\n-139 static_assert(Begin::value <= End::value, \"You cannot create an\n-integralRange where end();\n-141 }\n+_\b7_\b8 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>& other) const\n+79 {\n+80 return iter_ == other.iter_;\n+81 }\n+82\n+_\b8_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>& other) const\n+84 {\n+85 return iter_ != other.iter_;\n+86 }\n+87\n+88 private:\n+89 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter_;\n+90 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end_;\n+91 };\n+92\n+93\n+97 template\n+_\b9_\b8 class _\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+99 {\n+100 public:\n+_\b1_\b0_\b9 typedef TS _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt;\n+110\n+_\b1_\b1_\b4 typedef TG _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+115\n+_\b1_\b2_\b2 typedef TL _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+123\n+_\b1_\b2_\b7 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bN_\b> _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+128\n+_\b1_\b3_\b2 typedef _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b> _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+133\n+_\b1_\b3_\b7 typedef _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+138\n+_\b1_\b3_\b9 _\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn()\n+140 : indexSet_()\n+141 {}\n 142\n-143 template\n-144 constexpr auto integralRange(const Begin& begin, const End& end, const\n-PriorityTag<0>&)\n-145 {\n-146 assert(begin<=end && \"You cannot create an integralRange where end(begin, end);\n-148 }\n-149\n-150} // namespace Impl\n+_\b1_\b4_\b3 _\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexset)\n+144 : indexSet_(&indexset)\n+145 {}\n+150 void _\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexset);\n 151\n-152\n-153\n-171template\n-_\b1_\b7_\b2constexpr auto _\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be(const Begin& begin, const End& end)\n-173{\n-174 return Impl::integralRange(begin, end, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n-175}\n-176\n-190template\n-_\b1_\b9_\b1constexpr auto _\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be(const End& end)\n-192{\n-193 return Impl::integralRange(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\b__\b0, end, _\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n-194}\n-195\n+155 //const ParallelIndexSet& indexSet() const;\n+156\n+161 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+162\n+167 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+168\n+169\n+170 private:\n+171 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt* indexSet_;\n+172\n+173 };\n+174\n+178 template\n+_\b1_\b7_\b9 class _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+180 {\n+181 public:\n+_\b1_\b9_\b0 typedef TS _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt;\n+191\n+_\b1_\b9_\b5 typedef TG _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n 196\n-197\n-198namespace Impl {\n-199\n-200 template\n-201 constexpr void evaluateFoldExpression(std::initializer_list&&)\n-202 {}\n-203\n-204 template\n-205 constexpr void forEachIndex(Range&& _\br_\ba_\bn_\bg_\be, F&& f, std::\n-integer_sequence)\n-206 {\n-207 evaluateFoldExpression({(f(_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt(_\br_\ba_\bn_\bg_\be, std::\n-integral_constant())), 0)...});\n-208 }\n+_\b2_\b0_\b3 typedef TL _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+204\n+_\b2_\b0_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bN_\b> _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n 209\n-210 template\n-211 constexpr void forEach(std::integer_sequence /*range*/, F&& f,\n-PriorityTag<2>)\n-212 {\n-213 evaluateFoldExpression({(f(std::integral_constant()),\n-0)...});\n-214 }\n-215\n-216\n-217 template()))>::value, int> = 0>\n-219 constexpr void forEach(Range&& _\br_\ba_\bn_\bg_\be, F&& f, PriorityTag<1>)\n-220 {\n-221 auto size = _\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bi_\bz_\be(_\br_\ba_\bn_\bg_\be);\n-222 auto indices = std::make_index_sequence();\n-223 (forEachIndex)(std::forward(_\br_\ba_\bn_\bg_\be), std::forward(f), indices);\n-224 }\n-225\n-226 template\n-227 constexpr void forEach(Range&& _\br_\ba_\bn_\bg_\be, F&& f, PriorityTag<0>)\n-228 {\n-229 for(auto&& e : _\br_\ba_\bn_\bg_\be)\n-230 f(e);\n-231 }\n-232\n-233} // namespace Impl\n-234\n-235\n-236\n-255template\n-_\b2_\b5_\b6constexpr void _\bf_\bo_\br_\bE_\ba_\bc_\bh(Range&& _\br_\ba_\bn_\bg_\be, F&& f)\n-257{\n-258 Impl::forEach(std::forward(_\br_\ba_\bn_\bg_\be), std::forward(f),\n-_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg_\b<_\b4_\b2_\b>());\n-259}\n+_\b2_\b1_\b3 typedef uint32_t* _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+214\n+_\b2_\b1_\b8 typedef uint32_t* _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+219\n+_\b2_\b2_\b0 _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn()\n+221 : selected_()\n+222 {}\n+223\n+_\b2_\b2_\b4 _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexset)\n+225 : selected_(), size_(0), built_(false)\n+226 {\n+227 _\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(indexset);\n+228 }\n+229\n+230 _\b~_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn();\n+231\n+236 void _\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexset);\n+237\n+241 void _\bf_\br_\be_\be();\n+242\n+246 //IndexSet indexSet() const;\n+247\n+252 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+253\n+258 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+259\n 260\n-261\n-262\n-278template\n-_\b2_\b7_\b9constexpr T _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be(Range&& _\br_\ba_\bn_\bg_\be, T value, F&& f)\n-280{\n-281 _\bf_\bo_\br_\bE_\ba_\bc_\bh(std::forward(_\br_\ba_\bn_\bg_\be), [&](auto&& entry) {\n-282 value = f(value, entry);\n-283 });\n-284 return value;\n-285}\n-286\n-287\n-288\n-289namespace Impl {\n+261 private:\n+262 uint32_t* selected_;\n+263 size_t size_;\n+264 bool built_;\n+265\n+266 };\n+267\n+268 template\n+_\b2_\b6_\b9 inline void _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt&\n+indexset)\n+270 {\n+271 if(built_)\n+272 free();\n+273\n+274 // Count the number of entries the selection has to hold\n+275 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+276 const _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br end = indexset._\be_\bn_\bd();\n+277 int entries = 0;\n+278\n+279 for(_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br index = indexset._\bb_\be_\bg_\bi_\bn(); index != end; ++index)\n+280 if(AttributeSet::contains(index->local().attribute()))\n+281 ++entries;\n+282\n+283 selected_ = new uint32_t[entries];\n+284 built_ = true;\n+285\n+286 entries = 0;\n+287 for(_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br index = indexset._\bb_\be_\bg_\bi_\bn(); index != end; ++index)\n+288 if(AttributeSet::contains(index->local().attribute()))\n+289 selected_[entries++]= index->local().local();\n 290\n-291 struct Id {\n-292 template\n-293 constexpr T operator()(T&& x) const {\n-294 return std::forward(x);\n-295 }\n-296 };\n-297\n-298 template\n-299 constexpr decltype(auto) ifElse(std::true_type, IfFunc&& ifFunc, ElseFunc&&\n-/*elseFunc*/)\n-300 {\n-301 return ifFunc(Id{});\n-302 }\n-303\n-304 template\n-305 constexpr decltype(auto) ifElse(std::false_type, IfFunc&& /*ifFunc*/,\n-ElseFunc&& elseFunc)\n-306 {\n-307 return elseFunc(Id{});\n-308 }\n-309\n-310 template\n-311 decltype(auto) ifElse(const bool& condition, IfFunc&& ifFunc, ElseFunc&&\n-elseFunc)\n-312 {\n-313 if (condition)\n-314 return ifFunc(Id{});\n-315 else\n-316 return elseFunc(Id{});\n-317 }\n-318\n-319} // namespace Impl\n-320\n+291 size_=entries;\n+292 built_=true;\n+293 }\n+294\n+295 template\n+_\b2_\b9_\b6 uint32_t* _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n+297 {\n+298 return selected_;\n+299 }\n+300\n+301 template\n+_\b3_\b0_\b2 uint32_t* _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\be_\bn_\bd() const\n+303 {\n+304 return selected_+size_;\n+305 }\n+306\n+307 template\n+_\b3_\b0_\b8 inline void _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bf_\br_\be_\be()\n+309 {\n+310 delete[] selected_;\n+311 size_=0;\n+312 built_=false;\n+313 }\n+314\n+315 template\n+_\b3_\b1_\b6 inline _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\b~_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn()\n+317 {\n+318 if(built_)\n+319 free();\n+320 }\n 321\n-322\n-343template\n-_\b3_\b4_\b4decltype(auto) _\bi_\bf_\bE_\bl_\bs_\be(const Condition& condition, IfFunc&& ifFunc,\n-ElseFunc&& elseFunc)\n-345{\n-346 return Impl::ifElse(condition, std::forward(ifFunc), std::\n-forward(elseFunc));\n-347}\n-348\n-356template\n-_\b3_\b5_\b7void _\bi_\bf_\bE_\bl_\bs_\be(const Condition& condition, IfFunc&& ifFunc)\n-358{\n-359 _\bi_\bf_\bE_\bl_\bs_\be(condition, std::forward(ifFunc), [](auto&&) {});\n-360}\n-361\n-362\n-363\n-364namespace Impl {\n-365\n-366 struct _\bM_\ba_\bx {\n-367 template\n-368 constexpr decltype(auto) operator()(Args&&... args) const\n-369 {\n-370 using T = std::common_type_t;\n-371 return std::max({T(args)...});\n-372 }\n-373 };\n-374\n-375 struct Min {\n-376 template\n-377 constexpr decltype(auto) operator()(Args&&... args) const\n-378 {\n-379 using T = std::common_type_t;\n-380 return std::min({T(args)...});\n-381 }\n-382 };\n-383\n-384} // namespace Impl\n-385\n-386\n-417template\n-_\b4_\b1_\b8class _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br {\n-419\n-420 static_assert(std::is_default_constructible_v,\n-421 \"Operator in integral expressions shall be constexpr default\n-constructible\");\n-422\n-423 inline static constexpr Functor _functor = Functor{};\n-424\n-425public:\n-426\n-436 template\n-_\b4_\b3_\b7 constexpr decltype(auto) operator()(const Args&... args) const\n-438 {\n-439 if constexpr (std::conjunction_v...>)\n-440 {\n-441 constexpr auto result = _functor(Args::value...);\n-442 // apply functor on integral constant arguments and return an integral\n-constant of the result\n-443 // this is guaranteed to be evaluated at compile-time\n-444 return std::integral_constant,result>{};\n-445 } else {\n-446 // apply functor directly on arguments and return the result of the functor\n-447 // (integral constants are likely to be casted to underlying type)\n-448 // this not is guaranteed to be evaluated at compile-time although is\n-possible if expression is constexpr\n-449 return _functor(args...);\n-450 }\n-451 }\n-452};\n-453\n-458template\n-_\b4_\b5_\b9constexpr _\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b> _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(const Functor&)\n-460{\n-461 return {};\n-462}\n-463\n-_\b4_\b8_\b4inline constexpr auto _\bm_\ba_\bx = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Max{});\n-485\n-_\b5_\b0_\b6inline constexpr auto _\bm_\bi_\bn = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(Impl::Min{});\n-507\n-_\b5_\b2_\b8inline constexpr auto _\bp_\bl_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::plus<>{});\n-529\n-_\b5_\b5_\b0inline constexpr auto _\bm_\bi_\bn_\bu_\bs = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::minus<>{});\n-551\n-_\b5_\b7_\b2inline constexpr auto _\be_\bq_\bu_\ba_\bl_\b__\bt_\bo = _\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(std::equal_to<>{});\n-573\n-574\n-586template\n-_\b5_\b8_\b7[[deprecated(\"Use Hybrid::equal_to instead!\")]] constexpr auto _\be_\bq_\bu_\ba_\bl_\bs(T1&&\n-t1, T2&& t2){\n-588 return _\be_\bq_\bu_\ba_\bl_\b__\bt_\bo(std::forward(t1), std::forward(t2));\n-589}\n-590\n-591\n-592namespace Impl {\n-593\n-594 // This overload is selected if the passed value is already a compile time\n-constant.\n-595 template\n-596 constexpr Result switchCases(std::integer_sequence, const\n-std::integral_constant& /*value*/, Branches&& branches,\n-ElseBranch&& elseBranch)\n-597 {\n-598 // In case we pass a value known at compile time, we no longer have to do\n-599 // a dynamic to static dispatch via recursion. The only thing that's left\n-600 // is to check if the value is contained in the passed range.\n-601 // If this is true, we have to pass it to the branches callback\n-602 // as an appropriate integral_constant type. Otherwise we have to\n-603 // execute the else callback.\n-604 if constexpr (((t0 == value) || ... || (tt == value)))\n-605 return branches(std::integral_constant{});\n-606 else\n-607 return elseBranch();\n-608 }\n-609\n-610 // This overload is selected if the passed value is dynamic.\n-611 template\n-612 constexpr Result switchCases(std::integer_sequence, const Value& /\n-*value*/, Branches&& /*branches*/, ElseBranch&& elseBranch)\n-613 {\n-614 return elseBranch();\n-615 }\n-616\n-617 template\n-618 constexpr Result switchCases(std::integer_sequence, const\n-Value& value, Branches&& branches, ElseBranch&& elseBranch)\n-619 {\n-620 if (t0 == value)\n-621 return branches(std::integral_constant());\n-622 else\n-623 return Impl::switchCases(std::integer_sequence(), value,\n-branches, elseBranch);\n-624 }\n-625\n-626 // This overload is selected if the range of cases is an IntegralRange\n-627 template \n-628 constexpr Result switchCases(IntegralRange _\br_\ba_\bn_\bg_\be, const Value& value,\n-Branches&& branches, ElseBranch&& elseBranch)\n-629 {\n-630 return _\br_\ba_\bn_\bg_\be.contains(value) ? branches(T(value)) : elseBranch();\n-631 }\n-632\n-633 // This overload is selected if the range of cases is a StaticIntegralRange\n-634 template \n-635 constexpr Result switchCases(StaticIntegralRange _\br_\ba_\bn_\bg_\be, const\n-Value& value, Branches&& branches, ElseBranch&& elseBranch)\n-636 {\n-637 using seq = typename decltype(_\br_\ba_\bn_\bg_\be)::integer_sequence;\n-638 return Impl::switchCases(seq{}, value, branches, elseBranch);\n-639 }\n-640\n-641} // namespace Impl\n-642\n-643\n-644\n-672template\n-_\b6_\b7_\b3constexpr decltype(auto) _\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs(const Cases& cases, const Value& value,\n-Branches&& branches, ElseBranch&& elseBranch)\n-674{\n-675 return Impl::switchCases(cases, value, std::\n-forward(branches), std::forward(elseBranch));\n-676}\n-677\n-697template\n-_\b6_\b9_\b8constexpr void _\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs(const Cases& cases, const Value& value,\n-Branches&& branches)\n-699{\n-700 Impl::switchCases(cases, value, std::forward(branches),\n-701 []{ assert(false && \"value not found in range\"); });\n-702}\n-703\n-722template \n-_\b7_\b2_\b3constexpr void _\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs(_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be_\b<_\bT_\b> _\br_\ba_\bn_\bg_\be, const Value& value,\n-Branches&& branches)\n-724{\n-725 assert(_\br_\ba_\bn_\bg_\be.contains(value) && \"value not found in range\");\n-726 branches(T(value));\n-727}\n-728\n-729} // namespace Hybrid\n-730} // namespace Dune\n-731\n-732\n-733#endif // #ifndef DUNE_COMMON_HYBRIDUTILITIES_HH\n-_\bt_\by_\bp_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh\n-Utilities for type computations, constraining overloads, ...\n-_\bf_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-Implements a vector constructed from a given type representing a field and a\n-compile-time given size.\n-_\br_\ba_\bn_\bg_\be_\bu_\bt_\bi_\bl_\bi_\bt_\bi_\be_\bs_\b._\bh_\bh\n-Utilities for reduction like operations on ranges.\n-_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh\n-_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Traits for type conversions and type information.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\b:_\b:_\b__\b0\n-constexpr index_constant< 0 > _0\n-Compile time index with value 0.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indices.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\ba_\bn_\bg_\be\n-static StaticIntegralRange< T, to, from > range(std::integral_constant< T, from\n->, std::integral_constant< T, to >) noexcept\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn rangeutilities.hh:312\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bi_\bz_\be\n-constexpr auto size(const T &t)\n-Size query.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn_\bu_\bs\n-constexpr auto minus\n-Function object for performing subtraction.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:550\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-constexpr auto equals(T1 &&t1, T2 &&t2)\n-Equality comparison.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:587\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bf_\bo_\br_\bE_\ba_\bc_\bh\n-constexpr void forEach(Range &&range, F &&f)\n-Range based for loop.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bq_\bu_\ba_\bl_\b__\bt_\bo\n-constexpr auto equal_to\n-Function object for performing equality comparison.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:572\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bs_\bw_\bi_\bt_\bc_\bh_\bC_\ba_\bs_\be_\bs\n-constexpr decltype(auto) switchCases(const Cases &cases, const Value &value,\n-Branches &&branches, ElseBranch &&elseBranch)\n-Switch statement.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:673\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\ba_\bx\n-constexpr auto max\n-Function object that returns the greater of the given values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bp_\bl_\bu_\bs\n-constexpr auto plus\n-Function object for performing addition.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:528\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bm_\bi_\bn\n-constexpr auto min\n-Function object that returns the smaller of the given values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:506\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bf_\bE_\bl_\bs_\be\n-decltype(auto) ifElse(const Condition &condition, IfFunc &&ifFunc, ElseFunc\n-&&elseFunc)\n-A conditional expression.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:344\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bi_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be\n-constexpr auto integralRange(const Begin &begin, const End &end)\n-Create an integral range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n-constexpr decltype(auto) elementAt(Container &&c, Index &&i)\n-Get element at given position from container.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n-constexpr T accumulate(Range &&range, T value, F &&f)\n-Accumulate values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:279\n-_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be_\bE_\bn_\bt_\br_\by\n-constexpr auto integerSequenceEntry(std::integer_sequence< T, t... >, std::\n-integral_constant< std::size_t, index > i)\n-Get entry of std::integer_sequence.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:492\n+322 template\n+_\b3_\b2_\b3 _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b> _\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n+324 {\n+325 return _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>(indexSet_->begin(),\n+326 indexSet_->end());\n+327 }\n+328\n+329 template\n+_\b3_\b3_\b0 _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b> _\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\be_\bn_\bd() const\n+331 {\n+332 return _\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>(indexSet_->end(),\n+333 indexSet_->end());\n+334 }\n+335 template\n+_\b3_\b3_\b6 void _\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b<_\bT_\bS_\b,_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt&\n+indexset)\n+337 {\n+338 indexSet_ = &indexset;\n+339 }\n+340\n+344}\n+345#endif // DUNE_COMMON_PARALLEL_SELECTION_HH\n+_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\bf_\ba_\bc_\ba_\bd_\be_\bs_\b._\bh_\bh\n+This file implements iterator facade classes for writing stl conformant\n+iterators.\n+_\bi_\bn_\bd_\be_\bx_\bs_\be_\bt_\b._\bh_\bh\n+Provides a map between global and local indices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+Get an iterator over the selected indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:330\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+void setIndexSet(const ParallelIndexSet &indexset)\n+Set the index set of the selection.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:269\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+void setIndexSet(const ParallelIndexSet &indexset)\n+Set the index set of the selection.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:336\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+Get an iterator over the indices positioned at the first index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+Get an iterator over the indices positioned after the last index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+Get an iterator over the selected indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:302\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+Get the index set we are a selection for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+Free allocated memory.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:308\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+Get the index set we are a selection for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:323\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\b~_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+~Selection()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:316\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bh_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n-constexpr HybridFunctor< Functor > hybridFunctor(const Functor &)\n-Returns an HybridFunctor adaptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:459\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn binaryfunctions.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\b:_\b:_\bH_\by_\bb_\br_\bi_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n-Adapter of a hybrid functor that maintains results hybrid.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hybridutilities.hh:418\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be\n-dynamic integer range for use in range-based for loops\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn rangeutilities.hh:177\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\ba_\bt_\bi_\bc_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bR_\ba_\bn_\bg_\be\n-static integer range for use in range-based for loops\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn rangeutilities.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bI_\bn_\bt_\be_\bg_\br_\ba_\bl_\bC_\bo_\bn_\bs_\bt_\ba_\bn_\bt\n-Check if T is an std::integral_constant\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:384\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bi_\bo_\br_\bi_\bt_\by_\bT_\ba_\bg\n-Helper class for tagging priorities.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typeutilities.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A constant random access iterator for the Dune::ArrayList class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:368\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Manager class for the mapping between local indices and globally unique\n+indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A const iterator over an uncached selection.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstArrayListIterator< IndexPair< TG, TL >, N, std::allocator< Dune::\n+IndexPair< TG, TL > > > ParallelIndexSetIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+void operator++()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+uint32_t operator*() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+TS AttributeSet\n+The type of the Set of attributes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< TG, TL, N > ParallelIndexSet\n+The type of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+SelectionIterator(const ParallelIndexSetIterator &iter, const\n+ParallelIndexSetIterator &end)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const SelectionIterator< TS, TG, TL, N > &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:83\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const SelectionIterator< TS, TG, TL, N > &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+An uncached selection of indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+UncachedSelection()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+SelectionIterator< TS, TG, TL, N > iterator\n+The type of the iterator of the selected indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+TS AttributeSet\n+The type of the Set of attributes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+iterator const_iterator\n+The type of the iterator of the selected indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TG GlobalIndex\n+The type of the global index of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+UncachedSelection(const ParallelIndexSet &indexset)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:143\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< GlobalIndex, LocalIndex, N > ParallelIndexSet\n+The type of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bc_\ba_\bc_\bh_\be_\bd_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TL LocalIndex\n+The type of the local index of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:122\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+A cached selection of indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TG GlobalIndex\n+The type of the global index of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:195\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+Selection(const ParallelIndexSet &indexset)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:224\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn\n+Selection()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:220\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TL LocalIndex\n+The type of the local index of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+TS AttributeSet\n+The type of the set of attributes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+uint32_t * iterator\n+The type of the iterator of the selected indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:213\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+uint32_t * const_iterator\n+The type of the iterator of the selected indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< GlobalIndex, LocalIndex, N > ParallelIndexSet\n+The type of the underlying index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn selection.hh:208\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00068.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00068.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: scalarmatrixview.hh File Reference\n+dune-common: indexset.hh File Reference\n \n \n \n \n \n \n \n@@ -65,46 +65,125 @@\n
    \n \n \n \n \n \n \n
    \n \n-
    scalarmatrixview.hh File Reference
    \n+Classes |\n+Namespaces |\n+Enumerations |\n+Functions
    \n+ \n \n
    \n \n-

    Implements a scalar matrix view wrapper around an existing scalar. \n+

    Provides a map between global and local indices. \n More...

    \n-
    #include <cstddef>
    \n-#include <type_traits>
    \n-#include <ostream>
    \n-#include <dune/common/boundschecking.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/matvectraits.hh>
    \n-#include <dune/common/densematrix.hh>
    \n-#include <dune/common/fmatrix.hh>
    \n-#include <dune/common/scalarvectorview.hh>
    \n+
    #include <algorithm>
    \n+#include <cstdint>
    \n+#include <iostream>
    \n+#include <dune/common/arraylist.hh>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/parallel/localindex.hh>
    \n+#include <dune/common/parallel/mpitraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    class  Dune::IndexPair< TG, TL >
     A pair consisting of a global and local index. More...
     
    class  Dune::InvalidIndexSetState
     Exception indicating that the index set is not in the expected state. More...
     
    class  Dune::ParallelIndexSet< TG, TL, N >
     Manager class for the mapping between local indices and globally unique indices. More...
     
    class  Dune::ParallelIndexSet< TG, TL, N >::iterator
     The iterator over the pairs. More...
     
    class  Dune::GlobalLookupIndexSet< I >
     Decorates an index set with the possibility to find a global index that is mapped to a specific local. More...
     
    struct  Dune::LocalIndexComparator< T >
     
    struct  Dune::IndexSetSortFunctor< TG, TL >
     
    \n \n \n \n \n+

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n+\n+\n+\n+\n+

    \n+Enumerations

    enum  Dune::ParallelIndexSetState { Dune::GROUND\n+, Dune::RESIZE\n+ }
     The states the index set can be in. More...
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class TG , class TL >
    std::ostream & Dune::operator<< (std::ostream &os, const IndexPair< TG, TL > &pair)
     Print an index pair.
     
    template<class TG , class TL >
    bool Dune::operator== (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
     
    template<class TG , class TL >
    bool Dune::operator!= (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
     
    template<class TG , class TL >
    bool Dune::operator< (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
     
    template<class TG , class TL >
    bool Dune::operator> (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
     
    template<class TG , class TL >
    bool Dune::operator<= (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
     
    template<class TG , class TL >
    bool Dune::operator>= (const IndexPair< TG, TL > &, const IndexPair< TG, TL > &)
     
    template<class TG , class TL >
    bool Dune::operator== (const IndexPair< TG, TL > &, const TG &)
     
    template<class TG , class TL >
    bool Dune::operator!= (const IndexPair< TG, TL > &, const TG &)
     
    template<class TG , class TL >
    bool Dune::operator< (const IndexPair< TG, TL > &, const TG &)
     
    template<class TG , class TL >
    bool Dune::operator> (const IndexPair< TG, TL > &, const TG &)
     
    template<class TG , class TL >
    bool Dune::operator<= (const IndexPair< TG, TL > &, const TG &)
     
    template<class TG , class TL >
    bool Dune::operator>= (const IndexPair< TG, TL > &, const TG &)
     
    template<class TG , class TL , int N>
    std::ostream & Dune::operator<< (std::ostream &os, const ParallelIndexSet< TG, TL, N > &indexSet)
     Print an index set.
     
    \n

    Detailed Description

    \n-

    Implements a scalar matrix view wrapper around an existing scalar.

    \n+

    Provides a map between global and local indices.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,28 +1,109 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-scalarmatrixview.hh File Reference\n-_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bD_\be_\bn_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by\n-Implements a scalar matrix view wrapper around an existing scalar. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bm_\ba_\bt_\bv_\be_\bc_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bd_\be_\bn_\bs_\be_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bv_\be_\bc_\bt_\bo_\br_\bv_\bi_\be_\bw_\b._\bh_\bh>\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+indexset.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bp_\bu_\bt_\bi_\bn_\bg_\b _\bb_\ba_\bs_\be_\bd_\b _\bo_\bn_\b _\bI_\bn_\bd_\be_\bx_\bs_\be_\bt_\bs\n+Provides a map between global and local indices. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\ba_\br_\br_\ba_\by_\bl_\bi_\bs_\bt_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bl_\bo_\bc_\ba_\bl_\bi_\bn_\bd_\be_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\b _\bT_\bG_\b,_\b _\bT_\bL_\b _\b>\n+\u00a0 A pair consisting of a global and local index. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be\n+\u00a0 _\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn indicating that the index set is not in the expected state.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\b _\bT_\bG_\b,_\b _\bT_\bL_\b,_\b _\bN_\b _\b>\n+\u00a0 Manager class for the mapping between local indices and globally\n+ unique indices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\b _\bT_\bG_\b,_\b _\bT_\bL_\b,_\b _\bN_\b _\b>_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 The iterator over the pairs. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\b _\bI_\b _\b>\n+\u00a0 Decorates an index set with the possibility to find a global index\n+ that is mapped to a specific local. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bC_\bo_\bm_\bp_\ba_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bo_\br_\bt_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\b _\bT_\bG_\b,_\b _\bT_\bL_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bG_\bR_\bO_\bU_\bN_\bD , _\bD_\bu_\bn_\be_\b:_\b:_\bR_\bE_\bS_\bI_\bZ_\bE }\n+\u00a0 The states the index set can be in. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL >\n+ &pair)\n+\u00a0 Print an index pair.\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br<\n+ TG, TL > &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br<\n+ TG, TL > &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b< (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br<\n+ TG, TL > &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b> (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br<\n+ TG, TL > &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br<\n+ TG, TL > &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br<\n+ TG, TL > &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const TG &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const TG &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b< (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const TG &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b> (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const TG &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const TG &)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b= (const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br< TG, TL > &, const TG &)\n+\u00a0\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt< TG,\n+ TL, N > &indexSet)\n+\u00a0 Print an index set.\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implements a scalar matrix view wrapper around an existing scalar.\n+Provides a map between global and local indices.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00068_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00068_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: scalarmatrixview.hh Source File\n+dune-common: indexset.hh Source File\n \n \n \n \n \n \n \n@@ -70,202 +70,964 @@\n
    \n
    \n \n \n \n \n \n
    \n-
    scalarmatrixview.hh
    \n+
    indexset.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_SCALARMATRIXVIEW_HH
    \n-
    6#define DUNE_COMMON_SCALARMATRIXVIEW_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_INDEXSET_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_INDEXSET_HH
    \n
    7
    \n-
    8#include <cstddef>
    \n-
    9#include <type_traits>
    \n-
    10#include <ostream>
    \n+
    8#include <algorithm>
    \n+
    9#include <cstdint> // for uint32_t
    \n+
    10#include <iostream>
    \n
    11
    \n-\n-\n-\n-\n-\n-\n-
    18
    \n-
    19
    \n-
    20namespace Dune {
    \n-
    21
    \n-
    22namespace Impl {
    \n-
    23
    \n-
    39 template<class K>
    \n-
    40 class ScalarMatrixView :
    \n-
    41 public DenseMatrix<ScalarMatrixView<K>>
    \n-
    42 {
    \n-
    43 ScalarVectorView<K> data_;
    \n-
    44 using Base = DenseMatrix<ScalarMatrixView<K>>;
    \n-
    45
    \n-
    46 template <class>
    \n-
    47 friend class ScalarMatrixView;
    \n-
    48 public:
    \n+\n+\n+\n+\n+
    16
    \n+
    17namespace Dune
    \n+
    18{
    \n+
    28 // forward declarations
    \n+
    29
    \n+
    30 template<class TG, class TL>
    \n+
    31 class IndexPair;
    \n+
    32
    \n+
    38 template<class TG, class TL>
    \n+
    39 std::ostream& operator<<(std::ostream& os, const IndexPair<TG,TL>& pair);
    \n+
    40
    \n+
    41 template<class TG, class TL>
    \n+
    42 bool operator==(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    43
    \n+
    44 template<class TG, class TL>
    \n+
    45 bool operator!=(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    46
    \n+
    47 template<class TG, class TL>
    \n+
    48 bool operator<(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n
    49
    \n-
    50 //===== type definitions and constants
    \n-
    51
    \n-
    54 constexpr static int blocklevel = 1;
    \n+
    50 template<class TG, class TL>
    \n+
    51 bool operator>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    52
    \n+
    53 template<class TG, class TL>
    \n+
    54 bool operator<=(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n
    55
    \n-
    56 using size_type = typename Base::size_type;
    \n-
    57 using row_type = typename Base::row_type;
    \n-
    58 using row_reference = typename Base::row_reference;
    \n-\n-
    60
    \n-
    63 constexpr static int rows = 1;
    \n-
    66 constexpr static int cols = 1;
    \n+
    56 template<class TG, class TL>
    \n+
    57 bool operator >=(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    58
    \n+
    59 template<class TG, class TL>
    \n+
    60 bool operator==(const IndexPair<TG,TL>&, const TG&);
    \n+
    61
    \n+
    62 template<class TG, class TL>
    \n+
    63 bool operator!=(const IndexPair<TG,TL>&, const TG&);
    \n+
    64
    \n+
    65 template<class TG, class TL>
    \n+
    66 bool operator<(const IndexPair<TG,TL>&, const TG&);
    \n
    67
    \n-
    68 //===== constructors
    \n-
    71 constexpr ScalarMatrixView ()
    \n-
    72 : data_()
    \n-
    73 {}
    \n-
    74
    \n-
    76 ScalarMatrixView (K* p) :
    \n-
    77 data_(p)
    \n-
    78 {}
    \n+
    68 template<class TG, class TL>
    \n+
    69 bool operator>(const IndexPair<TG,TL>&, const TG&);
    \n+
    70
    \n+
    71 template<class TG, class TL>
    \n+
    72 bool operator<=(const IndexPair<TG,TL>&, const TG&);
    \n+
    73
    \n+
    74 template<class TG, class TL>
    \n+
    75 bool operator >=(const IndexPair<TG,TL>&, const TG&);
    \n+
    76
    \n+
    77 template<typename T>
    \n+
    78 struct MPITraits;
    \n
    79
    \n-
    81 ScalarMatrixView (const ScalarMatrixView &other) :
    \n-
    82 Base(),
    \n-
    83 data_(other.data_)
    \n-
    84 {}
    \n-
    85
    \n-
    87 ScalarMatrixView (ScalarMatrixView &&other) :
    \n-
    88 Base(),
    \n-
    89 data_( other.data_ )
    \n-
    90 {}
    \n-
    91
    \n-
    93 ScalarMatrixView& operator= (const ScalarMatrixView& other)
    \n-
    94 {
    \n-
    95 data_ = other.data_;
    \n-
    96 return *this;
    \n-
    97 }
    \n-
    98
    \n-
    99 template<class KK>
    \n-
    100 ScalarMatrixView& operator= (const ScalarMatrixView<KK>& other)
    \n-
    101 {
    \n-
    102 data_ = other.data_;
    \n-
    103 return *this;
    \n-
    104 }
    \n-
    105
    \n-
    107 template<typename T,
    \n-
    108 std::enable_if_t<std::is_convertible<T, K>::value, int> = 0>
    \n-
    109 inline ScalarMatrixView& operator= (const T& k)
    \n-
    110 {
    \n-
    111 data_ = k;
    \n-
    112 return *this;
    \n-
    113 }
    \n-
    114
    \n-
    115 // make this thing a matrix
    \n-
    116 static constexpr size_type mat_rows() { return 1; }
    \n-
    117 static constexpr size_type mat_cols() { return 1; }
    \n-
    118
    \n-
    119 row_reference mat_access ([[maybe_unused]] size_type i)
    \n-
    120 {
    \n-
    121 DUNE_ASSERT_BOUNDS(i == 0);
    \n-
    122 return data_;
    \n-
    123 }
    \n-
    124
    \n-
    125 const_row_reference mat_access ([[maybe_unused]] size_type i) const
    \n-
    126 {
    \n-
    127 DUNE_ASSERT_BOUNDS(i == 0);
    \n-
    128 return data_;
    \n-
    129 }
    \n-
    130 }; // class ScalarMatrixView
    \n-
    131
    \n-
    133 template<typename K>
    \n-
    134 std::ostream& operator<< (std::ostream& s, const ScalarMatrixView<K>& a)
    \n-
    135 {
    \n-
    136 s << a[0][0];
    \n-
    137 return s;
    \n-
    138 }
    \n-
    139
    \n-
    141 template<class T,
    \n-
    142 std::enable_if_t<IsNumber<T>::value, int> = 0>
    \n-
    143 auto asMatrix(T& t)
    \n-
    144 {
    \n-
    145 return ScalarMatrixView<T>{&t};
    \n-
    146 }
    \n-
    147
    \n-
    149 template<class T,
    \n-
    150 std::enable_if_t<IsNumber<T>::value, int> = 0>
    \n-
    151 auto asMatrix(const T& t)
    \n-
    152 {
    \n-
    153 return ScalarMatrixView<const T>{&t};
    \n-
    154 }
    \n+
    83 template<class TG, class TL>
    \n+
    \n+\n+
    85 {
    \n+
    86 friend std::ostream& operator<<<>(std::ostream&, const IndexPair<TG,TL>&);
    \n+
    87 friend bool operator==<>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    88 friend bool operator!=<>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    89 friend bool operator< <>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    90 friend bool operator><>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    91 friend bool operator<=<>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    92 friend bool operator>=<>(const IndexPair<TG,TL>&, const IndexPair<TG,TL>&);
    \n+
    93 friend bool operator==<>(const IndexPair<TG,TL>&, const TG &);
    \n+
    94 friend bool operator!=<>(const IndexPair<TG,TL>&, const TG &);
    \n+
    95 friend bool operator< <>(const IndexPair<TG,TL>&, const TG &);
    \n+
    96 friend bool operator> <>(const IndexPair<TG,TL>&, const TG &);
    \n+
    97 friend bool operator<=<>(const IndexPair<TG,TL>&, const TG &);
    \n+
    98 friend bool operator>=<>(const IndexPair<TG,TL>&, const TG &);
    \n+
    99 friend struct MPITraits<IndexPair<TG,TL> >;
    \n+
    100
    \n+
    101 public:
    \n+
    107 typedef TG GlobalIndex;
    \n+
    108
    \n+
    120 typedef TL LocalIndex;
    \n+
    121
    \n+\n+
    129
    \n+\n+\n+
    141
    \n+
    147 inline const GlobalIndex& global() const;
    \n+
    148
    \n+
    154 inline LocalIndex& local();
    \n
    155
    \n-
    157 template<class T,
    \n-
    158 std::enable_if_t<not IsNumber<T>::value, int> = 0>
    \n-
    159 T& asMatrix(T& t)
    \n-
    160 {
    \n-
    161 return t;
    \n-
    162 }
    \n-
    163
    \n-
    165 template<class T,
    \n-
    166 std::enable_if_t<not IsNumber<T>::value, int> = 0>
    \n-
    167 const T& asMatrix(const T& t)
    \n-
    168 {
    \n-
    169 return t;
    \n-
    170 }
    \n-
    171
    \n-
    174} // end namespace Impl
    \n+
    161 inline const LocalIndex& local() const;
    \n+
    162
    \n+
    168 inline void setLocal(int index);
    \n+
    169 private:
    \n+
    171 GlobalIndex global_;
    \n+\n+
    174 };
    \n+
    \n
    175
    \n-
    176 template<class K>
    \n-
    177 struct FieldTraits<Impl::ScalarMatrixView<K>> : public FieldTraits<std::remove_const_t<K>> {};
    \n-
    178
    \n-
    179 template<class K>
    \n-
    180 struct DenseMatVecTraits<Impl::ScalarMatrixView<K>>
    \n+
    \n+\n
    181 {
    \n-
    182 using derived_type = Impl::ScalarMatrixView<K>;
    \n-
    183 using row_type = Impl::ScalarVectorView<K>;
    \n-
    184 using row_reference = row_type&;
    \n-
    185 using const_row_reference = const row_type&;
    \n-
    186 using value_type = std::remove_const_t<K>;
    \n-
    187 using size_type = std::size_t;
    \n-
    188 };
    \n-
    189
    \n-
    190
    \n-
    191 template<class K>
    \n-
    192 struct AutonomousValueType<Impl::ScalarMatrixView<K>>
    \n-
    193 {
    \n-
    194 using type = FieldMatrix<std::remove_const_t<K>,1,1>;
    \n-
    195 };
    \n-
    196
    \n-
    197
    \n-
    198} // end namespace Dune
    \n-
    199
    \n-
    200#endif // DUNE_COMMON_SCALARMATRIXVIEW_HH
    \n-
    Documentation of the traits classes you need to write for each implementation of DenseVector or Dense...
    \n-
    Implements a matrix constructed from a given type representing a field and a compile-time given numbe...
    \n-
    Implements a scalar vector view wrapper around an existing scalar.
    \n-
    Macro for wrapping boundary checks.
    \n-
    Implements a matrix constructed from a given type representing a field and compile-time given number ...
    \n-
    Traits for type conversions and type information.
    \n-
    #define DUNE_ASSERT_BOUNDS(cond)
    If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do nothing.
    Definition boundschecking.hh:30
    \n+\n+
    190 RESIZE
    \n+
    200 };
    \n+
    \n+
    201
    \n+\n+
    206
    \n+
    207 // Forward declaration
    \n+
    208 template<class I> class GlobalLookupIndexSet;
    \n+
    209
    \n+
    216 template<typename TG, typename TL, int N=100>
    \n+
    \n+\n+
    218 {
    \n+
    219 friend class GlobalLookupIndexSet<ParallelIndexSet<TG,TL,N> >;
    \n+
    220
    \n+
    221 public:
    \n+
    226 typedef TG GlobalIndex;
    \n+
    227
    \n+
    239 typedef TL LocalIndex;
    \n+
    240
    \n+\n+
    245
    \n+
    252 constexpr static int arraySize = (N>0) ? N : 1;
    \n+
    253
    \n+
    \n+
    255 class iterator :
    \n+
    256 public ArrayList<IndexPair,N>::iterator
    \n+
    257 {
    \n+
    258 typedef typename ArrayList<IndexPair,N>::iterator
    \n+\n+\n+
    261 public:
    \n+
    \n+
    262 iterator(ParallelIndexSet<TG,TL,N>& indexSet, const Father& father)
    \n+
    263 : Father(father), indexSet_(&indexSet)
    \n+
    264 {}
    \n+
    \n+
    265
    \n+
    266 private:
    \n+
    276 inline void markAsDeleted() const
    \n+
    277 {
    \n+
    278#ifndef NDEBUG
    \n+
    279 if(indexSet_->state_ != RESIZE)
    \n+
    280 DUNE_THROW(InvalidIndexSetState, "Indices can only be removed "
    \n+
    281 <<"while in RESIZE state!");
    \n+
    282#endif
    \n+
    283 Father::operator*().local().setState(DELETED);
    \n+
    284 }
    \n+
    285
    \n+
    287 ParallelIndexSet<TG,TL,N>* indexSet_;
    \n+
    288
    \n+
    289 };
    \n+
    \n+
    290
    \n+
    291
    \n+
    292
    \n+
    294 typedef typename
    \n+\n+\n+
    297
    \n+\n+
    302
    \n+
    \n+\n+
    308 {
    \n+
    309 return state_;
    \n+
    310 }
    \n+
    \n+
    311
    \n+\n+
    318
    \n+
    327 inline void add(const GlobalIndex& global);
    \n+
    328
    \n+
    337 inline void add(const GlobalIndex& global, const LocalIndex& local);
    \n+
    338
    \n+
    346 inline void markAsDeleted(const iterator& position);
    \n+
    347
    \n+
    360 void endResize();
    \n+
    361
    \n+
    372 inline IndexPair&
    \n+
    373 operator[](const GlobalIndex& global);
    \n+
    374
    \n+
    384 inline IndexPair&
    \n+
    385 at(const GlobalIndex& global);
    \n+
    386
    \n+
    396 inline bool
    \n+
    397 exists (const GlobalIndex& global) const;
    \n+
    398
    \n+
    409 inline const IndexPair&
    \n+
    410 operator[](const GlobalIndex& global) const;
    \n+
    411
    \n+
    421 inline const IndexPair&
    \n+
    422 at(const GlobalIndex& global) const;
    \n+
    423
    \n+
    428 inline iterator begin();
    \n+
    429
    \n+
    434 inline iterator end();
    \n+
    435
    \n+
    440 inline const_iterator begin() const;
    \n+
    441
    \n+
    446 inline const_iterator end() const;
    \n+
    447
    \n+
    457 inline void renumberLocal();
    \n+
    458
    \n+
    465 inline int seqNo() const;
    \n+
    466
    \n+
    471 inline size_t size() const;
    \n+
    472
    \n+
    473 private:
    \n+
    475 ArrayList<IndexPair,N> localIndices_;
    \n+
    477 ArrayList<IndexPair,N> newIndices_;
    \n+\n+
    481 int seqNo_;
    \n+
    483 bool deletedEntries_;
    \n+
    488 inline void merge();
    \n+
    489 };
    \n+
    \n+
    490
    \n+
    491
    \n+
    497 template<class TG, class TL, int N>
    \n+
    498 std::ostream& operator<<(std::ostream& os, const ParallelIndexSet<TG,TL,N>& indexSet);
    \n+
    499
    \n+
    505 template<class I>
    \n+
    \n+\n+
    507 {
    \n+
    508 public:
    \n+\n+
    513
    \n+\n+
    518
    \n+\n+
    523
    \n+\n+
    528
    \n+\n+
    530
    \n+
    537 GlobalLookupIndexSet(const ParallelIndexSet& indexset, std::size_t size);
    \n+
    538
    \n+\n+
    545
    \n+\n+
    550
    \n+
    560 inline const IndexPair&
    \n+
    561 operator[](const GlobalIndex& global) const;
    \n+
    562
    \n+
    566 inline const IndexPair*
    \n+
    567 pair(const std::size_t& local) const;
    \n+
    568
    \n+
    573 inline const_iterator begin() const;
    \n+
    574
    \n+
    579 inline const_iterator end() const;
    \n+
    580
    \n+
    587 inline int seqNo() const;
    \n+
    588
    \n+
    593 inline size_t size() const;
    \n+
    594 private:
    \n+
    598 const ParallelIndexSet& indexSet_;
    \n+
    599
    \n+
    603 std::size_t size_;
    \n+
    604
    \n+
    608 std::vector<const IndexPair*> indices_;
    \n+
    609
    \n+
    610 };
    \n+
    \n+
    611
    \n+
    612
    \n+
    613 template<typename T>
    \n+
    \n+\n+
    615 {
    \n+
    \n+
    616 static bool compare([[maybe_unused]] const T& t1, [[maybe_unused]] const T& t2)
    \n+
    617 {
    \n+
    618 return false;
    \n+
    619 }
    \n+
    \n+
    620 };
    \n+
    \n+
    621
    \n+
    622 template<class TG, class TL>
    \n+
    \n+\n+
    624 {
    \n+
    \n+\n+
    626 {
    \n+
    627 return i1.global()<i2.global() || (i1.global()==i2.global() &&
    \n+\n+
    629 i2.local()));
    \n+
    630 }
    \n+
    \n+
    631 };
    \n+
    \n+
    632
    \n+
    633
    \n+
    634
    \n+
    635 template<class TG, class TL>
    \n+
    \n+
    636 inline std::ostream& operator<<(std::ostream& os, const IndexPair<TG,TL>& pair)
    \n+
    637 {
    \n+
    638 os<<"{global="<<pair.global_<<", local="<<pair.local_<<"}";
    \n+
    639 return os;
    \n+
    640 }
    \n+
    \n+
    641
    \n+
    642 template<class TG, class TL, int N>
    \n+
    \n+
    643 inline std::ostream& operator<<(std::ostream& os, const ParallelIndexSet<TG,TL,N>& indexSet)
    \n+
    644 {
    \n+
    645 typedef typename ParallelIndexSet<TG,TL,N>::const_iterator Iterator;
    \n+
    646 Iterator end = indexSet.end();
    \n+
    647 os<<"{";
    \n+
    648 for(Iterator index = indexSet.begin(); index != end; ++index)
    \n+
    649 os<<*index<<" ";
    \n+
    650 os<<"}";
    \n+
    651 return os;
    \n+
    652
    \n+
    653 }
    \n+
    \n+
    654
    \n+
    655 template<class TG, class TL>
    \n+
    \n+
    656 inline bool operator==(const IndexPair<TG,TL>& a, const IndexPair<TG,TL>& b)
    \n+
    657 {
    \n+
    658 return a.global_==b.global_;
    \n+
    659 }
    \n+
    \n+
    660
    \n+
    661 template<class TG, class TL>
    \n+
    \n+
    662 inline bool operator!=(const IndexPair<TG,TL>& a, const IndexPair<TG,TL>& b)
    \n+
    663 {
    \n+
    664 return a.global_!=b.global_;
    \n+
    665 }
    \n+
    \n+
    666
    \n+
    667 template<class TG, class TL>
    \n+
    \n+
    668 inline bool operator<(const IndexPair<TG,TL>& a, const IndexPair<TG,TL>& b)
    \n+
    669 {
    \n+
    670 return a.global_<b.global_;
    \n+
    671 }
    \n+
    \n+
    672
    \n+
    673 template<class TG, class TL>
    \n+
    \n+
    674 inline bool operator>(const IndexPair<TG,TL>& a, const IndexPair<TG,TL>& b)
    \n+
    675 {
    \n+
    676 return a.global_>b.global_;
    \n+
    677 }
    \n+
    \n+
    678
    \n+
    679 template<class TG, class TL>
    \n+
    \n+
    680 inline bool operator<=(const IndexPair<TG,TL>& a, const IndexPair<TG,TL>& b)
    \n+
    681 {
    \n+
    682 return a.global_<=b.global_;
    \n+
    683 }
    \n+
    \n+
    684
    \n+
    685 template<class TG, class TL>
    \n+
    \n+
    686 inline bool operator >=(const IndexPair<TG,TL>& a, const IndexPair<TG,TL>& b)
    \n+
    687 {
    \n+
    688 return a.global_>=b.global_;
    \n+
    689 }
    \n+
    \n+
    690
    \n+
    691 template<class TG, class TL>
    \n+
    \n+
    692 inline bool operator==(const IndexPair<TG,TL>& a, const TG& b)
    \n+
    693 {
    \n+
    694 return a.global_==b;
    \n+
    695 }
    \n+
    \n+
    696
    \n+
    697 template<class TG, class TL>
    \n+
    \n+
    698 inline bool operator!=(const IndexPair<TG,TL>& a, const TG& b)
    \n+
    699 {
    \n+
    700 return a.global_!=b;
    \n+
    701 }
    \n+
    \n+
    702
    \n+
    703 template<class TG, class TL>
    \n+
    \n+
    704 inline bool operator<(const IndexPair<TG,TL>& a, const TG& b)
    \n+
    705 {
    \n+
    706 return a.global_<b;
    \n+
    707 }
    \n+
    \n+
    708
    \n+
    709 template<class TG, class TL>
    \n+
    \n+
    710 inline bool operator>(const IndexPair<TG,TL>& a, const TG& b)
    \n+
    711 {
    \n+
    712 return a.global_>b;
    \n+
    713 }
    \n+
    \n+
    714
    \n+
    715 template<class TG, class TL>
    \n+
    \n+
    716 inline bool operator<=(const IndexPair<TG,TL>& a, const TG& b)
    \n+
    717 {
    \n+
    718 return a.global_<=b;
    \n+
    719 }
    \n+
    \n+
    720
    \n+
    721 template<class TG, class TL>
    \n+
    \n+
    722 inline bool operator >=(const IndexPair<TG,TL>& a, const TG& b)
    \n+
    723 {
    \n+
    724 return a.global_>=b;
    \n+
    725 }
    \n+
    \n+
    726
    \n+
    727#ifndef DOXYGEN
    \n+
    728
    \n+
    729 template<class TG, class TL>
    \n+
    730 IndexPair<TG,TL>::IndexPair(const TG& global, const TL& local)
    \n+
    731 : global_(global), local_(local){}
    \n+
    732
    \n+
    733 template<class TG, class TL>
    \n+
    734 IndexPair<TG,TL>::IndexPair(const TG& global)
    \n+
    735 : global_(global), local_(){}
    \n+
    736
    \n+
    737 template<class TG, class TL>
    \n+\n+
    739 : global_(), local_(){}
    \n+
    740
    \n+
    741 template<class TG, class TL>
    \n+
    742 inline const TG& IndexPair<TG,TL>::global() const {
    \n+
    743 return global_;
    \n+
    744 }
    \n+
    745
    \n+
    746 template<class TG, class TL>
    \n+
    747 inline TL& IndexPair<TG,TL>::local() {
    \n+
    748 return local_;
    \n+
    749 }
    \n+
    750
    \n+
    751 template<class TG, class TL>
    \n+
    752 inline const TL& IndexPair<TG,TL>::local() const {
    \n+
    753 return local_;
    \n+
    754 }
    \n+
    755
    \n+
    756 template<class TG, class TL>
    \n+
    757 inline void IndexPair<TG,TL>::setLocal(int local){
    \n+
    758 local_=local;
    \n+
    759 }
    \n+
    760
    \n+
    761 template<class TG, class TL, int N>
    \n+\n+
    763 : state_(GROUND), seqNo_(0), deletedEntries_()
    \n+
    764 {}
    \n+
    765
    \n+
    766 template<class TG, class TL, int N>
    \n+\n+
    768 {
    \n+
    769
    \n+
    770 // Checks in unproductive code
    \n+
    771#ifndef NDEBUG
    \n+
    772 if(state_!=GROUND)
    \n+
    773 DUNE_THROW(InvalidIndexSetState,
    \n+
    774 "IndexSet has to be in GROUND state, when "
    \n+
    775 << "beginResize() is called!");
    \n+
    776#endif
    \n+
    777
    \n+
    778 state_ = RESIZE;
    \n+
    779 deletedEntries_ = false;
    \n+
    780 }
    \n+
    781
    \n+
    782 template<class TG, class TL, int N>
    \n+
    783 inline void ParallelIndexSet<TG,TL,N>::add(const GlobalIndex& global)
    \n+
    784 {
    \n+
    785 // Checks in unproductive code
    \n+
    786#ifndef NDEBUG
    \n+
    787 if(state_ != RESIZE)
    \n+
    788 DUNE_THROW(InvalidIndexSetState, "Indices can only be added "
    \n+
    789 <<"while in RESIZE state!");
    \n+
    790#endif
    \n+
    791 newIndices_.push_back(IndexPair(global));
    \n+
    792 }
    \n+
    793
    \n+
    794 template<class TG, class TL, int N>
    \n+
    795 inline void ParallelIndexSet<TG,TL,N>::add(const TG& global, const TL& local)
    \n+
    796 {
    \n+
    797 // Checks in unproductive code
    \n+
    798#ifndef NDEBUG
    \n+
    799 if(state_ != RESIZE)
    \n+
    800 DUNE_THROW(InvalidIndexSetState, "Indices can only be added "
    \n+
    801 <<"while in RESIZE state!");
    \n+
    802#endif
    \n+
    803 newIndices_.push_back(IndexPair(global,local));
    \n+
    804 }
    \n+
    805
    \n+
    806 template<class TG, class TL, int N>
    \n+
    807 inline void ParallelIndexSet<TG,TL,N>::markAsDeleted(const iterator& global)
    \n+
    808 {
    \n+
    809 // Checks in unproductive code
    \n+
    810#ifndef NDEBUG
    \n+
    811 if(state_ != RESIZE)
    \n+
    812 DUNE_THROW(InvalidIndexSetState, "Indices can only be removed "
    \n+
    813 <<"while in RESIZE state!");
    \n+
    814#endif
    \n+
    815 deletedEntries_ = true;
    \n+
    816
    \n+
    817 global.markAsDeleted();
    \n+
    818 }
    \n+
    819
    \n+
    820 template<class TG, class TL, int N>
    \n+\n+
    822 // Checks in unproductive code
    \n+
    823#ifndef NDEBUG
    \n+
    824 if(state_ != RESIZE)
    \n+
    825 DUNE_THROW(InvalidIndexSetState, "endResize called while not "
    \n+
    826 <<"in RESIZE state!");
    \n+
    827#endif
    \n+
    828
    \n+
    829 std::sort(newIndices_.begin(), newIndices_.end(), IndexSetSortFunctor<TG,TL>());
    \n+
    830 merge();
    \n+
    831 seqNo_++;
    \n+
    832 state_ = GROUND;
    \n+
    833 }
    \n+
    834
    \n+
    835
    \n+
    836 template<class TG, class TL, int N>
    \n+
    837 inline void ParallelIndexSet<TG,TL,N>::merge(){
    \n+
    838 if(localIndices_.size()==0)
    \n+
    839 {
    \n+
    840 localIndices_=newIndices_;
    \n+
    841 newIndices_.clear();
    \n+
    842 }
    \n+
    843 else if(newIndices_.size()>0 || deletedEntries_)
    \n+
    844 {
    \n+
    845 ArrayList<IndexPair,N> tempPairs;
    \n+
    846
    \n+
    847 auto old = localIndices_.begin();
    \n+
    848 auto added = newIndices_.begin();
    \n+
    849 const auto endold = localIndices_.end();
    \n+
    850 const auto endadded = newIndices_.end();
    \n+
    851
    \n+
    852 while(old != endold && added!= endadded)
    \n+
    853 {
    \n+
    854 if(old->local().state()==DELETED) {
    \n+
    855 old.eraseToHere();
    \n+
    856 }
    \n+
    857 else
    \n+
    858 {
    \n+
    859 if(old->global() < added->global() ||
    \n+
    860 (old->global() == added->global()
    \n+
    861 && LocalIndexComparator<TL>::compare(old->local(),added->local())))
    \n+
    862 {
    \n+
    863 tempPairs.push_back(*old);
    \n+
    864 old.eraseToHere();
    \n+
    865 continue;
    \n+
    866 }else
    \n+
    867 {
    \n+
    868 tempPairs.push_back(*added);
    \n+
    869 added.eraseToHere();
    \n+
    870 }
    \n+
    871 }
    \n+
    872 }
    \n+
    873
    \n+
    874 while(old != endold)
    \n+
    875 {
    \n+
    876 if(old->local().state()!=DELETED) {
    \n+
    877 tempPairs.push_back(*old);
    \n+
    878 }
    \n+
    879 old.eraseToHere();
    \n+
    880 }
    \n+
    881
    \n+
    882 while(added!= endadded)
    \n+
    883 {
    \n+
    884 tempPairs.push_back(*added);
    \n+
    885 added.eraseToHere();
    \n+
    886 }
    \n+
    887 localIndices_ = tempPairs;
    \n+
    888 }
    \n+
    889 }
    \n+
    890
    \n+
    891
    \n+
    892 template<class TG, class TL, int N>
    \n+
    893 inline const IndexPair<TG,TL>&
    \n+
    894 ParallelIndexSet<TG,TL,N>::at(const TG& global) const
    \n+
    895 {
    \n+
    896 // perform a binary search
    \n+
    897 int low=0, high=localIndices_.size()-1, probe=-1;
    \n+
    898
    \n+
    899 while(low<high)
    \n+
    900 {
    \n+
    901 probe = (high + low) / 2;
    \n+
    902 if(global <= localIndices_[probe].global())
    \n+
    903 high = probe;
    \n+
    904 else
    \n+
    905 low = probe+1;
    \n+
    906 }
    \n+
    907
    \n+
    908 if(probe==-1)
    \n+
    909 DUNE_THROW(RangeError, "No entries!");
    \n+
    910
    \n+
    911 if( localIndices_[low].global() != global)
    \n+
    912 DUNE_THROW(RangeError, "Could not find entry of "<<global);
    \n+
    913 else
    \n+
    914 return localIndices_[low];
    \n+
    915 }
    \n+
    916
    \n+
    917 template<class TG, class TL, int N>
    \n+
    918 inline const IndexPair<TG,TL>&
    \n+
    919 ParallelIndexSet<TG,TL,N>::operator[](const TG& global) const
    \n+
    920 {
    \n+
    921 // perform a binary search
    \n+
    922 int low=0, high=localIndices_.size()-1, probe=-1;
    \n+
    923
    \n+
    924 while(low<high)
    \n+
    925 {
    \n+
    926 probe = (high + low) / 2;
    \n+
    927 if(global <= localIndices_[probe].global())
    \n+
    928 high = probe;
    \n+
    929 else
    \n+
    930 low = probe+1;
    \n+
    931 }
    \n+
    932
    \n+
    933 return localIndices_[low];
    \n+
    934 }
    \n+
    935 template<class TG, class TL, int N>
    \n+
    936 inline IndexPair<TG,TL>& ParallelIndexSet<TG,TL,N>::at(const TG& global)
    \n+
    937 {
    \n+
    938 // perform a binary search
    \n+
    939 int low=0, high=localIndices_.size()-1, probe=-1;
    \n+
    940
    \n+
    941 while(low<high)
    \n+
    942 {
    \n+
    943 probe = (high + low) / 2;
    \n+
    944 if(localIndices_[probe].global() >= global)
    \n+
    945 high = probe;
    \n+
    946 else
    \n+
    947 low = probe+1;
    \n+
    948 }
    \n+
    949
    \n+
    950 if(probe==-1)
    \n+
    951 DUNE_THROW(RangeError, "No entries!");
    \n+
    952
    \n+
    953 if( localIndices_[low].global() != global)
    \n+
    954 DUNE_THROW(RangeError, "Could not find entry of "<<global);
    \n+
    955 else
    \n+
    956 return localIndices_[low];
    \n+
    957 }
    \n+
    958
    \n+
    959 template<class TG, class TL, int N>
    \n+
    960 inline bool ParallelIndexSet<TG,TL,N>::exists (const TG& global) const
    \n+
    961 {
    \n+
    962 // perform a binary search
    \n+
    963 int low=0, high=localIndices_.size()-1, probe=-1;
    \n+
    964
    \n+
    965 while(low<high)
    \n+
    966 {
    \n+
    967 probe = (high + low) / 2;
    \n+
    968 if(localIndices_[probe].global() >= global)
    \n+
    969 high = probe;
    \n+
    970 else
    \n+
    971 low = probe+1;
    \n+
    972 }
    \n+
    973
    \n+
    974 if(probe==-1)
    \n+
    975 return false;
    \n+
    976
    \n+
    977 if( localIndices_[low].global() != global)
    \n+
    978 return false;
    \n+
    979 return true;
    \n+
    980 }
    \n+
    981
    \n+
    982 template<class TG, class TL, int N>
    \n+
    983 inline IndexPair<TG,TL>& ParallelIndexSet<TG,TL,N>::operator[](const TG& global)
    \n+
    984 {
    \n+
    985 // perform a binary search
    \n+
    986 int low=0, high=localIndices_.size()-1, probe=-1;
    \n+
    987
    \n+
    988 while(low<high)
    \n+
    989 {
    \n+
    990 probe = (high + low) / 2;
    \n+
    991 if(localIndices_[probe].global() >= global)
    \n+
    992 high = probe;
    \n+
    993 else
    \n+
    994 low = probe+1;
    \n+
    995 }
    \n+
    996
    \n+
    997 return localIndices_[low];
    \n+
    998 }
    \n+
    999 template<class TG, class TL, int N>
    \n+
    1000 inline typename ParallelIndexSet<TG,TL,N>::iterator
    \n+\n+
    1002 {
    \n+
    1003 return iterator(*this, localIndices_.begin());
    \n+
    1004 }
    \n+
    1005
    \n+
    1006
    \n+
    1007 template<class TG, class TL, int N>
    \n+
    1008 inline typename ParallelIndexSet<TG,TL,N>::iterator
    \n+\n+
    1010 {
    \n+
    1011 return iterator(*this,localIndices_.end());
    \n+
    1012 }
    \n+
    1013
    \n+
    1014 template<class TG, class TL, int N>
    \n+
    1015 inline typename ParallelIndexSet<TG,TL,N>::const_iterator
    \n+\n+
    1017 {
    \n+
    1018 return localIndices_.begin();
    \n+
    1019 }
    \n+
    1020
    \n+
    1021
    \n+
    1022 template<class TG, class TL, int N>
    \n+
    1023 inline typename ParallelIndexSet<TG,TL,N>::const_iterator
    \n+\n+
    1025 {
    \n+
    1026 return localIndices_.end();
    \n+
    1027 }
    \n+
    1028
    \n+
    1029 template<class TG, class TL, int N>
    \n+\n+
    1031#ifndef NDEBUG
    \n+
    1032 if(state_==RESIZE)
    \n+
    1033 DUNE_THROW(InvalidIndexSetState, "IndexSet has to be in "
    \n+
    1034 <<"GROUND state for renumberLocal()");
    \n+
    1035#endif
    \n+
    1036
    \n+
    1037 const auto end_ = end();
    \n+
    1038 uint32_t index=0;
    \n+
    1039
    \n+
    1040 for(auto pair=begin(); pair!=end_; index++, ++pair)
    \n+
    1041 pair->local()=index;
    \n+
    1042 }
    \n+
    1043
    \n+
    1044 template<class TG, class TL, int N>
    \n+
    1045 inline int ParallelIndexSet<TG,TL,N>::seqNo() const
    \n+
    1046 {
    \n+
    1047 return seqNo_;
    \n+
    1048 }
    \n+
    1049
    \n+
    1050 template<class TG, class TL, int N>
    \n+
    1051 inline size_t ParallelIndexSet<TG,TL,N>::size() const
    \n+
    1052 {
    \n+
    1053 return localIndices_.size();
    \n+
    1054 }
    \n+
    1055
    \n+
    1056 template<class I>
    \n+\n+
    1058 std::size_t size)
    \n+
    1059 : indexSet_(indexset), size_(size),
    \n+
    1060 indices_(size_, static_cast<const IndexPair*>(0))
    \n+
    1061 {
    \n+
    1062 const_iterator end_ = indexSet_.end();
    \n+
    1063
    \n+
    1064 for(const_iterator pair = indexSet_.begin(); pair!=end_; ++pair) {
    \n+
    1065 assert(pair->local()<size_);
    \n+
    1066 indices_[pair->local()] = &(*pair);
    \n+
    1067 }
    \n+
    1068 }
    \n+
    1069
    \n+
    1070 template<class I>
    \n+\n+
    1072 : indexSet_(indexset), size_(0)
    \n+
    1073 {
    \n+
    1074 const_iterator end_ = indexSet_.end();
    \n+
    1075 for(const_iterator pair = indexSet_.begin(); pair!=end_; ++pair)
    \n+
    1076 size_=std::max(size_,static_cast<std::size_t>(pair->local()));
    \n+
    1077
    \n+
    1078 indices_.resize(++size_, 0);
    \n+
    1079
    \n+
    1080 for(const_iterator pair = indexSet_.begin(); pair!=end_; ++pair)
    \n+
    1081 indices_[pair->local()] = &(*pair);
    \n+
    1082 }
    \n+
    1083
    \n+
    1084 template<class I>
    \n+\n+
    1086 {}
    \n+
    1087
    \n+
    1088 template<class I>
    \n+
    1089 inline const IndexPair<typename I::GlobalIndex, typename I::LocalIndex>*
    \n+
    1090 GlobalLookupIndexSet<I>::pair(const std::size_t& local) const
    \n+
    1091 {
    \n+
    1092 return indices_[local];
    \n+
    1093 }
    \n+
    1094
    \n+
    1095 template<class I>
    \n+
    1096 inline const IndexPair<typename I::GlobalIndex, typename I::LocalIndex>&
    \n+
    1097 GlobalLookupIndexSet<I>::operator[](const GlobalIndex& global) const
    \n+
    1098 {
    \n+
    1099 return indexSet_[global];
    \n+
    1100 }
    \n+
    1101
    \n+
    1102 template<class I>
    \n+
    1103 typename I::const_iterator GlobalLookupIndexSet<I>::begin() const
    \n+
    1104 {
    \n+
    1105 return indexSet_.begin();
    \n+
    1106 }
    \n+
    1107
    \n+
    1108 template<class I>
    \n+
    1109 typename I::const_iterator GlobalLookupIndexSet<I>::end() const
    \n+
    1110 {
    \n+
    1111 return indexSet_.end();
    \n+
    1112 }
    \n+
    1113
    \n+
    1114 template<class I>
    \n+
    1115 inline size_t GlobalLookupIndexSet<I>::size() const
    \n+
    1116 {
    \n+
    1117 return size_;
    \n+
    1118 }
    \n+
    1119
    \n+
    1120 template<class I>
    \n+
    1121 inline int GlobalLookupIndexSet<I>::seqNo() const
    \n+
    1122 {
    \n+
    1123 return indexSet_.seqNo();
    \n+
    1124 }
    \n+
    1125
    \n+
    1126 template<typename TG, typename TL, int N, typename TG1, typename TL1, int N1>
    \n+
    1127 bool operator==(const ParallelIndexSet<TG,TL,N>& idxset,
    \n+
    1128 const ParallelIndexSet<TG1,TL1,N1>& idxset1)
    \n+
    1129 {
    \n+
    1130 if(idxset.size()!=idxset1.size())
    \n+
    1131 return false;
    \n+
    1132 typedef typename ParallelIndexSet<TG,TL,N>::const_iterator Iter;
    \n+
    1133 typedef typename ParallelIndexSet<TG1,TL1,N1>::const_iterator Iter1;
    \n+
    1134 Iter iter=idxset.begin();
    \n+
    1135 for(Iter1 iter1=idxset1.begin(); iter1 != idxset1.end(); ++iter, ++iter1) {
    \n+
    1136 if(iter1->global()!=iter->global())
    \n+
    1137 return false;
    \n+
    1138 typedef typename ParallelIndexSet<TG,TL,N>::LocalIndex PI;
    \n+
    1139 const PI& pi=iter->local(), pi1=iter1->local();
    \n+
    1140
    \n+
    1141 if(pi!=pi1)
    \n+
    1142 return false;
    \n+
    1143 }
    \n+
    1144 return true;
    \n+
    1145 }
    \n+
    1146
    \n+
    1147 template<typename TG, typename TL, int N, typename TG1, typename TL1, int N1>
    \n+
    1148 bool operator!=(const ParallelIndexSet<TG,TL,N>& idxset,
    \n+
    1149 const ParallelIndexSet<TG1,TL1,N1>& idxset1)
    \n+
    1150 {
    \n+
    1151 return !(idxset==idxset1);
    \n+
    1152 }
    \n+
    1153
    \n+
    1154
    \n+
    1155#endif // DOXYGEN
    \n+
    1156
    \n+
    1157}
    \n+
    1158
    \n+
    1159#endif // DUNE_COMMON_PARALLEL_INDEXSET_HH
    \n+
    Traits classes for mapping types onto MPI_Datatype.
    \n+
    Provides classes for use as the local index in ParallelIndexSet.
    \n+
    Implements a random-access container that can efficiently change size (similar to std::deque)
    \n+
    A few common exception classes.
    \n+
    std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
    Definition bigunsignedint.hh:278
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator<(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
    Comparison operator.
    Definition iteratorfacades.hh:638
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator>(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
    Comparison operator.
    Definition iteratorfacades.hh:684
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator<=(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
    Comparison operator.
    Definition iteratorfacades.hh:661
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
    Checks for equality.
    Definition iteratorfacades.hh:238
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator>=(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
    Comparison operator.
    Definition iteratorfacades.hh:706
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator!=(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
    Checks for inequality.
    Definition iteratorfacades.hh:260
    \n+
    IndexPair & operator[](const GlobalIndex &global)
    Find the index pair with a specific global id.
    \n+
    static constexpr int arraySize
    The size of the individual arrays in the underlying ArrayList.
    Definition indexset.hh:252
    \n+
    void beginResize()
    Indicate that the index set is to be resized.
    \n+
    ParallelIndexSetState
    The states the index set can be in.
    Definition indexset.hh:181
    \n+
    void renumberLocal()
    Renumbers the local index numbers.
    \n+
    bool exists(const GlobalIndex &global) const
    Find the index pair with a specific global id.
    \n+
    size_t size() const
    Get the total number (public and nonpublic) indices.
    \n+
    ArrayList< IndexPair, N >::const_iterator const_iterator
    The constant iterator over the pairs.
    Definition indexset.hh:296
    \n+
    bool operator()(const IndexPair< TG, TL > &i1, const IndexPair< TG, TL > &i2)
    Definition indexset.hh:625
    \n+
    void add(const GlobalIndex &global)
    Add an new index to the set.
    \n+
    const_iterator end() const
    Get an iterator over the indices positioned after the last index.
    \n+
    const LocalIndex & local() const
    Get the local index.
    \n+
    const IndexPair & at(const GlobalIndex &global) const
    Find the index pair with a specific global id.
    \n+
    GlobalLookupIndexSet(const ParallelIndexSet &indexset)
    Constructor.
    \n+
    TL LocalIndex
    the type of the local index.
    Definition indexset.hh:120
    \n+
    int seqNo() const
    Get the internal sequence number.
    \n+
    static bool compare(const T &t1, const T &t2)
    Definition indexset.hh:616
    \n+
    iterator begin()
    Get an iterator over the indices positioned at the first index.
    \n+
    Dune::IndexPair< typename I::GlobalIndex, typename I::LocalIndex > IndexPair
    Definition indexset.hh:529
    \n+
    iterator end()
    Get an iterator over the indices positioned after the last index.
    \n+
    ParallelIndexSet::const_iterator const_iterator
    The iterator over the index pairs.
    Definition indexset.hh:527
    \n+
    const_iterator begin() const
    Get an iterator over the indices positioned at the first index.
    \n+
    const IndexPair & operator[](const GlobalIndex &global) const
    Find the index pair with a specific global id.
    \n+
    const ParallelIndexSetState & state()
    Get the state the index set is in.
    Definition indexset.hh:307
    \n+
    const_iterator begin() const
    Get an iterator over the indices positioned at the first index.
    \n+
    const IndexPair & operator[](const GlobalIndex &global) const
    Find the index pair with a specific global id.
    \n+
    IndexPair()
    Construct a new Pair.
    \n+
    I ParallelIndexSet
    The type of the index set.
    Definition indexset.hh:512
    \n+
    TL LocalIndex
    The type of the local index, e.g. ParallelLocalIndex.
    Definition indexset.hh:239
    \n+
    void markAsDeleted(const iterator &position)
    Mark an index as deleted.
    \n+
    ParallelIndexSet::LocalIndex LocalIndex
    The type of the local index.
    Definition indexset.hh:517
    \n+
    IndexPair(const GlobalIndex &global, const LocalIndex &local)
    Constructs a new Pair.
    \n+
    void setLocal(int index)
    Set the local index.
    \n+
    const GlobalIndex & global() const
    Get the global index.
    \n+
    void add(const GlobalIndex &global, const LocalIndex &local)
    Add an new index to the set.
    \n+
    const_iterator end() const
    Get an iterator over the indices positioned after the last index.
    \n+
    IndexPair & at(const GlobalIndex &global)
    Find the index pair with a specific global id.
    \n+
    ParallelIndexSet()
    Constructor.
    \n+
    void endResize()
    Indicate that the resizing finishes.
    \n+
    ~GlobalLookupIndexSet()
    Destructor.
    \n+
    const IndexPair * pair(const std::size_t &local) const
    Get the index pair corresponding to a local index.
    \n+
    LocalIndex & local()
    Get the local index.
    \n+
    size_t size() const
    Get the total number (public and nonpublic) indices.
    \n+
    IndexPair(const GlobalIndex &global)
    Constructs a new Pair.
    \n+
    TG GlobalIndex
    the type of the global index. This type has to provide at least a operator< for sorting.
    Definition indexset.hh:226
    \n+
    TG GlobalIndex
    the type of the global index.
    Definition indexset.hh:107
    \n+
    int seqNo() const
    Get the internal sequence number.
    \n+
    iterator(ParallelIndexSet< TG, TL, N > &indexSet, const Father &father)
    Definition indexset.hh:262
    \n+
    GlobalLookupIndexSet(const ParallelIndexSet &indexset, std::size_t size)
    Constructor.
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    The type of the global index.
    Definition indexset.hh:522
    \n+
    Dune::IndexPair< GlobalIndex, LocalIndex > IndexPair
    The type of the pair stored.
    Definition indexset.hh:244
    \n+
    @ RESIZE
    Indicates that the index set is currently being resized.
    Definition indexset.hh:190
    \n+
    @ GROUND
    The default mode. Indicates that the index set is ready to be used.
    Definition indexset.hh:186
    \n+
    @ DELETED
    Definition localindex.hh:28
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    constexpr size_type cols() const
    number of columns
    Definition densematrix.hh:715
    \n-
    constexpr size_type rows() const
    number of rows
    Definition densematrix.hh:709
    \n-
    static constexpr int blocklevel
    The number of block levels we contain. This is the leaf, that is, 1.
    Definition densematrix.hh:178
    \n-
    Traits::row_type row_type
    The type used to represent a row (must fulfill the Dune::DenseVector interface)
    Definition densematrix.hh:169
    \n-
    Traits::size_type size_type
    The type used for the index access and size operation.
    Definition densematrix.hh:166
    \n-
    Traits::const_row_reference const_row_reference
    The type used to represent a reference to a constant row (usually const row_type &)
    Definition densematrix.hh:175
    \n-
    Traits::row_reference row_reference
    The type used to represent a reference to a row (usually row_type &)
    Definition densematrix.hh:172
    \n-
    T type
    Definition typetraits.hh:531
    \n+
    constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
    Return the size of the sequence.
    Definition integersequence.hh:75
    \n+
    A random access iterator for the Dune::ArrayList class.
    Definition arraylist.hh:255
    \n+
    A constant random access iterator for the Dune::ArrayList class.
    Definition arraylist.hh:368
    \n+
    A dynamically growing random access list.
    Definition arraylist.hh:62
    \n+
    ConstArrayListIterator< MemberType, N, A > const_iterator
    A constant random access iterator.
    Definition arraylist.hh:110
    \n+
    A traits class describing the mapping of types onto MPI_Datatypes.
    Definition mpitraits.hh:41
    \n+
    Default exception if a function was called while the object is not in a valid state for that function...
    Definition exceptions.hh:281
    \n+\n+
    A pair consisting of a global and local index.
    Definition indexset.hh:85
    \n+
    Exception indicating that the index set is not in the expected state.
    Definition indexset.hh:205
    \n+
    Decorates an index set with the possibility to find a global index that is mapped to a specific local...
    Definition indexset.hh:507
    \n+
    Manager class for the mapping between local indices and globally unique indices.
    Definition indexset.hh:218
    \n+
    The iterator over the pairs.
    Definition indexset.hh:257
    \n+
    Definition indexset.hh:615
    \n+
    Definition indexset.hh:624
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,232 +1,1122 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-scalarmatrixview.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+indexset.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_SCALARMATRIXVIEW_HH\n-6#define DUNE_COMMON_SCALARMATRIXVIEW_HH\n+5#ifndef DUNE_COMMON_PARALLEL_INDEXSET_HH\n+6#define DUNE_COMMON_PARALLEL_INDEXSET_HH\n 7\n-8#include \n-9#include \n-10#include \n+8#include \n+9#include // for uint32_t\n+10#include \n 11\n-12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bm_\ba_\bt_\bv_\be_\bc_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n-15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bd_\be_\bn_\bs_\be_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-16#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bf_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-17#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bv_\be_\bc_\bt_\bo_\br_\bv_\bi_\be_\bw_\b._\bh_\bh>\n-18\n-19\n-20namespace _\bD_\bu_\bn_\be {\n-21\n-22namespace Impl {\n-23\n-39 template\n-40 class ScalarMatrixView :\n-41 public DenseMatrix>\n-42 {\n-43 ScalarVectorView data_;\n-44 using Base = DenseMatrix>;\n-45\n-46 template \n-47 friend class ScalarMatrixView;\n-48 public:\n+12#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\ba_\br_\br_\ba_\by_\bl_\bi_\bs_\bt_\b._\bh_\bh>\n+13#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+14#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bl_\bo_\bc_\ba_\bl_\bi_\bn_\bd_\be_\bx_\b._\bh_\bh>\n+15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+16\n+17namespace _\bD_\bu_\bn_\be\n+18{\n+28 // forward declarations\n+29\n+30 template\n+31 class IndexPair;\n+32\n+38 template\n+39 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const IndexPair& pair);\n+40\n+41 template\n+42 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const IndexPair&, const IndexPair&);\n+43\n+44 template\n+45 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const IndexPair&, const IndexPair&);\n+46\n+47 template\n+48 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const IndexPair&, const IndexPair&);\n 49\n-50 //===== type definitions and constants\n-51\n-54 constexpr static int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = 1;\n+50 template\n+51 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>(const IndexPair&, const IndexPair&);\n+52\n+53 template\n+54 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=(const IndexPair&, const IndexPair&);\n 55\n-56 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = typename _\bB_\ba_\bs_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-57 using _\br_\bo_\bw_\b__\bt_\by_\bp_\be = typename _\bB_\ba_\bs_\be_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n-58 using _\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = typename _\bB_\ba_\bs_\be_\b:_\b:_\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-59 using _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = typename _\bB_\ba_\bs_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-60\n-63 constexpr static int _\br_\bo_\bw_\bs = 1;\n-66 constexpr static int _\bc_\bo_\bl_\bs = 1;\n+56 template\n+57 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>_\b=(const IndexPair&, const IndexPair&);\n+58\n+59 template\n+60 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const IndexPair&, const TG&);\n+61\n+62 template\n+63 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const IndexPair&, const TG&);\n+64\n+65 template\n+66 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const IndexPair&, const TG&);\n 67\n-68 //===== constructors\n-71 constexpr ScalarMatrixView ()\n-72 : data_()\n-73 {}\n-74\n-76 ScalarMatrixView (K* p) :\n-77 data_(p)\n-78 {}\n+68 template\n+69 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>(const IndexPair&, const TG&);\n+70\n+71 template\n+72 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=(const IndexPair&, const TG&);\n+73\n+74 template\n+75 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>_\b=(const IndexPair&, const TG&);\n+76\n+77 template\n+78 struct MPITraits;\n 79\n-81 ScalarMatrixView (const ScalarMatrixView &other) :\n-82 Base(),\n-83 data_(other.data_)\n-84 {}\n-85\n-87 ScalarMatrixView (ScalarMatrixView &&other) :\n-88 Base(),\n-89 data_( other.data_ )\n-90 {}\n-91\n-93 ScalarMatrixView& operator= (const ScalarMatrixView& other)\n-94 {\n-95 data_ = other.data_;\n-96 return *this;\n-97 }\n-98\n-99 template\n-100 ScalarMatrixView& operator= (const ScalarMatrixView& other)\n-101 {\n-102 data_ = other.data_;\n-103 return *this;\n-104 }\n-105\n-107 template::value, int> = 0>\n-109 inline ScalarMatrixView& operator= (const T& k)\n-110 {\n-111 data_ = k;\n-112 return *this;\n-113 }\n-114\n-115 // make this thing a matrix\n-116 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be mat_rows() { return 1; }\n-117 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be mat_cols() { return 1; }\n-118\n-119 _\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be mat_access ([[maybe_unused]] size_type i)\n-120 {\n-121 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(i == 0);\n-122 return data_;\n-123 }\n-124\n-125 _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be mat_access ([[maybe_unused]] size_type i) const\n-126 {\n-127 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(i == 0);\n-128 return data_;\n-129 }\n-130 }; // class ScalarMatrixView\n-131\n-133 template\n-134 std::ostream& operator<< (std::ostream& s, const ScalarMatrixView& a)\n-135 {\n-136 s << a[0][0];\n-137 return s;\n-138 }\n-139\n-141 template::value, int> = 0>\n-143 auto asMatrix(T& t)\n-144 {\n-145 return ScalarMatrixView{&t};\n-146 }\n-147\n-149 template::value, int> = 0>\n-151 auto asMatrix(const T& t)\n-152 {\n-153 return ScalarMatrixView{&t};\n-154 }\n+83 template\n+_\b8_\b4 class _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+85 {\n+86 friend std::ostream& operator<<<>(std::ostream&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+87 friend bool operator==<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+88 friend bool operator!=<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+89 friend bool operator< <>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+90 friend bool operator><>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+91 friend bool operator<=<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+92 friend bool operator>=<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&);\n+93 friend bool operator==<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const TG &);\n+94 friend bool operator!=<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const TG &);\n+95 friend bool operator< <>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const TG &);\n+96 friend bool operator> <>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const TG &);\n+97 friend bool operator<=<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const TG &);\n+_\b9_\b8 friend bool operator>=<>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&, const TG &);\n+99 friend struct _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br >;\n+100\n+101 public:\n+_\b1_\b0_\b7 typedef TG _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+108\n+_\b1_\b2_\b0 typedef TL _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+121\n+_\b1_\b2_\b8 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\bl_\bo_\bb_\ba_\bl, const _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bl_\bo_\bc_\ba_\bl);\n+129\n+_\b1_\b3_\b3 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br();\n+_\b1_\b4_\b0 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\bl_\bo_\bb_\ba_\bl);\n+141\n+_\b1_\b4_\b7 inline const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\bl_\bo_\bb_\ba_\bl() const;\n+148\n+_\b1_\b5_\b4 inline _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bl_\bo_\bc_\ba_\bl();\n 155\n-157 template::value, int> = 0>\n-159 T& asMatrix(T& t)\n-160 {\n-161 return t;\n-162 }\n-163\n-165 template::value, int> = 0>\n-167 const T& asMatrix(const T& t)\n-168 {\n-169 return t;\n-170 }\n-171\n-174} // end namespace Impl\n+_\b1_\b6_\b1 inline const _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bl_\bo_\bc_\ba_\bl() const;\n+162\n+_\b1_\b6_\b8 inline void _\bs_\be_\bt_\bL_\bo_\bc_\ba_\bl(int index);\n+169 private:\n+171 _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx global_;\n+_\b1_\b7_\b3 _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx local_;\n+174 };\n 175\n-176 template\n-177 struct FieldTraits> : public FieldTraits> {};\n-178\n-179 template\n-180 struct DenseMatVecTraits>\n+_\b1_\b8_\b0 enum _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be\n 181 {\n-182 using derived_type = Impl::ScalarMatrixView;\n-183 using row_type = Impl::ScalarVectorView;\n-184 using row_reference = row_type&;\n-185 using const_row_reference = const row_type&;\n-186 using value_type = std::remove_const_t;\n-187 using size_type = std::size_t;\n-188 };\n-189\n-190\n-191 template\n-192 struct AutonomousValueType>\n-193 {\n-194 using _\bt_\by_\bp_\be = FieldMatrix,1,1>;\n-195 };\n-196\n-197\n-198} // end namespace Dune\n-199\n-200#endif // DUNE_COMMON_SCALARMATRIXVIEW_HH\n-_\bm_\ba_\bt_\bv_\be_\bc_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Documentation of the traits classes you need to write for each implementation\n-of DenseVector or Dense...\n-_\bd_\be_\bn_\bs_\be_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implements a matrix constructed from a given type representing a field and a\n-compile-time given numbe...\n-_\bs_\bc_\ba_\bl_\ba_\br_\bv_\be_\bc_\bt_\bo_\br_\bv_\bi_\be_\bw_\b._\bh_\bh\n-Implements a scalar vector view wrapper around an existing scalar.\n-_\bb_\bo_\bu_\bn_\bd_\bs_\bc_\bh_\be_\bc_\bk_\bi_\bn_\bg_\b._\bh_\bh\n-Macro for wrapping boundary checks.\n-_\bf_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implements a matrix constructed from a given type representing a field and\n-compile-time given number ...\n-_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Traits for type conversions and type information.\n-_\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS\n-#define DUNE_ASSERT_BOUNDS(cond)\n-If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do\n-nothing.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn boundschecking.hh:30\n+_\b1_\b8_\b6 _\bG_\bR_\bO_\bU_\bN_\bD,\n+190 _\bR_\bE_\bS_\bI_\bZ_\bE\n+_\b2_\b0_\b0 };\n+201\n+_\b2_\b0_\b5 class _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be : public _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bt_\ba_\bt_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn {};\n+206\n+207 // Forward declaration\n+208 template class _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+209\n+216 template\n+_\b2_\b1_\b7 class _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+218 {\n+219 friend class _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt >;\n+220\n+221 public:\n+_\b2_\b2_\b6 typedef TG _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+227\n+_\b2_\b3_\b9 typedef TL _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+240\n+_\b2_\b4_\b4 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b> _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br;\n+245\n+_\b2_\b5_\b2 constexpr static int _\ba_\br_\br_\ba_\by_\bS_\bi_\bz_\be = (N>0) ? N : 1;\n+253\n+_\b2_\b5_\b5 class _\bi_\bt_\be_\br_\ba_\bt_\bo_\br :\n+256 public _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt::iterator\n+257 {\n+258 typedef typename _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b,_\bN_\b>_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b2_\b5_\b9 _\bF_\ba_\bt_\bh_\be_\br;\n+260 friend class _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx,_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx,N>;\n+261 public:\n+_\b2_\b6_\b2 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>& indexSet, const _\bF_\ba_\bt_\bh_\be_\br& father)\n+263 : _\bF_\ba_\bt_\bh_\be_\br(father), indexSet_(&indexSet)\n+264 {}\n+265\n+266 private:\n+276 inline void markAsDeleted() const\n+277 {\n+278#ifndef NDEBUG\n+279 if(indexSet_->state_ != _\bR_\bE_\bS_\bI_\bZ_\bE)\n+280 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be, \"Indices can only be removed \"\n+281 <<\"while in RESIZE state!\");\n+282#endif\n+283 _\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*().local().setState(_\bD_\bE_\bL_\bE_\bT_\bE_\bD);\n+284 }\n+285\n+287 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>* indexSet_;\n+288\n+289 };\n+290\n+291\n+292\n+294 typedef typename\n+295 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b,_\bN_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\b2_\b9_\b6 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+297\n+_\b3_\b0_\b1 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt();\n+302\n+_\b3_\b0_\b7 inline const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be& _\bs_\bt_\ba_\bt_\be()\n+308 {\n+309 return state_;\n+310 }\n+311\n+_\b3_\b1_\b7 void _\bb_\be_\bg_\bi_\bn_\bR_\be_\bs_\bi_\bz_\be();\n+318\n+_\b3_\b2_\b7 inline void _\ba_\bd_\bd(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global);\n+328\n+_\b3_\b3_\b7 inline void _\ba_\bd_\bd(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global, const _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx& local);\n+338\n+_\b3_\b4_\b6 inline void _\bm_\ba_\br_\bk_\bA_\bs_\bD_\be_\bl_\be_\bt_\be_\bd(const _\bi_\bt_\be_\br_\ba_\bt_\bo_\br& position);\n+347\n+_\b3_\b6_\b0 void _\be_\bn_\bd_\bR_\be_\bs_\bi_\bz_\be();\n+361\n+372 inline _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br&\n+_\b3_\b7_\b3 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global);\n+374\n+384 inline _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br&\n+_\b3_\b8_\b5 _\ba_\bt(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global);\n+386\n+396 inline bool\n+_\b3_\b9_\b7 _\be_\bx_\bi_\bs_\bt_\bs (const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global) const;\n+398\n+409 inline const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br&\n+_\b4_\b1_\b0 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global) const;\n+411\n+421 inline const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br&\n+_\b4_\b2_\b2 _\ba_\bt(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global) const;\n+423\n+_\b4_\b2_\b8 inline _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn();\n+429\n+_\b4_\b3_\b4 inline _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd();\n+435\n+_\b4_\b4_\b0 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+441\n+_\b4_\b4_\b6 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+447\n+_\b4_\b5_\b7 inline void _\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bL_\bo_\bc_\ba_\bl();\n+458\n+_\b4_\b6_\b5 inline int _\bs_\be_\bq_\bN_\bo() const;\n+466\n+_\b4_\b7_\b1 inline size_t _\bs_\bi_\bz_\be() const;\n+472\n+473 private:\n+475 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b,_\bN_\b> localIndices_;\n+477 _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b<_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b,_\bN_\b> newIndices_;\n+479 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be state_;\n+481 int seqNo_;\n+483 bool deletedEntries_;\n+488 inline void merge();\n+489 };\n+490\n+491\n+497 template\n+498 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>&\n+indexSet);\n+499\n+505 template\n+_\b5_\b0_\b6 class _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+507 {\n+508 public:\n+_\b5_\b1_\b2 typedef I _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+513\n+_\b5_\b1_\b7 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+518\n+_\b5_\b2_\b2 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+523\n+_\b5_\b2_\b7 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+528\n+_\b5_\b2_\b9 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bI_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bI_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\b>\n+_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br;\n+530\n+_\b5_\b3_\b7 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexset, std::size_t _\bs_\bi_\bz_\be);\n+538\n+_\b5_\b4_\b4 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexset);\n+545\n+_\b5_\b4_\b9 _\b~_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt();\n+550\n+560 inline const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br&\n+_\b5_\b6_\b1 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global) const;\n+562\n+566 inline const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br*\n+_\b5_\b6_\b7 _\bp_\ba_\bi_\br(const std::size_t& local) const;\n+568\n+_\b5_\b7_\b3 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+574\n+_\b5_\b7_\b9 inline _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+580\n+_\b5_\b8_\b7 inline int _\bs_\be_\bq_\bN_\bo() const;\n+588\n+_\b5_\b9_\b3 inline size_t _\bs_\bi_\bz_\be() const;\n+594 private:\n+598 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indexSet_;\n+599\n+603 std::size_t size_;\n+604\n+608 std::vector indices_;\n+609\n+610 };\n+611\n+612\n+613 template\n+_\b6_\b1_\b4 struct _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bC_\bo_\bm_\bp_\ba_\br_\ba_\bt_\bo_\br\n+615 {\n+_\b6_\b1_\b6 static bool _\bc_\bo_\bm_\bp_\ba_\br_\be([[maybe_unused]] const T& t1, [[maybe_unused]] const T&\n+t2)\n+617 {\n+618 return false;\n+619 }\n+620 };\n+621\n+622 template\n+_\b6_\b2_\b3 struct _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bo_\br_\bt_\bF_\bu_\bn_\bc_\bt_\bo_\br\n+624 {\n+_\b6_\b2_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& i1, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& i2)\n+626 {\n+627 return i1._\bg_\bl_\bo_\bb_\ba_\bl()_\b:_\b:_\bc_\bo_\bm_\bp_\ba_\br_\be(i1._\bl_\bo_\bc_\ba_\bl(),\n+629 i2._\bl_\bo_\bc_\ba_\bl()));\n+630 }\n+631 };\n+632\n+633\n+634\n+635 template\n+_\b6_\b3_\b6 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&\n+pair)\n+637 {\n+638 os<<\"{global=\"<\n+_\b6_\b4_\b3 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>& indexSet)\n+644 {\n+645 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+646 Iterator end = indexSet._\be_\bn_\bd();\n+647 os<<\"{\";\n+648 for(Iterator index = indexSet._\bb_\be_\bg_\bi_\bn(); index != end; ++index)\n+649 os<<*index<<\" \";\n+650 os<<\"}\";\n+651 return os;\n+652\n+653 }\n+654\n+655 template\n+_\b6_\b5_\b6 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&\n+b)\n+657 {\n+658 return a.global_==b.global_;\n+659 }\n+660\n+661 template\n+_\b6_\b6_\b2 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&\n+b)\n+663 {\n+664 return a.global_!=b.global_;\n+665 }\n+666\n+667 template\n+_\b6_\b6_\b8 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& b)\n+669 {\n+670 return a.global_\n+_\b6_\b7_\b4 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& b)\n+675 {\n+676 return a.global_>b.global_;\n+677 }\n+678\n+679 template\n+_\b6_\b8_\b0 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&\n+b)\n+681 {\n+682 return a.global_<=b.global_;\n+683 }\n+684\n+685 template\n+_\b6_\b8_\b6 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>&\n+b)\n+687 {\n+688 return a.global_>=b.global_;\n+689 }\n+690\n+691 template\n+_\b6_\b9_\b2 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const TG& b)\n+693 {\n+694 return a.global_==b;\n+695 }\n+696\n+697 template\n+_\b6_\b9_\b8 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const TG& b)\n+699 {\n+700 return a.global_!=b;\n+701 }\n+702\n+703 template\n+_\b7_\b0_\b4 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const TG& b)\n+705 {\n+706 return a.global_\n+_\b7_\b1_\b0 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const TG& b)\n+711 {\n+712 return a.global_>b;\n+713 }\n+714\n+715 template\n+_\b7_\b1_\b6 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const TG& b)\n+717 {\n+718 return a.global_<=b;\n+719 }\n+720\n+721 template\n+_\b7_\b2_\b2 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>_\b=(const _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>& a, const TG& b)\n+723 {\n+724 return a.global_>=b;\n+725 }\n+726\n+727#ifndef DOXYGEN\n+728\n+729 template\n+730 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br(const TG& global, const TL& local)\n+731 : global_(global), local_(local){}\n+732\n+733 template\n+734 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br(const TG& global)\n+735 : global_(global), local_(){}\n+736\n+737 template\n+738 _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br()\n+739 : global_(), local_(){}\n+740\n+741 template\n+742 inline const TG& _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl() const {\n+743 return global_;\n+744 }\n+745\n+746 template\n+747 inline TL& _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bl_\bo_\bc_\ba_\bl() {\n+748 return local_;\n+749 }\n+750\n+751 template\n+752 inline const TL& _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bl_\bo_\bc_\ba_\bl() const {\n+753 return local_;\n+754 }\n+755\n+756 template\n+757 inline void _\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b<_\bT_\bG_\b,_\bT_\bL_\b>_\b:_\b:_\bs_\be_\bt_\bL_\bo_\bc_\ba_\bl(int local){\n+758 local_=local;\n+759 }\n+760\n+761 template\n+762 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt()\n+763 : state_(_\bG_\bR_\bO_\bU_\bN_\bD), seqNo_(0), deletedEntries_()\n+764 {}\n+765\n+766 template\n+767 void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bR_\be_\bs_\bi_\bz_\be()\n+768 {\n+769\n+770 // Checks in unproductive code\n+771#ifndef NDEBUG\n+772 if(state_!=_\bG_\bR_\bO_\bU_\bN_\bD)\n+773 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(InvalidIndexSetState,\n+774 \"IndexSet has to be in GROUND state, when \"\n+775 << \"beginResize() is called!\");\n+776#endif\n+777\n+778 state_ = _\bR_\bE_\bS_\bI_\bZ_\bE;\n+779 deletedEntries_ = false;\n+780 }\n+781\n+782 template\n+783 inline void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\ba_\bd_\bd(const GlobalIndex& global)\n+784 {\n+785 // Checks in unproductive code\n+786#ifndef NDEBUG\n+787 if(state_ != _\bR_\bE_\bS_\bI_\bZ_\bE)\n+788 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(InvalidIndexSetState, \"Indices can only be added \"\n+789 <<\"while in RESIZE state!\");\n+790#endif\n+791 newIndices_.push_back(IndexPair(global));\n+792 }\n+793\n+794 template\n+795 inline void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\ba_\bd_\bd(const TG& global, const TL&\n+local)\n+796 {\n+797 // Checks in unproductive code\n+798#ifndef NDEBUG\n+799 if(state_ != _\bR_\bE_\bS_\bI_\bZ_\bE)\n+800 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(InvalidIndexSetState, \"Indices can only be added \"\n+801 <<\"while in RESIZE state!\");\n+802#endif\n+803 newIndices_.push_back(IndexPair(global,local));\n+804 }\n+805\n+806 template\n+807 inline void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bm_\ba_\br_\bk_\bA_\bs_\bD_\be_\bl_\be_\bt_\be_\bd(const iterator&\n+global)\n+808 {\n+809 // Checks in unproductive code\n+810#ifndef NDEBUG\n+811 if(state_ != _\bR_\bE_\bS_\bI_\bZ_\bE)\n+812 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(InvalidIndexSetState, \"Indices can only be removed \"\n+813 <<\"while in RESIZE state!\");\n+814#endif\n+815 deletedEntries_ = true;\n+816\n+817 global.markAsDeleted();\n+818 }\n+819\n+820 template\n+821 void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\be_\bn_\bd_\bR_\be_\bs_\bi_\bz_\be() {\n+822 // Checks in unproductive code\n+823#ifndef NDEBUG\n+824 if(state_ != _\bR_\bE_\bS_\bI_\bZ_\bE)\n+825 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(InvalidIndexSetState, \"endResize called while not \"\n+826 <<\"in RESIZE state!\");\n+827#endif\n+828\n+829 std::sort(newIndices_.begin(), newIndices_.end(),\n+IndexSetSortFunctor());\n+830 merge();\n+831 seqNo_++;\n+832 state_ = _\bG_\bR_\bO_\bU_\bN_\bD;\n+833 }\n+834\n+835\n+836 template\n+837 inline void ParallelIndexSet::merge(){\n+838 if(localIndices_.size()==0)\n+839 {\n+840 localIndices_=newIndices_;\n+841 newIndices_.clear();\n+842 }\n+843 else if(newIndices_.size()>0 || deletedEntries_)\n+844 {\n+845 ArrayList tempPairs;\n+846\n+847 auto old = localIndices_.begin();\n+848 auto added = newIndices_.begin();\n+849 const auto endold = localIndices_.end();\n+850 const auto endadded = newIndices_.end();\n+851\n+852 while(old != endold && added!= endadded)\n+853 {\n+854 if(old->local().state()==_\bD_\bE_\bL_\bE_\bT_\bE_\bD) {\n+855 old.eraseToHere();\n+856 }\n+857 else\n+858 {\n+859 if(old->global() < added->global() ||\n+860 (old->global() == added->global()\n+861 && _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bC_\bo_\bm_\bp_\ba_\br_\ba_\bt_\bo_\br_\b<_\bT_\bL_\b>_\b:_\b:_\bc_\bo_\bm_\bp_\ba_\br_\be(old->local(),added->local())))\n+862 {\n+863 tempPairs.push_back(*old);\n+864 old.eraseToHere();\n+865 continue;\n+866 }else\n+867 {\n+868 tempPairs.push_back(*added);\n+869 added.eraseToHere();\n+870 }\n+871 }\n+872 }\n+873\n+874 while(old != endold)\n+875 {\n+876 if(old->local().state()!=_\bD_\bE_\bL_\bE_\bT_\bE_\bD) {\n+877 tempPairs.push_back(*old);\n+878 }\n+879 old.eraseToHere();\n+880 }\n+881\n+882 while(added!= endadded)\n+883 {\n+884 tempPairs.push_back(*added);\n+885 added.eraseToHere();\n+886 }\n+887 localIndices_ = tempPairs;\n+888 }\n+889 }\n+890\n+891\n+892 template\n+893 inline const IndexPair&\n+894 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\ba_\bt(const TG& global) const\n+895 {\n+896 // perform a binary search\n+897 int low=0, high=localIndices_.size()-1, probe=-1;\n+898\n+899 while(low\n+918 inline const IndexPair&\n+919 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const TG& global) const\n+920 {\n+921 // perform a binary search\n+922 int low=0, high=localIndices_.size()-1, probe=-1;\n+923\n+924 while(low\n+936 inline IndexPair& _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\ba_\bt(const TG& global)\n+937 {\n+938 // perform a binary search\n+939 int low=0, high=localIndices_.size()-1, probe=-1;\n+940\n+941 while(low= global)\n+945 high = probe;\n+946 else\n+947 low = probe+1;\n+948 }\n+949\n+950 if(probe==-1)\n+951 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(RangeError, \"No entries!\");\n+952\n+953 if( localIndices_[low].global() != global)\n+954 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(RangeError, \"Could not find entry of \"<\n+960 inline bool _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs (const TG& global) const\n+961 {\n+962 // perform a binary search\n+963 int low=0, high=localIndices_.size()-1, probe=-1;\n+964\n+965 while(low= global)\n+969 high = probe;\n+970 else\n+971 low = probe+1;\n+972 }\n+973\n+974 if(probe==-1)\n+975 return false;\n+976\n+977 if( localIndices_[low].global() != global)\n+978 return false;\n+979 return true;\n+980 }\n+981\n+982 template\n+983 inline IndexPair& _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const TG&\n+global)\n+984 {\n+985 // perform a binary search\n+986 int low=0, high=localIndices_.size()-1, probe=-1;\n+987\n+988 while(low= global)\n+992 high = probe;\n+993 else\n+994 low = probe+1;\n+995 }\n+996\n+997 return localIndices_[low];\n+998 }\n+999 template\n+1000 inline typename ParallelIndexSet::iterator\n+1001 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n+1002 {\n+1003 return iterator(*this, localIndices_.begin());\n+1004 }\n+1005\n+1006\n+1007 template\n+1008 inline typename ParallelIndexSet::iterator\n+1009 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\be_\bn_\bd()\n+1010 {\n+1011 return iterator(*this,localIndices_.end());\n+1012 }\n+1013\n+1014 template\n+1015 inline typename ParallelIndexSet::const_iterator\n+1016 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n+1017 {\n+1018 return localIndices_.begin();\n+1019 }\n+1020\n+1021\n+1022 template\n+1023 inline typename ParallelIndexSet::const_iterator\n+1024 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\be_\bn_\bd() const\n+1025 {\n+1026 return localIndices_.end();\n+1027 }\n+1028\n+1029 template\n+1030 void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bL_\bo_\bc_\ba_\bl(){\n+1031#ifndef NDEBUG\n+1032 if(state_==_\bR_\bE_\bS_\bI_\bZ_\bE)\n+1033 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(InvalidIndexSetState, \"IndexSet has to be in \"\n+1034 <<\"GROUND state for renumberLocal()\");\n+1035#endif\n+1036\n+1037 const auto end_ = end();\n+1038 uint32_t index=0;\n+1039\n+1040 for(auto pair=begin(); pair!=end_; index++, ++pair)\n+1041 pair->local()=index;\n+1042 }\n+1043\n+1044 template\n+1045 inline int _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bs_\be_\bq_\bN_\bo() const\n+1046 {\n+1047 return seqNo_;\n+1048 }\n+1049\n+1050 template\n+1051 inline size_t _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b,_\bT_\bL_\b,_\bN_\b>_\b:_\b:_\bs_\bi_\bz_\be() const\n+1052 {\n+1053 return localIndices_.size();\n+1054 }\n+1055\n+1056 template\n+1057 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const I& indexset,\n+1058 std::size_t _\bs_\bi_\bz_\be)\n+1059 : indexSet_(indexset), size_(_\bs_\bi_\bz_\be),\n+1060 indices_(size_, static_cast(0))\n+1061 {\n+1062 const_iterator end_ = indexSet_.end();\n+1063\n+1064 for(const_iterator pair = indexSet_.begin(); pair!=end_; ++pair) {\n+1065 assert(pair->local()local()] = &(*pair);\n+1067 }\n+1068 }\n+1069\n+1070 template\n+1071 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const I& indexset)\n+1072 : indexSet_(indexset), size_(0)\n+1073 {\n+1074 const_iterator end_ = indexSet_.end();\n+1075 for(const_iterator pair = indexSet_.begin(); pair!=end_; ++pair)\n+1076 size_=std::max(size_,static_cast(pair->local()));\n+1077\n+1078 indices_.resize(++size_, 0);\n+1079\n+1080 for(const_iterator pair = indexSet_.begin(); pair!=end_; ++pair)\n+1081 indices_[pair->local()] = &(*pair);\n+1082 }\n+1083\n+1084 template\n+1085 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\b~_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt()\n+1086 {}\n+1087\n+1088 template\n+1089 inline const IndexPair*\n+1090 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bp_\ba_\bi_\br(const std::size_t& local) const\n+1091 {\n+1092 return indices_[local];\n+1093 }\n+1094\n+1095 template\n+1096 inline const IndexPair&\n+1097 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const GlobalIndex& global) const\n+1098 {\n+1099 return indexSet_[global];\n+1100 }\n+1101\n+1102 template\n+1103 typename I::const_iterator _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n+1104 {\n+1105 return indexSet_.begin();\n+1106 }\n+1107\n+1108 template\n+1109 typename I::const_iterator _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\be_\bn_\bd() const\n+1110 {\n+1111 return indexSet_.end();\n+1112 }\n+1113\n+1114 template\n+1115 inline size_t _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bs_\bi_\bz_\be() const\n+1116 {\n+1117 return size_;\n+1118 }\n+1119\n+1120 template\n+1121 inline int _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bI_\b>_\b:_\b:_\bs_\be_\bq_\bN_\bo() const\n+1122 {\n+1123 return indexSet_.seqNo();\n+1124 }\n+1125\n+1126 template\n+1127 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const ParallelIndexSet& idxset,\n+1128 const ParallelIndexSet& idxset1)\n+1129 {\n+1130 if(idxset.size()!=idxset1.size())\n+1131 return false;\n+1132 typedef typename ParallelIndexSet::const_iterator Iter;\n+1133 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b<_\bT_\bG_\b1_\b,_\bT_\bL_\b1_\b,_\bN_\b1_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br Iter1;\n+1134 Iter iter=idxset.begin();\n+1135 for(Iter1 iter1=idxset1.begin(); iter1 != idxset1.end(); ++iter, ++iter1)\n+{\n+1136 if(iter1->global()!=iter->global())\n+1137 return false;\n+1138 typedef typename ParallelIndexSet::LocalIndex PI;\n+1139 const PI& pi=iter->local(), pi1=iter1->local();\n+1140\n+1141 if(pi!=pi1)\n+1142 return false;\n+1143 }\n+1144 return true;\n+1145 }\n+1146\n+1147 template\n+1148 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const ParallelIndexSet& idxset,\n+1149 const ParallelIndexSet& idxset1)\n+1150 {\n+1151 return !(idxset==idxset1);\n+1152 }\n+1153\n+1154\n+1155#endif // DOXYGEN\n+1156\n+1157}\n+1158\n+1159#endif // DUNE_COMMON_PARALLEL_INDEXSET_HH\n+_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n+Traits classes for mapping types onto MPI_Datatype.\n+_\bl_\bo_\bc_\ba_\bl_\bi_\bn_\bd_\be_\bx_\b._\bh_\bh\n+Provides classes for use as the local index in ParallelIndexSet.\n+_\ba_\br_\br_\ba_\by_\bl_\bi_\bs_\bt_\b._\bh_\bh\n+Implements a random-access container that can efficiently change size (similar\n+to std::deque)\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:278\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<\n+EnableIfInterOperable< T1, T2, bool >::type operator<(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:638\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>\n+EnableIfInterOperable< T1, T2, bool >::type operator>(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:684\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator<=(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:661\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator==(const\n+ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2,\n+V2, R2, D > &rhs)\n+Checks for equality.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator>=(const\n+RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const\n+RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)\n+Comparison operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:706\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator!=(const\n+ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2,\n+V2, R2, D > &rhs)\n+Checks for inequality.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:260\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+IndexPair & operator[](const GlobalIndex &global)\n+Find the index pair with a specific global id.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\br_\br_\ba_\by_\bS_\bi_\bz_\be\n+static constexpr int arraySize\n+The size of the individual arrays in the underlying ArrayList.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:252\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bR_\be_\bs_\bi_\bz_\be\n+void beginResize()\n+Indicate that the index set is to be resized.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be\n+ParallelIndexSetState\n+The states the index set can be in.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bL_\bo_\bc_\ba_\bl\n+void renumberLocal()\n+Renumbers the local index numbers.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n+bool exists(const GlobalIndex &global) const\n+Find the index pair with a specific global id.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bi_\bz_\be\n+size_t size() const\n+Get the total number (public and nonpublic) indices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+ArrayList< IndexPair, N >::const_iterator const_iterator\n+The constant iterator over the pairs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bo_\br_\bt_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+bool operator()(const IndexPair< TG, TL > &i1, const IndexPair< TG, TL > &i2)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:625\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\bd_\bd\n+void add(const GlobalIndex &global)\n+Add an new index to the set.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+Get an iterator over the indices positioned after the last index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bl_\bo_\bc_\ba_\bl\n+const LocalIndex & local() const\n+Get the local index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\bt\n+const IndexPair & at(const GlobalIndex &global) const\n+Find the index pair with a specific global id.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+GlobalLookupIndexSet(const ParallelIndexSet &indexset)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TL LocalIndex\n+the type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\be_\bq_\bN_\bo\n+int seqNo() const\n+Get the internal sequence number.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bC_\bo_\bm_\bp_\ba_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bm_\bp_\ba_\br_\be\n+static bool compare(const T &t1, const T &t2)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:616\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+Get an iterator over the indices positioned at the first index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+Dune::IndexPair< typename I::GlobalIndex, typename I::LocalIndex > IndexPair\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:529\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+Get an iterator over the indices positioned after the last index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+ParallelIndexSet::const_iterator const_iterator\n+The iterator over the index pairs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:527\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+Get an iterator over the indices positioned at the first index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const IndexPair & operator[](const GlobalIndex &global) const\n+Find the index pair with a specific global id.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bt_\ba_\bt_\be\n+const ParallelIndexSetState & state()\n+Get the state the index set is in.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:307\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+Get an iterator over the indices positioned at the first index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const IndexPair & operator[](const GlobalIndex &global) const\n+Find the index pair with a specific global id.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+IndexPair()\n+Construct a new Pair.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+I ParallelIndexSet\n+The type of the index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:512\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TL LocalIndex\n+The type of the local index, e.g. ParallelLocalIndex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:239\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bm_\ba_\br_\bk_\bA_\bs_\bD_\be_\bl_\be_\bt_\be_\bd\n+void markAsDeleted(const iterator &position)\n+Mark an index as deleted.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::LocalIndex LocalIndex\n+The type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:517\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+IndexPair(const GlobalIndex &global, const LocalIndex &local)\n+Constructs a new Pair.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bs_\be_\bt_\bL_\bo_\bc_\ba_\bl\n+void setLocal(int index)\n+Set the local index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl\n+const GlobalIndex & global() const\n+Get the global index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\bd_\bd\n+void add(const GlobalIndex &global, const LocalIndex &local)\n+Add an new index to the set.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+Get an iterator over the indices positioned after the last index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\bt\n+IndexPair & at(const GlobalIndex &global)\n+Find the index pair with a specific global id.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+ParallelIndexSet()\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bn_\bd_\bR_\be_\bs_\bi_\bz_\be\n+void endResize()\n+Indicate that the resizing finishes.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\b~_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+~GlobalLookupIndexSet()\n+Destructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bp_\ba_\bi_\br\n+const IndexPair * pair(const std::size_t &local) const\n+Get the index pair corresponding to a local index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bl_\bo_\bc_\ba_\bl\n+LocalIndex & local()\n+Get the local index.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bi_\bz_\be\n+size_t size() const\n+Get the total number (public and nonpublic) indices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+IndexPair(const GlobalIndex &global)\n+Constructs a new Pair.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TG GlobalIndex\n+the type of the global index. This type has to provide at least a operator< for\n+sorting.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:226\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+TG GlobalIndex\n+the type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:107\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\be_\bq_\bN_\bo\n+int seqNo() const\n+Get the internal sequence number.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+iterator(ParallelIndexSet< TG, TL, N > &indexSet, const Father &father)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:262\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+GlobalLookupIndexSet(const ParallelIndexSet &indexset, std::size_t size)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+The type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:522\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+Dune::IndexPair< GlobalIndex, LocalIndex > IndexPair\n+The type of the pair stored.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:244\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bE_\bS_\bI_\bZ_\bE\n+@ RESIZE\n+Indicates that the index set is currently being resized.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bR_\bO_\bU_\bN_\bD\n+@ GROUND\n+The default mode. Indicates that the index set is ready to be used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:186\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bE_\bL_\bE_\bT_\bE_\bD\n+@ DELETED\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn localindex.hh:28\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bs\n-constexpr size_type cols() const\n-number of columns\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:715\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bs\n-constexpr size_type rows() const\n-number of rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:709\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr int blocklevel\n-The number of block levels we contain. This is the leaf, that is, 1.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:178\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-Traits::row_type row_type\n-The type used to represent a row (must fulfill the Dune::DenseVector interface)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Traits::size_type size_type\n-The type used for the index access and size operation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:166\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-Traits::const_row_reference const_row_reference\n-The type used to represent a reference to a constant row (usually const\n-row_type &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bS_\bc_\ba_\bl_\ba_\br_\bM_\ba_\bt_\br_\bi_\bx_\bV_\bi_\be_\bw_\b<_\b _\bK_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-Traits::row_reference row_reference\n-The type used to represent a reference to a row (usually row_type &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn densematrix.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bu_\bt_\bo_\bn_\bo_\bm_\bo_\bu_\bs_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b:_\b:_\bt_\by_\bp_\be\n-T type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:531\n+_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bz_\be\n+constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::\n+integer_sequence< T, II... >)\n+Return the size of the sequence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A random access iterator for the Dune::ArrayList class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:255\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+A constant random access iterator for the Dune::ArrayList class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:368\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt\n+A dynamically growing random access list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:62\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstArrayListIterator< MemberType, N, A > const_iterator\n+A constant random access iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arraylist.hh:110\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs\n+A traits class describing the mapping of types onto MPI_Datatypes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bt_\ba_\bt_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n+Default exception if a function was called while the object is not in a valid\n+state for that function...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:281\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bF_\ba_\bc_\ba_\bd_\be_\b<_\b _\bA_\br_\br_\ba_\by_\bL_\bi_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bN_\b,_\b _\bA_\b _\b>_\b,_\b _\bA_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b,\n+_\bA_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b&_\b,_\b _\bA_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+Reference operator*() const\n+Dereferencing operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:501\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bP_\ba_\bi_\br\n+A pair consisting of a global and local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:85\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bt_\ba_\bt_\be\n+Exception indicating that the index set is not in the expected state.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:205\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Decorates an index set with the possibility to find a global index that is\n+mapped to a specific local...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:507\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Manager class for the mapping between local indices and globally unique\n+indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+The iterator over the pairs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:257\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx_\bC_\bo_\bm_\bp_\ba_\br_\ba_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:615\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bS_\bo_\br_\bt_\bF_\bu_\bn_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indexset.hh:624\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00071.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00071.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: dotproduct.hh File Reference\n+dune-common: mpifuture.hh File Reference\n \n \n \n \n \n \n \n@@ -65,60 +65,57 @@\n \n \n \n \n \n \n \n
    \n \n-
    dotproduct.hh File Reference
    \n+Namespaces
    \n+
    mpifuture.hh File Reference
    \n \n
    \n-\n-

    Provides the functions dot(a,b) := \"$a^H and dotT(a,b) := \"$a^T. \n-More...

    \n-
    #include "ftraits.hh"
    \n-#include "typetraits.hh"
    \n+
    #include <functional>
    \n+#include <memory>
    \n+#include <optional>
    \n+#include <type_traits>
    \n+#include <utility>
    \n+#include <mpi.h>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/parallel/communication.hh>
    \n+#include <dune/common/parallel/future.hh>
    \n+#include <dune/common/parallel/mpidata.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n+\n+\n+\n \n-\n+\n+\n \n

    \n Classes

    struct  Dune::IsVector< T, class >
    struct  Dune::impl::Buffer< T >
     
    struct  Dune::impl::Buffer< T & >
     
    struct  Dune::impl::Buffer< void >
     
    struct  Dune::IsVector< T, std::void_t< typename T::field_type > >
    class  Dune::MPIFuture< R, S >
     Provides a future-like object for MPI communication. It contains the object that will be received and might contain also a sending object, which must be hold (keep alive) until the communication has been completed. More...
     
    \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n

    \n-Functions

    template<class A , class B >
    auto Dune::dot (const A &a, const B &b) -> typename std::enable_if< IsNumber< A >::value &&!IsVector< A >::value &&!std::is_same< typename FieldTraits< A >::field_type, typename FieldTraits< A >::real_type > ::value, decltype(conj(a) *b)>::type
     computes the dot product for fundamental data types according to Petsc's VectDot function: dot(a,b) := std::conj(a)*b
     
    template<class A , class B >
    auto Dune::dotT (const A &a, const B &b) -> decltype(a *b)
     Computes an indefinite vector dot product for fundamental data types according to Petsc's VectTDot function: dotT(a,b) := a*b.
     
    namespace  Dune::impl
     
    \n-

    Detailed Description

    \n-

    Provides the functions dot(a,b) := \"$a^H and dotT(a,b) := \"$a^T.

    \n-

    The provided dot products dot,dotT are used to compute (indefinite) dot products for fundamental types as well as DUNE vector types, such as DenseVector, FieldVector, ISTLVector. Note that the definition of dot(a,b) conjugates the first argument. This agrees with the behaviour of Matlab and Petsc, but not with BLAS.

    Author
    J\u00f6 Fahlke, Matthias Wohlmuth
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,48 +1,41 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-dotproduct.hh File Reference\n-Provides the functions dot(a,b) := [$a^H \\cdot b $]and dotT(a,b) := [$a^T \\cdot\n-b $]. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \"_\bf_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\"\n-#include \"_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\"\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+mpifuture.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bd_\ba_\bt_\ba_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bT_\b _\b&_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b<_\b _\bR_\b,_\b _\bS_\b _\b>\n+ Provides a future-like object for MPI communication. It contains the\n+\u00a0 object that will be received and might contain also a sending object,\n+ which must be hold (keep alive) until the communication has been\n+ completed. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bo_\bt (const A &a, const B &b) -> typename std::enable_if< _\bI_\bs_\bN_\bu_\bm_\bb_\be_\br<\n- A >::value &&!_\bI_\bs_\bV_\be_\bc_\bt_\bo_\br< A >::value &&!std::is_same< typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs<\n- A >::field_type, typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs< A >::real_type > ::value, decltype\n- (conj(a) *b)>::type\n-\u00a0 computes the dot product for fundamental data types according to Petsc's\n- VectDot function: dot(a,b) := std::conj(a)*b\n-\u00a0\n-template\n-auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bo_\bt_\bT (const A &a, const B &b) -> decltype(a *b)\n-\u00a0 Computes an indefinite vector dot product for fundamental data types\n- according to Petsc's VectTDot function: dotT(a,b) := a*b.\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides the functions dot(a,b) := [$a^H \\cdot b $]and dotT(a,b) := [$a^T \\cdot\n-b $].\n-The provided dot products dot,dotT are used to compute (indefinite) dot\n-products for fundamental types as well as DUNE vector types, such as\n-DenseVector, FieldVector, ISTLVector. Note that the definition of dot(a,b)\n-conjugates the first argument. This agrees with the behaviour of Matlab and\n-Petsc, but not with BLAS.\n- Author\n- J\u00c3\u00b6 Fahlke, Matthias Wohlmuth\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00071_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00071_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: dotproduct.hh Source File\n+dune-common: mpifuture.hh Source File\n \n \n \n \n \n \n \n@@ -70,86 +70,299 @@\n \n \n \n \n \n \n \n
    \n-
    dotproduct.hh
    \n+
    mpifuture.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_DOTPRODUCT_HH
    \n-
    6#define DUNE_DOTPRODUCT_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_MPIFUTURE_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_MPIFUTURE_HH
    \n
    7
    \n-
    8#include "ftraits.hh"
    \n-
    9#include "typetraits.hh"
    \n-
    10
    \n-
    11namespace Dune {
    \n-
    26 template<class T, class = void>
    \n-
    27 struct IsVector : std::false_type {};
    \n-
    28
    \n-
    29 template<class T>
    \n-
    \n-
    30 struct IsVector<T, std::void_t<typename T::field_type> >
    \n-
    31 : std::true_type {};
    \n-
    \n-
    32
    \n-
    40 template<class A, class B>
    \n-
    41 auto
    \n+
    8#if HAVE_MPI
    \n+
    9
    \n+
    10#include <functional>
    \n+
    11#include <memory>
    \n+
    12#include <optional>
    \n+
    13#include <type_traits>
    \n+
    14#include <utility>
    \n+
    15
    \n+
    16#include <mpi.h>
    \n+
    17
    \n+\n+\n+\n+\n+
    22
    \n+
    23namespace Dune{
    \n+
    24
    \n+
    \n+
    25 namespace impl{
    \n+
    26 template<class T>
    \n+
    \n+
    27 struct Buffer{
    \n+
    \n+
    28 Buffer(bool valid){
    \n+
    29 if(valid)
    \n+
    30 value = std::make_unique<T>();
    \n+
    31 }
    \n+
    \n+
    32 template<class V>
    \n+
    \n+
    33 Buffer(V&& t)
    \n+
    34 : value(std::make_unique<T>(std::forward<V>(t)))
    \n+
    35 {}
    \n+
    \n+
    36 std::unique_ptr<T> value;
    \n+
    \n+
    37 T get(){
    \n+
    38 T tmp = std::move(*value);
    \n+
    39 value.reset();
    \n+
    40 return tmp;
    \n+
    41 }
    \n+
    \n
    \n-
    42 dot(const A & a, const B & b) -> typename std::enable_if<IsNumber<A>::value && !IsVector<A>::value && !std::is_same<typename FieldTraits<A>::field_type,typename FieldTraits<A>::real_type> ::value, decltype(conj(a)*b)>::type
    \n-
    43 {
    \n-
    44 return conj(a)*b;
    \n-
    45 }
    \n-
    \n-
    46
    \n-
    56 // fundamental type with A being a real type
    \n-
    57 template<class A, class B>
    \n-
    58 auto
    \n-
    59 dot(const A & a, const B & b) -> typename std::enable_if<IsNumber<A>::value && !IsVector<A>::value && std::is_same<typename FieldTraits<A>::field_type,typename FieldTraits<A>::real_type>::value, decltype(a*b)>::type
    \n-
    60 {
    \n-
    61 return a*b;
    \n-
    62 }
    \n-
    63
    \n-
    73 template<typename A, typename B>
    \n-
    74 auto
    \n-
    75 dot(const A & a, const B & b) -> typename std::enable_if<IsVector<A>::value, decltype(a.dot(b))>::type
    \n-
    76 {
    \n-
    77 return a.dot(b);
    \n-
    78 }
    \n-
    79
    \n-
    87 template<class A, class B>
    \n-
    88 auto
    \n-
    \n-
    89 dotT(const A & a, const B & b) -> decltype(a*b)
    \n-
    90 {
    \n-
    91 return a*b;
    \n-
    92 }
    \n-
    \n-
    93
    \n-
    95} // end namespace DUNE
    \n-
    96
    \n-
    97#endif // DUNE_DOTPRODUCT_HH
    \n-
    Type traits to determine the type of reals (when working with complex numbers)
    \n-
    Traits for type conversions and type information.
    \n-
    auto dotT(const A &a, const B &b) -> decltype(a *b)
    Computes an indefinite vector dot product for fundamental data types according to Petsc's VectTDot fu...
    Definition dotproduct.hh:89
    \n-
    auto dot(const A &a, const B &b) -> typename std::enable_if< IsNumber< A >::value &&!IsVector< A >::value &&!std::is_same< typename FieldTraits< A >::field_type, typename FieldTraits< A >::real_type > ::value, decltype(conj(a) *b)>::type
    computes the dot product for fundamental data types according to Petsc's VectDot function: dot(a,...
    Definition dotproduct.hh:42
    \n-
    typename Impl::voider< Types... >::type void_t
    Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.
    Definition typetraits.hh:40
    \n+
    42 operator bool () const {
    \n+
    43 return (bool)value;
    \n+
    44 }
    \n+
    \n+
    \n+
    45 T& operator *() const{
    \n+
    46 return *value;
    \n+
    47 }
    \n+
    \n+
    48 };
    \n+
    \n+
    49
    \n+
    50 template<class T>
    \n+
    \n+
    51 struct Buffer<T&>{
    \n+
    \n+
    52 Buffer(bool valid = false)
    \n+
    53 {
    \n+
    54 if(valid)
    \n+
    55 value = T();
    \n+
    56 }
    \n+
    \n+
    57 template<class V>
    \n+
    \n+
    58 Buffer(V&& t)
    \n+
    59 : value(std::forward<V>(t))
    \n+
    60 {}
    \n+
    \n+
    61 std::optional<std::reference_wrapper<T>> value;
    \n+
    \n+
    62 T& get(){
    \n+
    63 T& tmp = *value;
    \n+
    64 value.reset();
    \n+
    65 return tmp;
    \n+
    66 }
    \n+
    \n+
    \n+
    67 operator bool () const{
    \n+
    68 return (bool)value;
    \n+
    69 }
    \n+
    \n+
    \n+
    70 T& operator *() const{
    \n+
    71 return *value;
    \n+
    72 }
    \n+
    \n+
    73 };
    \n+
    \n+
    74
    \n+
    75 template<>
    \n+
    \n+
    76 struct Buffer<void>{
    \n+
    77 bool valid_;
    \n+
    \n+
    78 Buffer(bool valid = false)
    \n+
    79 : valid_(valid)
    \n+
    80 {}
    \n+
    \n+
    \n+
    81 operator bool () const{
    \n+
    82 return valid_;
    \n+
    83 }
    \n+
    \n+
    84 void get(){}
    \n+
    85 };
    \n+
    \n+
    86 }
    \n+
    \n+
    87
    \n+
    92 template<class R, class S = void>
    \n+
    \n+
    93 class MPIFuture{
    \n+
    94 mutable MPI_Request req_;
    \n+
    95 mutable MPI_Status status_;
    \n+
    96 impl::Buffer<R> data_;
    \n+
    97 impl::Buffer<S> send_data_;
    \n+
    98 friend class Communication<MPI_Comm>;
    \n+
    99 public:
    \n+
    \n+
    100 MPIFuture(bool valid = false)
    \n+
    101 : req_(MPI_REQUEST_NULL)
    \n+
    102 , data_(valid)
    \n+
    103 {}
    \n+
    \n+
    104
    \n+
    105 // Hide this constructor if R or S is void
    \n+
    106 template<class V = R, class U = S>
    \n+
    \n+
    107 MPIFuture(V&& recv_data, U&& send_data, typename std::enable_if_t<!std::is_void<V>::value && !std::is_void<U>::value>* = 0) :
    \n+
    108 req_(MPI_REQUEST_NULL)
    \n+
    109 , data_(std::forward<R>(recv_data))
    \n+
    110 , send_data_(std::forward<S>(send_data))
    \n+
    111 {}
    \n+
    \n+
    112
    \n+
    113 // hide this constructor if R is void
    \n+
    114 template<class V = R>
    \n+
    \n+
    115 MPIFuture(V&& recv_data, typename std::enable_if_t<!std::is_void<V>::value>* = 0)
    \n+
    116 : req_(MPI_REQUEST_NULL)
    \n+
    117 , data_(std::forward<V>(recv_data))
    \n+
    118 {}
    \n+
    \n+
    119
    \n+
    \n+\n+
    121 if(req_ != MPI_REQUEST_NULL){
    \n+
    122 try{ // might fail when it is a collective communication
    \n+
    123 MPI_Cancel(&req_);
    \n+
    124 MPI_Request_free(&req_);
    \n+
    125 }catch(...){
    \n+
    126 }
    \n+
    127 }
    \n+
    128 }
    \n+
    \n+
    129
    \n+
    \n+\n+
    131 : req_(MPI_REQUEST_NULL)
    \n+
    132 , data_(std::move(f.data_))
    \n+
    133 , send_data_(std::move(f.send_data_))
    \n+
    134 {
    \n+
    135 std::swap(req_, f.req_);
    \n+
    136 std::swap(status_, f.status_);
    \n+
    137 }
    \n+
    \n+
    138
    \n+
    \n+\n+
    140 std::swap(req_, f.req_);
    \n+
    141 std::swap(status_, f.status_);
    \n+
    142 std::swap(data_, f.data_);
    \n+
    143 std::swap(send_data_, f.send_data_);
    \n+
    144 return *this;
    \n+
    145 }
    \n+
    \n+
    146
    \n+
    \n+
    147 bool valid() const{
    \n+
    148 return (bool)data_;
    \n+
    149 }
    \n+
    \n+
    150
    \n+
    \n+
    151 void wait(){
    \n+
    152 if(!valid())
    \n+
    153 DUNE_THROW(InvalidFutureException, "The MPIFuture is not valid!");
    \n+
    154 MPI_Wait(&req_, &status_);
    \n+
    155 }
    \n+
    \n+
    156
    \n+
    \n+
    157 bool ready() const{
    \n+
    158 int flag = -1;
    \n+
    159 MPI_Test(&req_, &flag, &status_);
    \n+
    160 return flag;
    \n+
    161 }
    \n+
    \n+
    162
    \n+
    \n+
    163 R get() {
    \n+
    164 wait();
    \n+
    165 return data_.get();
    \n+
    166 }
    \n+
    \n+
    167
    \n+
    \n+\n+
    169 wait();
    \n+
    170 return send_data_.get();
    \n+
    171 }
    \n+
    \n+
    172
    \n+
    \n+\n+
    174 return getMPIData(*data_);
    \n+
    175 }
    \n+
    \n+
    176
    \n+
    \n+\n+
    178 return getMPIData(*send_data_);
    \n+
    179 }
    \n+
    \n+
    180 };
    \n+
    \n+
    181
    \n+
    182}
    \n+
    183#endif // HAVE_MPI
    \n+
    184#endif // DUNE_COMMON_PARALLEL_MPIFUTURE_HH
    \n+\n+
    Implements an utility class that provides collective communication methods for sequential programs.
    \n+
    Interface class to translate objects to a MPI_Datatype, void* and size used for MPI calls.
    \n+
    A few common exception classes.
    \n+
    bigunsignedint< k > operator*(const bigunsignedint< k > &x, std::uintmax_t y)
    Definition bigunsignedint.hh:549
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    Definition dotproduct.hh:27
    \n-
    T real_type
    export the type representing the real type of the field
    Definition ftraits.hh:30
    \n+
    auto getMPIData(T &t)
    Definition mpidata.hh:44
    \n+
    Collective communication interface and sequential default implementation.
    Definition communication.hh:100
    \n+
    This exception is thrown when ready(), wait() or get() is called on an invalid future....
    Definition future.hh:20
    \n+
    Definition mpifuture.hh:27
    \n+
    std::unique_ptr< T > value
    Definition mpifuture.hh:36
    \n+
    T & operator*() const
    Definition mpifuture.hh:45
    \n+
    Buffer(V &&t)
    Definition mpifuture.hh:33
    \n+
    T get()
    Definition mpifuture.hh:37
    \n+
    Buffer(bool valid)
    Definition mpifuture.hh:28
    \n+
    std::optional< std::reference_wrapper< T > > value
    Definition mpifuture.hh:61
    \n+
    Buffer(bool valid=false)
    Definition mpifuture.hh:52
    \n+
    T & get()
    Definition mpifuture.hh:62
    \n+
    Buffer(V &&t)
    Definition mpifuture.hh:58
    \n+
    bool valid_
    Definition mpifuture.hh:77
    \n+
    void get()
    Definition mpifuture.hh:84
    \n+
    Buffer(bool valid=false)
    Definition mpifuture.hh:78
    \n+
    Provides a future-like object for MPI communication. It contains the object that will be received and...
    Definition mpifuture.hh:93
    \n+
    MPIFuture(V &&recv_data, typename std::enable_if_t<!std::is_void< V >::value > *=0)
    Definition mpifuture.hh:115
    \n+
    bool ready() const
    Definition mpifuture.hh:157
    \n+
    bool valid() const
    Definition mpifuture.hh:147
    \n+
    ~MPIFuture()
    Definition mpifuture.hh:120
    \n+
    MPIFuture(bool valid=false)
    Definition mpifuture.hh:100
    \n+
    MPIFuture & operator=(MPIFuture &&f)
    Definition mpifuture.hh:139
    \n+
    auto get_send_mpidata()
    Definition mpifuture.hh:177
    \n+
    void wait()
    Definition mpifuture.hh:151
    \n+
    auto get_mpidata()
    Definition mpifuture.hh:173
    \n+
    R get()
    Definition mpifuture.hh:163
    \n+
    MPIFuture(V &&recv_data, U &&send_data, typename std::enable_if_t<!std::is_void< V >::value &&!std::is_void< U >::value > *=0)
    Definition mpifuture.hh:107
    \n+
    S get_send_data()
    Definition mpifuture.hh:168
    \n+
    MPIFuture(MPIFuture &&f)
    Definition mpifuture.hh:130
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,99 +1,307 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-dotproduct.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpifuture.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_DOTPRODUCT_HH\n-6#define DUNE_DOTPRODUCT_HH\n+5#ifndef DUNE_COMMON_PARALLEL_MPIFUTURE_HH\n+6#define DUNE_COMMON_PARALLEL_MPIFUTURE_HH\n 7\n-8#include \"_\bf_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\"\n-9#include \"_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\"\n-10\n-11namespace _\bD_\bu_\bn_\be {\n-26 template\n-_\b2_\b7 struct _\bI_\bs_\bV_\be_\bc_\bt_\bo_\br : std::false_type {};\n-28\n-29 template\n-_\b3_\b0 struct _\bI_\bs_\bV_\be_\bc_\bt_\bo_\br >\n-31 : std::true_type {};\n-32\n-40 template\n-41 auto\n-_\b4_\b2 _\bd_\bo_\bt(const A & a, const B & b) -> typename std::enable_if::value\n-&& !_\bI_\bs_\bV_\be_\bc_\bt_\bo_\br_\b<_\bA_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be && !std::is_same::\n-field_type,typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bA_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be> ::value, decltype(conj(a)*b)>::\n-type\n-43 {\n-44 return conj(a)*b;\n-45 }\n-46\n-56 // fundamental type with A being a real type\n-57 template\n-58 auto\n-59 _\bd_\bo_\bt(const A & a, const B & b) -> typename std::enable_if::value\n-&& !IsVector::value && std::is_same::\n-field_type,typename _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bA_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be>::value, decltype(a*b)>::type\n-60 {\n-61 return a*b;\n-62 }\n-63\n-73 template\n-74 auto\n-75 _\bd_\bo_\bt(const A & a, const B & b) -> typename std::enable_if::value,\n-decltype(a.dot(b))>::type\n-76 {\n-77 return a.dot(b);\n-78 }\n-79\n-87 template\n-88 auto\n-_\b8_\b9 _\bd_\bo_\bt_\bT(const A & a, const B & b) -> decltype(a*b)\n-90 {\n-91 return a*b;\n-92 }\n-93\n-95} // end namespace DUNE\n-96\n-97#endif // DUNE_DOTPRODUCT_HH\n-_\bf_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Type traits to determine the type of reals (when working with complex numbers)\n-_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh\n-Traits for type conversions and type information.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bo_\bt_\bT\n-auto dotT(const A &a, const B &b) -> decltype(a *b)\n-Computes an indefinite vector dot product for fundamental data types according\n-to Petsc's VectTDot fu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dotproduct.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bo_\bt\n-auto dot(const A &a, const B &b) -> typename std::enable_if< IsNumber< A >::\n-value &&!IsVector< A >::value &&!std::is_same< typename FieldTraits< A >::\n-field_type, typename FieldTraits< A >::real_type > ::value, decltype(conj(a)\n-*b)>::type\n-computes the dot product for fundamental data types according to Petsc's\n-VectDot function: dot(a,...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dotproduct.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt\n-typename Impl::voider< Types... >::type void_t\n-Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn typetraits.hh:40\n+8#if HAVE_MPI\n+9\n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15\n+16#include \n+17\n+18#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+19#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+20#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh>\n+21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bd_\ba_\bt_\ba_\b._\bh_\bh>\n+22\n+23namespace _\bD_\bu_\bn_\be{\n+24\n+_\b2_\b5 namespace impl{\n+26 template\n+_\b2_\b7 struct _\bB_\bu_\bf_\bf_\be_\br{\n+_\b2_\b8 _\bB_\bu_\bf_\bf_\be_\br(bool valid){\n+29 if(valid)\n+30 _\bv_\ba_\bl_\bu_\be = std::make_unique();\n+31 }\n+32 template\n+_\b3_\b3 _\bB_\bu_\bf_\bf_\be_\br(V&& t)\n+34 : _\bv_\ba_\bl_\bu_\be(_\bs_\bt_\bd::make_unique(_\bs_\bt_\bd::forward(t)))\n+35 {}\n+_\b3_\b6 std::unique_ptr _\bv_\ba_\bl_\bu_\be;\n+_\b3_\b7 T _\bg_\be_\bt(){\n+38 T tmp = std::move(*_\bv_\ba_\bl_\bu_\be);\n+39 _\bv_\ba_\bl_\bu_\be.reset();\n+40 return tmp;\n+41 }\n+_\b4_\b2 operator bool () const {\n+43 return (bool)_\bv_\ba_\bl_\bu_\be;\n+44 }\n+_\b4_\b5 T& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b*() const{\n+46 return *_\bv_\ba_\bl_\bu_\be;\n+47 }\n+48 };\n+49\n+50 template\n+_\b5_\b1 struct _\bB_\bu_\bf_\bf_\be_\br{\n+_\b5_\b2 _\bB_\bu_\bf_\bf_\be_\br(bool valid = false)\n+53 {\n+54 if(valid)\n+55 value = T();\n+56 }\n+57 template\n+_\b5_\b8 _\bB_\bu_\bf_\bf_\be_\br(V&& t)\n+59 : value(_\bs_\bt_\bd::forward(t))\n+60 {}\n+_\b6_\b1 std::optional> _\bv_\ba_\bl_\bu_\be;\n+_\b6_\b2 T& _\bg_\be_\bt(){\n+63 T& tmp = *value;\n+64 value.reset();\n+65 return tmp;\n+66 }\n+_\b6_\b7 operator bool () const{\n+68 return (bool)value;\n+69 }\n+_\b7_\b0 T& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b*() const{\n+71 return *value;\n+72 }\n+73 };\n+74\n+75 template<>\n+_\b7_\b6 struct _\bB_\bu_\bf_\bf_\be_\br{\n+_\b7_\b7 bool _\bv_\ba_\bl_\bi_\bd_\b_;\n+_\b7_\b8 _\bB_\bu_\bf_\bf_\be_\br(bool valid = false)\n+79 : valid_(valid)\n+80 {}\n+_\b8_\b1 operator bool () const{\n+82 return valid_;\n+83 }\n+_\b8_\b4 void _\bg_\be_\bt(){}\n+85 };\n+86 }\n+87\n+92 template\n+_\b9_\b3 class _\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be{\n+94 mutable MPI_Request req_;\n+95 mutable MPI_Status status_;\n+96 _\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\bR_\b> data_;\n+_\b9_\b7 _\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\bS_\b> send_data_;\n+98 friend class _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn;\n+99 public:\n+_\b1_\b0_\b0 _\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be(bool _\bv_\ba_\bl_\bi_\bd = false)\n+101 : req_(MPI_REQUEST_NULL)\n+102 , data_(_\bv_\ba_\bl_\bi_\bd)\n+103 {}\n+104\n+105 // Hide this constructor if R or S is void\n+106 template\n+_\b1_\b0_\b7 _\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be(V&& recv_data, U&& send_data, typename std::enable_if_t::value && !std::is_void::value>* = 0) :\n+108 req_(MPI_REQUEST_NULL)\n+109 , data_(_\bs_\bt_\bd::forward(recv_data))\n+110 , send_data_(_\bs_\bt_\bd::forward(send_data))\n+111 {}\n+112\n+113 // hide this constructor if R is void\n+114 template\n+_\b1_\b1_\b5 _\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be(V&& recv_data, typename std::enable_if_t::\n+value>* = 0)\n+116 : req_(MPI_REQUEST_NULL)\n+117 , data_(_\bs_\bt_\bd::forward(recv_data))\n+118 {}\n+119\n+_\b1_\b2_\b0 _\b~_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be() {\n+121 if(req_ != MPI_REQUEST_NULL){\n+122 try{ // might fail when it is a collective communication\n+123 MPI_Cancel(&req_);\n+124 MPI_Request_free(&req_);\n+125 }catch(...){\n+126 }\n+127 }\n+128 }\n+129\n+_\b1_\b3_\b0 _\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be(_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be&& f)\n+131 : req_(MPI_REQUEST_NULL)\n+132 , data_(_\bs_\bt_\bd::move(f.data_))\n+133 , send_data_(_\bs_\bt_\bd::move(f.send_data_))\n+134 {\n+135 std::swap(req_, f.req_);\n+136 std::swap(status_, f.status_);\n+137 }\n+138\n+_\b1_\b3_\b9 _\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be&& f){\n+140 std::swap(req_, f.req_);\n+141 std::swap(status_, f.status_);\n+142 std::swap(data_, f.data_);\n+143 std::swap(send_data_, f.send_data_);\n+144 return *this;\n+145 }\n+146\n+_\b1_\b4_\b7 bool _\bv_\ba_\bl_\bi_\bd() const{\n+148 return (bool)data_;\n+149 }\n+150\n+_\b1_\b5_\b1 void _\bw_\ba_\bi_\bt(){\n+152 if(!_\bv_\ba_\bl_\bi_\bd())\n+153 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn, \"The MPIFuture is not valid!\");\n+154 MPI_Wait(&req_, &status_);\n+155 }\n+156\n+_\b1_\b5_\b7 bool _\br_\be_\ba_\bd_\by() const{\n+158 int flag = -1;\n+159 MPI_Test(&req_, &flag, &status_);\n+160 return flag;\n+161 }\n+162\n+_\b1_\b6_\b3 R _\bg_\be_\bt() {\n+164 _\bw_\ba_\bi_\bt();\n+165 return data_.get();\n+166 }\n+167\n+_\b1_\b6_\b8 S _\bg_\be_\bt_\b__\bs_\be_\bn_\bd_\b__\bd_\ba_\bt_\ba(){\n+169 _\bw_\ba_\bi_\bt();\n+170 return send_data_._\bg_\be_\bt();\n+171 }\n+172\n+_\b1_\b7_\b3 auto _\bg_\be_\bt_\b__\bm_\bp_\bi_\bd_\ba_\bt_\ba(){\n+174 return _\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(*data_);\n+175 }\n+176\n+_\b1_\b7_\b7 auto _\bg_\be_\bt_\b__\bs_\be_\bn_\bd_\b__\bm_\bp_\bi_\bd_\ba_\bt_\ba(){\n+178 return _\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(*send_data_);\n+179 }\n+180 };\n+181\n+182}\n+183#endif // HAVE_MPI\n+184#endif // DUNE_COMMON_PARALLEL_MPIFUTURE_HH\n+_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Implements an utility class that provides collective communication methods for\n+sequential programs.\n+_\bm_\bp_\bi_\bd_\ba_\bt_\ba_\b._\bh_\bh\n+Interface class to translate objects to a MPI_Datatype, void* and size used for\n+MPI calls.\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+bigunsignedint< k > operator*(const bigunsignedint< k > &x, std::uintmax_t y)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:549\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n _\bs_\bt_\bd\n STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bV_\be_\bc_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dotproduct.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-T real_type\n-export the type representing the real type of the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ftraits.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba\n+auto getMPIData(T &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpidata.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Collective communication interface and sequential default implementation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bF_\bu_\bt_\bu_\br_\be_\bE_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn\n+This exception is thrown when ready(), wait() or get() is called on an invalid\n+future....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:20\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+std::unique_ptr< T > value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+T & operator*() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br\n+Buffer(V &&t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b:_\b:_\bg_\be_\bt\n+T get()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br\n+Buffer(bool valid)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bT_\b _\b&_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+std::optional< std::reference_wrapper< T > > value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bT_\b _\b&_\b _\b>_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br\n+Buffer(bool valid=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bT_\b _\b&_\b _\b>_\b:_\b:_\bg_\be_\bt\n+T & get()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:62\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bT_\b _\b&_\b _\b>_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br\n+Buffer(V &&t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bi_\bd_\b_\n+bool valid_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bg_\be_\bt\n+void get()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bm_\bp_\bl_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>_\b:_\b:_\bB_\bu_\bf_\bf_\be_\br\n+Buffer(bool valid=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be\n+Provides a future-like object for MPI communication. It contains the object\n+that will be received and...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be\n+MPIFuture(V &&recv_data, typename std::enable_if_t::value >\n+*=0)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:115\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\br_\be_\ba_\bd_\by\n+bool ready() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:157\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bv_\ba_\bl_\bi_\bd\n+bool valid() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:147\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\b~_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be\n+~MPIFuture()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be\n+MPIFuture(bool valid=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+MPIFuture & operator=(MPIFuture &&f)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bg_\be_\bt_\b__\bs_\be_\bn_\bd_\b__\bm_\bp_\bi_\bd_\ba_\bt_\ba\n+auto get_send_mpidata()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:177\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bw_\ba_\bi_\bt\n+void wait()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bg_\be_\bt_\b__\bm_\bp_\bi_\bd_\ba_\bt_\ba\n+auto get_mpidata()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:173\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bg_\be_\bt\n+R get()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be\n+MPIFuture(V &&recv_data, U &&send_data, typename std::enable_if_t::value &&!std::is_void< U >::value > *=0)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:107\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bg_\be_\bt_\b__\bs_\be_\bn_\bd_\b__\bd_\ba_\bt_\ba\n+S get_send_data()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be_\b:_\b:_\bM_\bP_\bI_\bF_\bu_\bt_\bu_\br_\be\n+MPIFuture(MPIFuture &&f)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpifuture.hh:130\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00074.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00074.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: propertymap.hh File Reference\n+dune-common: communication.hh File Reference\n \n \n \n \n \n \n \n@@ -65,84 +65,71 @@\n \n \n \n \n \n \n \n
    \n \n-
    propertymap.hh File Reference
    \n+
    communication.hh File Reference
    \n
    \n
    \n-
    #include <cstddef>
    \n-#include <iterator>
    \n-#include <type_traits>
    \n+\n+

    Implements an utility class that provides collective communication methods for sequential programs. \n+More...

    \n+
    #include <iostream>
    \n+#include <complex>
    \n+#include <algorithm>
    \n+#include <vector>
    \n+#include <dune/common/binaryfunctions.hh>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/parallel/future.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::PropertyMapTraits< PM >
     
    struct  Dune::ReadablePropertyMapTag
     Tag for the category of readable property maps. More...
     
    struct  Dune::WritablePropertyMapTag
     Tag for the category of writable property maps. More...
     
    struct  Dune::ReadWritePropertyMapTag
     Tag for the category of readable and writable property maps. More...
     
    struct  Dune::LvaluePropertyMapTag
     Tag for the category of lvalue property maps. More...
     
    struct  Dune::PropertyMapTraits< T * >
     
    struct  Dune::PropertyMapTraits< const T * >
    struct  Dune::No_Comm
     
    struct  Dune::RAPropertyMapHelper< Reference, PropertyMap >
     
    class  Dune::IteratorPropertyMap< RAI, IM, T, R >
     Adapter to turn a random access iterator into a property map. More...
     
    class  Dune::AssociativePropertyMap< T >
     An adapter to turn an unique associative container into a property map. More...
     
    class  Dune::ConstAssociativePropertyMap< T >
     An adaptor to turn an unique associative container into a property map. More...
     
    struct  Dune::IdentityMap
     A property map that applies the identity function to integers. More...
     
    struct  Dune::PropertyMapTypeSelector< T, C >
     Selector for the property map type. More...
    class  Dune::Communication< Communicator >
     Collective communication interface and sequential default implementation. More...
     
    \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n+\n+\n+\n+\n+

    \n+Typedefs

    template<class T >
    using Dune::CollectiveCommunication = Communication< T >
     
    \n \n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<class Reference , class PropertyMap , class Key >
    Reference Dune::get (const RAPropertyMapHelper< Reference, PropertyMap > &pmap, const Key &key)
     
    template<class Reference , class PropertyMap , class Key , class Value >
    void Dune::put (const RAPropertyMapHelper< Reference, PropertyMap > &pmap, const Key &key, const Value &value)
     
    bool Dune::operator== (const No_Comm &, const No_Comm &)
     Comparison operator for MPI compatibility.
     
    bool Dune::operator!= (const No_Comm &, const No_Comm &)
     Comparison operator for MPI compatibility.
     
    \n-
    \n+

    Detailed Description

    \n+

    Implements an utility class that provides collective communication methods for sequential programs.

    \n+

    An abstraction to the basic methods of parallel communication, following the message-passing paradigm.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,65 +1,49 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-propertymap.hh File Reference\n-#include \n-#include \n-#include \n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+communication.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Implements an utility class that provides collective communication methods for\n+sequential programs. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bi_\bn_\ba_\br_\by_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\bM_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\b__\bC_\bo_\bm_\bm\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\ba_\bd_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-\u00a0 Tag for the category of readable property maps. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bW_\br_\bi_\bt_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-\u00a0 Tag for the category of writable property maps. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\ba_\bd_\bW_\br_\bi_\bt_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-\u00a0 Tag for the category of readable and writable property maps. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-\u00a0 Tag for the category of lvalue property maps. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b*_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b*_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b,_\b _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bR_\bA_\bI_\b,_\b _\bI_\bM_\b,_\b _\bT_\b,_\b _\bR_\b _\b>\n-\u00a0 Adapter to turn a random access iterator into a property map. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bT_\b _\b>\n-\u00a0 An adapter to turn an unique associative container into a property\n- map. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bT_\b _\b>\n-\u00a0 An adaptor to turn an unique associative container into a property\n- map. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp\n-\u00a0 A property map that applies the identity function to integers. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bC_\b _\b>\n-\u00a0 Selector for the property map type. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br_\b _\b>\n+\u00a0 Collective communication interface and sequential default\n+ implementation. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn = _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T >\n+\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-Reference\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt (const _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br< Reference, PropertyMap >\n- &pmap, const Key &key)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\bu_\bt (const _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br< Reference, PropertyMap >\n- &pmap, const Key &key, const Value &value)\n+bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b= (const _\bN_\bo_\b__\bC_\bo_\bm_\bm &, const _\bN_\bo_\b__\bC_\bo_\bm_\bm &)\n+\u00a0 Comparison operator for MPI compatibility.\n+\u00a0\n+bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b= (const _\bN_\bo_\b__\bC_\bo_\bm_\bm &, const _\bN_\bo_\b__\bC_\bo_\bm_\bm &)\n+\u00a0 Comparison operator for MPI compatibility.\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Implements an utility class that provides collective communication methods for\n+sequential programs.\n+An abstraction to the basic methods of parallel communication, following the\n+message-passing paradigm.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00074_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00074_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: propertymap.hh Source File\n+dune-common: communication.hh Source File\n \n \n \n \n \n \n \n@@ -70,311 +70,417 @@\n \n \n \n \n \n \n \n
    \n-
    propertymap.hh
    \n+
    communication.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_PROPERTYMAP_HH
    \n-
    6#define DUNE_PROPERTYMAP_HH
    \n-
    7
    \n-
    8#include <cstddef>
    \n-
    9#include <iterator>
    \n-
    10#include <type_traits>
    \n-
    11
    \n-
    12namespace Dune
    \n-
    13{
    \n-
    14
    \n-
    15 template<class PM>
    \n-
    \n-\n-
    17 {
    \n-
    21 typedef typename PM::KeyType KeyType;
    \n-
    25 typedef typename PM::ValueType ValueType;
    \n-
    29 typedef typename PM::Reference Reference;
    \n-
    33 typedef typename PM::Category Category;
    \n-
    34 };
    \n-
    \n-
    35
    \n-
    \n-\n-
    38 {};
    \n-
    \n-
    39
    \n-
    \n-\n-
    42 {};
    \n-
    \n-
    43
    \n-
    \n-\n-\n-
    50 {};
    \n-
    \n-
    51
    \n-
    \n-\n-\n-
    57 {};
    \n-
    \n-
    58
    \n-
    59 template<class T>
    \n-
    \n-\n-
    61 {
    \n-
    62 typedef T ValueType;
    \n-\n-
    64 typedef std::ptrdiff_t KeyType;
    \n-\n-
    66 };
    \n-
    \n-
    67
    \n-
    68
    \n-
    69 template<class T>
    \n-
    \n-
    70 struct PropertyMapTraits<const T*>
    \n-
    71 {
    \n-
    72 typedef T ValueType;
    \n-
    73 typedef const ValueType& Reference;
    \n-
    74 typedef std::ptrdiff_t KeyType;
    \n-\n-
    76 };
    \n-
    \n-
    77
    \n-
    78 template<class Reference, class PropertyMap>
    \n-
    \n-\n-
    80 {};
    \n-
    \n-
    81
    \n-
    82 template<class Reference, class PropertyMap, class Key>
    \n-
    83 inline Reference
    \n-
    \n-\n-
    85 const Key& key)
    \n-
    86 {
    \n-
    87 return static_cast<const PropertyMap&>(pmap)[key];
    \n-
    88 }
    \n-
    \n-
    89
    \n-
    90 template<class Reference, class PropertyMap, class Key, class Value>
    \n-
    91 inline void
    \n-
    \n-\n-
    93 const Key& key, const Value& value)
    \n-
    94 {
    \n-
    95 static_assert(std::is_convertible<typename PropertyMap::Category,WritablePropertyMapTag>::value,
    \n-
    96 "WritablePropertyMapTag required!");
    \n-
    97 static_cast<const PropertyMap&>(pmap)[key] = value;
    \n-
    98 }
    \n-
    \n-
    99
    \n-
    103 template<class RAI, class IM,
    \n-
    104 class T = typename std::iterator_traits<RAI>::value_type,
    \n-
    105 class R = typename std::iterator_traits<RAI>::reference>
    \n-
    \n-\n-
    107 : public RAPropertyMapHelper<R,IteratorPropertyMap<RAI,IM,T,R> >
    \n-
    108 {
    \n-
    109 public:
    \n-\n-
    114
    \n-
    120 typedef IM IndexMap;
    \n-
    121
    \n-
    125 typedef typename IndexMap::KeyType KeyType;
    \n-
    126
    \n-
    130 typedef T ValueType;
    \n-
    131
    \n-
    135 typedef R Reference;
    \n-
    136
    \n-\n+
    5#ifndef DUNE_COMMON_PARALLEL_COMMUNICATION_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_COMMUNICATION_HH
    \n+
    14#include <iostream>
    \n+
    15#include <complex>
    \n+
    16#include <algorithm>
    \n+
    17#include <vector>
    \n+
    18
    \n+\n+\n+\n+
    22
    \n+
    42namespace Dune
    \n+
    43{
    \n+
    44
    \n+
    45 /* define some type that definitely differs from MPI_Comm */
    \n+
    46 struct No_Comm {};
    \n+
    47
    \n+
    \n+
    52 inline bool operator==(const No_Comm&, const No_Comm&)
    \n+
    53 {
    \n+
    54 return true;
    \n+
    55 }
    \n+
    \n+
    56
    \n+
    \n+
    61 inline bool operator!=(const No_Comm&, const No_Comm&)
    \n+
    62 {
    \n+
    63 return false;
    \n+
    64 }
    \n+
    \n+
    65
    \n+
    98 template<typename Communicator>
    \n+
    \n+\n+
    100 {
    \n+
    101 public:
    \n+
    \n+\n+
    104 {}
    \n+
    \n+
    105
    \n+
    \n+
    110 Communication (const Communicator&)
    \n+
    111 {}
    \n+
    \n+
    112
    \n+
    \n+
    114 int rank () const
    \n+
    115 {
    \n+
    116 return 0;
    \n+
    117 }
    \n+
    \n+
    118
    \n+
    \n+
    120 operator No_Comm() const
    \n+
    121 {
    \n+
    122 return {};
    \n+
    123 }
    \n+
    \n+
    124
    \n+
    \n+
    126 int size () const
    \n+
    127 {
    \n+
    128 return 1;
    \n+
    129 }
    \n+
    \n+
    130
    \n+
    134 template<class T>
    \n+
    \n+
    135 int send([[maybe_unused]] const T& data,
    \n+
    136 [[maybe_unused]] int dest_rank,
    \n+
    137 [[maybe_unused]] int tag)
    \n+
    138 {
    \n+
    139 DUNE_THROW(ParallelError, "This method is not supported in sequential programs");
    \n+
    140 }
    \n+
    \n
    141
    \n-
    \n-\n-
    150 const IndexMap& im=IndexMap())
    \n-
    151 : iter_(iter), indexMap_(im)
    \n-
    152 {}
    \n-
    \n-
    153
    \n-
    \n-\n-
    156 : iter_(), indexMap_()
    \n-
    157 {}
    \n-
    \n-
    158
    \n-
    \n-
    160 inline Reference operator[](KeyType key) const
    \n-
    161 {
    \n-
    162 return *(iter_ + get(indexMap_, key));
    \n+
    145 template<class T>
    \n+
    \n+
    146 PseudoFuture<T> isend([[maybe_unused]] const T&& data,
    \n+
    147 [[maybe_unused]] int dest_rank,
    \n+
    148 [[maybe_unused]] int tag)
    \n+
    149 {
    \n+
    150 DUNE_THROW(ParallelError, "This method is not supported in sequential programs");
    \n+
    151 }
    \n+
    \n+
    152
    \n+
    156 template<class T>
    \n+
    \n+
    157 T recv([[maybe_unused]] T&& data,
    \n+
    158 [[maybe_unused]] int source_rank,
    \n+
    159 [[maybe_unused]] int tag,
    \n+
    160 [[maybe_unused]] void* status = 0)
    \n+
    161 {
    \n+
    162 DUNE_THROW(ParallelError, "This method is not supported in sequential programs");
    \n
    163 }
    \n
    \n
    164
    \n-
    165 private:
    \n-\n-
    169 IndexMap indexMap_;
    \n-
    170 };
    \n-
    \n-
    171
    \n-
    176 template<typename T>
    \n-
    \n-\n-
    178 : RAPropertyMapHelper<typename T::value_type::second_type&,
    \n-
    179 AssociativePropertyMap<T> >
    \n-
    180 {
    \n-
    184 typedef T UniqueAssociativeContainer;
    \n-
    185
    \n-
    189 typedef typename UniqueAssociativeContainer::value_type::first_type
    \n-
    190 KeyType;
    \n-
    191
    \n-
    195 typedef typename UniqueAssociativeContainer::value_type::second_type
    \n-
    196 ValueType;
    \n-
    197
    \n-
    201 typedef ValueType& Reference;
    \n-
    202
    \n-\n-
    207
    \n-\n-
    210 : map_(0)
    \n-
    211 {}
    \n+
    168 template<class T>
    \n+
    \n+
    169 PseudoFuture<T> irecv([[maybe_unused]] T&& data,
    \n+
    170 [[maybe_unused]] int source_rank,
    \n+
    171 [[maybe_unused]] int tag)
    \n+
    172 {
    \n+
    173 DUNE_THROW(ParallelError, "This method is not supported in sequential programs");
    \n+
    174 }
    \n+
    \n+
    175
    \n+
    176 template<class T>
    \n+
    \n+
    177 T rrecv([[maybe_unused]] T&& data,
    \n+
    178 [[maybe_unused]] int source_rank,
    \n+
    179 [[maybe_unused]] int tag,
    \n+
    180 [[maybe_unused]] void* status = 0) const
    \n+
    181 {
    \n+
    182 DUNE_THROW(ParallelError, "This method is not supported in sequential programs");
    \n+
    183 }
    \n+
    \n+
    187 template<typename T>
    \n+
    \n+
    188 T sum (const T& in) const
    \n+
    189 {
    \n+
    190 return in;
    \n+
    191 }
    \n+
    \n+
    192
    \n+
    198 template<typename T>
    \n+
    \n+
    199 int sum ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const
    \n+
    200 {
    \n+
    201 return 0;
    \n+
    202 }
    \n+
    \n+
    203
    \n+
    207 template<typename T>
    \n+
    \n+
    208 T prod (const T& in) const
    \n+
    209 {
    \n+
    210 return in;
    \n+
    211 }
    \n+
    \n
    212
    \n-
    214 inline AssociativePropertyMap(UniqueAssociativeContainer& map)
    \n-
    215 : map_(&map)
    \n-
    216 {}
    \n-
    217
    \n-
    222 inline Reference operator[](KeyType key) const
    \n-
    223 {
    \n-
    224 return map_->find(key)->second;
    \n-
    225 }
    \n-
    226 private:
    \n-
    227 UniqueAssociativeContainer* map_;
    \n-
    228 };
    \n-
    \n-
    229
    \n-
    234 template<typename T>
    \n-
    \n-\n-
    236 : RAPropertyMapHelper<const typename T::value_type::second_type&,
    \n-
    237 ConstAssociativePropertyMap<T> >
    \n-
    238 {
    \n-
    242 typedef T UniqueAssociativeContainer;
    \n+
    218 template<typename T>
    \n+
    \n+
    219 int prod ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const
    \n+
    220 {
    \n+
    221 return 0;
    \n+
    222 }
    \n+
    \n+
    223
    \n+
    227 template<typename T>
    \n+
    \n+
    228 T min (const T& in) const
    \n+
    229 {
    \n+
    230 return in;
    \n+
    231 }
    \n+
    \n+
    232
    \n+
    238 template<typename T>
    \n+
    \n+
    239 int min ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const
    \n+
    240 {
    \n+
    241 return 0;
    \n+
    242 }
    \n+
    \n
    243
    \n-
    247 typedef typename UniqueAssociativeContainer::value_type::first_type
    \n-
    248 KeyType;
    \n-
    249
    \n-
    253 typedef typename UniqueAssociativeContainer::value_type::second_type
    \n-
    254 ValueType;
    \n-
    255
    \n-
    259 typedef const ValueType& Reference;
    \n-
    260
    \n-\n-
    265
    \n-\n-
    268 : map_(0)
    \n-
    269 {}
    \n-
    270
    \n-
    272 inline ConstAssociativePropertyMap(const UniqueAssociativeContainer& map)
    \n-
    273 : map_(&map)
    \n-
    274 {}
    \n-
    275
    \n-
    280 inline Reference operator[](KeyType key) const
    \n-
    281 {
    \n-
    282 return map_->find(key)->second;
    \n-
    283 }
    \n-
    284 private:
    \n-
    285 const UniqueAssociativeContainer* map_;
    \n-
    286 };
    \n-
    \n-
    287
    \n-
    \n-\n-
    292 : public RAPropertyMapHelper<std::size_t, IdentityMap>
    \n-
    293 {
    \n-
    295 typedef std::size_t KeyType;
    \n-
    296
    \n-
    298 typedef std::size_t ValueType;
    \n+
    247 template<typename T>
    \n+
    \n+
    248 T max (const T& in) const
    \n+
    249 {
    \n+
    250 return in;
    \n+
    251 }
    \n+
    \n+
    252
    \n+
    258 template<typename T>
    \n+
    \n+
    259 int max ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const
    \n+
    260 {
    \n+
    261 return 0;
    \n+
    262 }
    \n+
    \n+
    263
    \n+
    \n+
    267 int barrier () const
    \n+
    268 {
    \n+
    269 return 0;
    \n+
    270 }
    \n+
    \n+
    271
    \n+
    \n+\n+
    276 {
    \n+
    277 return {true}; // return a valid future
    \n+
    278 }
    \n+
    \n+
    279
    \n+
    283 template<typename T>
    \n+
    \n+
    284 int broadcast ([[maybe_unused]] T* inout,
    \n+
    285 [[maybe_unused]] int len,
    \n+
    286 [[maybe_unused]] int root) const
    \n+
    287 {
    \n+
    288 return 0;
    \n+
    289 }
    \n+
    \n+
    290
    \n+
    294 template<class T>
    \n+
    \n+
    295 PseudoFuture<T> ibroadcast(T&& data, int root) const{
    \n+
    296 return {std::forward<T>(data)};
    \n+
    297 }
    \n+
    \n+
    298
    \n
    299
    \n-
    301 typedef std::size_t Reference;
    \n-
    302
    \n-\n-
    305
    \n-
    \n-
    306 inline ValueType operator[](const KeyType& key) const
    \n-
    307 {
    \n-
    308 return key;
    \n-
    309 }
    \n-
    \n-
    310 };
    \n-
    \n-
    311
    \n-
    312
    \n-
    318 template<typename T, typename C>
    \n-
    \n-\n-
    320 {
    \n-
    324 typedef T Tag;
    \n-
    329 typedef C Container;
    \n-
    330 };
    \n-
    \n-
    331
    \n-
    332}
    \n-
    333
    \n-
    334#endif
    \n+
    312 template<typename T>
    \n+
    \n+
    313 int gather (const T* in, T* out, int len, [[maybe_unused]] int root) const // note out must have same size as in
    \n+
    314 {
    \n+
    315 for (int i=0; i<len; i++)
    \n+
    316 out[i] = in[i];
    \n+
    317 return 0;
    \n+
    318 }
    \n+
    \n+
    319
    \n+
    323 template<class TIN, class TOUT = std::vector<TIN>>
    \n+
    \n+
    324 PseudoFuture<TOUT> igather(TIN&& data_in, TOUT&& data_out, int root){
    \n+
    325 *(data_out.begin()) = std::forward<TIN>(data_in);
    \n+
    326 return {std::forward<TOUT>(data_out)};
    \n+
    327 }
    \n+
    \n+
    328
    \n+
    329
    \n+
    349 template<typename T>
    \n+
    \n+
    350 int gatherv (const T* in,
    \n+
    351 int sendDataLen,
    \n+
    352 T* out,
    \n+
    353 [[maybe_unused]] int* recvDataLen,
    \n+
    354 int* displ,
    \n+
    355 [[maybe_unused]] int root) const
    \n+
    356 {
    \n+
    357 for (int i=*displ; i<sendDataLen; i++)
    \n+
    358 out[i] = in[i];
    \n+
    359 return 0;
    \n+
    360 }
    \n+
    \n+
    361
    \n+
    375 template<typename T>
    \n+
    \n+
    376 int scatter (const T* sendData, T* recvData, int len, [[maybe_unused]] int root) const // note out must have same size as in
    \n+
    377 {
    \n+
    378 for (int i=0; i<len; i++)
    \n+
    379 recvData[i] = sendData[i];
    \n+
    380 return 0;
    \n+
    381 }
    \n+
    \n+
    382
    \n+
    386 template<class TIN, class TOUT = TIN>
    \n+
    \n+
    387 PseudoFuture<TOUT> iscatter(TIN&& data_in, TOUT&& data_out, int root){
    \n+
    388 data_out = *(std::forward<TIN>(data_in).begin());
    \n+
    389 return {std::forward<TOUT>(data_out)};
    \n+
    390 }
    \n+
    \n+
    391
    \n+
    410 template<typename T>
    \n+
    \n+
    411 int scatterv (const T* sendData,int* sendDataLen, int* displ, T* recvData,
    \n+
    412 [[maybe_unused]] int recvDataLen, [[maybe_unused]] int root) const
    \n+
    413 {
    \n+
    414 for (int i=*displ; i<*sendDataLen; i++)
    \n+
    415 recvData[i] = sendData[i];
    \n+
    416 return 0;
    \n+
    417 }
    \n+
    \n+
    418
    \n+
    432 template<typename T>
    \n+
    \n+
    433 int allgather(const T* sbuf, int count, T* rbuf) const
    \n+
    434 {
    \n+
    435 for(const T* end=sbuf+count; sbuf < end; ++sbuf, ++rbuf)
    \n+
    436 *rbuf=*sbuf;
    \n+
    437 return 0;
    \n+
    438 }
    \n+
    \n+
    439
    \n+
    444 template<class TIN, class TOUT = TIN>
    \n+
    \n+
    445 PseudoFuture<TOUT> iallgather(TIN&& data_in, TOUT&& data_out){
    \n+
    446 return {std::forward<TOUT>(data_out)};
    \n+
    447 }
    \n+
    \n+
    448
    \n+
    465 template<typename T>
    \n+
    \n+
    466 int allgatherv (const T* in, int sendDataLen, T* out, [[maybe_unused]] int* recvDataLen, int* displ) const
    \n+
    467 {
    \n+
    468 for (int i=*displ; i<sendDataLen; i++)
    \n+
    469 out[i] = in[i];
    \n+
    470 return 0;
    \n+
    471 }
    \n+
    \n+
    472
    \n+
    485 template<typename BinaryFunction, typename Type>
    \n+
    \n+
    486 int allreduce([[maybe_unused]] Type* inout, [[maybe_unused]] int len) const
    \n+
    487 {
    \n+
    488 return 0;
    \n+
    489 }
    \n+
    \n+
    490
    \n+
    495 template<class BinaryFunction, class TIN, class TOUT = TIN>
    \n+
    \n+
    496 PseudoFuture<TOUT> iallreduce(TIN&& data_in, TOUT&& data_out){
    \n+
    497 data_out = std::forward<TIN>(data_in);
    \n+
    498 return {std::forward<TOUT>(data_out)};
    \n+
    499 }
    \n+
    \n+
    500
    \n+
    505 template<class BinaryFunction, class T>
    \n+
    \n+\n+
    507 return {std::forward<T>(data)};
    \n+
    508 }
    \n+
    \n+
    509
    \n+
    510
    \n+
    524 template<typename BinaryFunction, typename Type>
    \n+
    \n+
    525 int allreduce(const Type* in, Type* out, int len) const
    \n+
    526 {
    \n+
    527 std::copy(in, in+len, out);
    \n+
    528 return 0;
    \n+
    529 }
    \n+
    \n+
    530
    \n+
    531 };
    \n+
    \n+
    532
    \n+
    538 template<class T>
    \n+\n+
    540 [[deprecated("CollectiveCommunication is deprecated. Use Communication instead.")]]
    \n+\n+
    542}
    \n+
    543
    \n+
    544#endif // DUNE_COMMON_PARALLEL_COMMUNICATION_HH
    \n+\n+
    helper classes to provide unique types for standard functions
    \n+
    A few common exception classes.
    \n+
    #define DUNE_THROW(E, m)
    Definition exceptions.hh:218
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
    Checks for equality.
    Definition iteratorfacades.hh:238
    \n+
    EnableIfInterOperable< T1, T2, bool >::type operator!=(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
    Checks for inequality.
    Definition iteratorfacades.hh:260
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    void put(const RAPropertyMapHelper< Reference, PropertyMap > &pmap, const Key &key, const Value &value)
    Definition propertymap.hh:92
    \n-
    constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
    Return the entry at position pos of the given sequence.
    Definition integersequence.hh:22
    \n-
    Definition propertymap.hh:17
    \n-
    PM::ValueType ValueType
    The type of the values of the property map.
    Definition propertymap.hh:25
    \n-
    PM::Category Category
    The category the property map belongs to.
    Definition propertymap.hh:33
    \n-
    PM::Reference Reference
    The type of the reference to the values.
    Definition propertymap.hh:29
    \n-
    PM::KeyType KeyType
    The type of the key of the property map.
    Definition propertymap.hh:21
    \n-
    Tag for the category of readable property maps.
    Definition propertymap.hh:38
    \n-
    Tag for the category of writable property maps.
    Definition propertymap.hh:42
    \n-
    Tag for the category of readable and writable property maps.
    Definition propertymap.hh:50
    \n-
    Tag for the category of lvalue property maps.
    Definition propertymap.hh:57
    \n-
    ValueType & Reference
    Definition propertymap.hh:63
    \n-
    std::ptrdiff_t KeyType
    Definition propertymap.hh:64
    \n-
    T ValueType
    Definition propertymap.hh:62
    \n-
    LvaluePropertyMapTag Category
    Definition propertymap.hh:65
    \n-
    std::ptrdiff_t KeyType
    Definition propertymap.hh:74
    \n-
    const ValueType & Reference
    Definition propertymap.hh:73
    \n-
    T ValueType
    Definition propertymap.hh:72
    \n-
    LvaluePropertyMapTag Category
    Definition propertymap.hh:75
    \n-
    Definition propertymap.hh:80
    \n-
    Adapter to turn a random access iterator into a property map.
    Definition propertymap.hh:108
    \n-
    IndexMap::KeyType KeyType
    The key type of the property map.
    Definition propertymap.hh:125
    \n-
    R Reference
    The reference type of the property map.
    Definition propertymap.hh:135
    \n-
    T ValueType
    The value type of the property map.
    Definition propertymap.hh:130
    \n-
    Reference operator[](KeyType key) const
    Access the a value by reference.
    Definition propertymap.hh:160
    \n-
    IteratorPropertyMap(RandomAccessIterator iter, const IndexMap &im=IndexMap())
    Constructor.
    Definition propertymap.hh:149
    \n-
    IteratorPropertyMap()
    Constructor.
    Definition propertymap.hh:155
    \n-
    IM IndexMap
    The type of the index map.
    Definition propertymap.hh:120
    \n-
    RAI RandomAccessIterator
    The type of the random access iterator.
    Definition propertymap.hh:113
    \n-
    LvaluePropertyMapTag Category
    The category of this property map.
    Definition propertymap.hh:140
    \n-
    An adapter to turn an unique associative container into a property map.
    Definition propertymap.hh:180
    \n-
    An adaptor to turn an unique associative container into a property map.
    Definition propertymap.hh:238
    \n-
    A property map that applies the identity function to integers.
    Definition propertymap.hh:293
    \n-
    std::size_t ValueType
    The value type of the map.
    Definition propertymap.hh:298
    \n-
    std::size_t KeyType
    The key type of the map.
    Definition propertymap.hh:295
    \n-
    ValueType operator[](const KeyType &key) const
    Definition propertymap.hh:306
    \n-
    std::size_t Reference
    The reference type of the map.
    Definition propertymap.hh:301
    \n-
    ReadablePropertyMapTag Category
    The category of the map.
    Definition propertymap.hh:304
    \n-
    Selector for the property map type.
    Definition propertymap.hh:320
    \n-
    T Tag
    the tag identifying the property.
    Definition propertymap.hh:324
    \n-
    C Container
    The container type to whose entries the properties are attached.
    Definition propertymap.hh:329
    \n+
    Default exception if an error in the parallel communication of the program occurred.
    Definition exceptions.hh:287
    \n+
    Definition communication.hh:46
    \n+
    Collective communication interface and sequential default implementation.
    Definition communication.hh:100
    \n+
    PseudoFuture< TOUT > iallreduce(TIN &&data_in, TOUT &&data_out)
    Compute something over all processes nonblocking.
    Definition communication.hh:496
    \n+
    int send(const T &data, int dest_rank, int tag)
    Sends the data to the dest_rank.
    Definition communication.hh:135
    \n+
    int allreduce(const Type *in, Type *out, int len) const
    Compute something over all processes for each component of an array and return the result in every pr...
    Definition communication.hh:525
    \n+
    T max(const T &in) const
    Compute the maximum of the argument over all processes and return the result in every process....
    Definition communication.hh:248
    \n+
    int rank() const
    Return rank, is between 0 and size()-1.
    Definition communication.hh:114
    \n+
    T sum(const T &in) const
    Compute the sum of the argument over all processes and return the result in every process....
    Definition communication.hh:188
    \n+
    int scatterv(const T *sendData, int *sendDataLen, int *displ, T *recvData, int recvDataLen, int root) const
    Scatter arrays of variable length from a root to all other tasks.
    Definition communication.hh:411
    \n+
    int prod(T *inout, int len) const
    Compute the product over all processes for each component of an array and return the result in every ...
    Definition communication.hh:219
    \n+
    T recv(T &&data, int source_rank, int tag, void *status=0)
    Receives the data from the source_rank.
    Definition communication.hh:157
    \n+
    PseudoFuture< T > isend(const T &&data, int dest_rank, int tag)
    Sends the data to the dest_rank nonblocking.
    Definition communication.hh:146
    \n+
    PseudoFuture< void > ibarrier() const
    Nonblocking barrier.
    Definition communication.hh:275
    \n+
    int allreduce(Type *inout, int len) const
    Compute something over all processes for each component of an array and return the result in every pr...
    Definition communication.hh:486
    \n+
    int size() const
    Number of processes in set, is greater than 0.
    Definition communication.hh:126
    \n+
    int sum(T *inout, int len) const
    Compute the sum over all processes for each component of an array and return the result in every proc...
    Definition communication.hh:199
    \n+
    int allgatherv(const T *in, int sendDataLen, T *out, int *recvDataLen, int *displ) const
    Gathers data of variable length from all tasks and distribute it to all.
    Definition communication.hh:466
    \n+
    T min(const T &in) const
    Compute the minimum of the argument over all processes and return the result in every process....
    Definition communication.hh:228
    \n+
    PseudoFuture< T > irecv(T &&data, int source_rank, int tag)
    Receives the data from the source_rank nonblocking.
    Definition communication.hh:169
    \n+
    int gatherv(const T *in, int sendDataLen, T *out, int *recvDataLen, int *displ, int root) const
    Gather arrays of variable size on root task.
    Definition communication.hh:350
    \n+
    PseudoFuture< T > ibroadcast(T &&data, int root) const
    Distribute an array from the process with rank root to all other processes nonblocking.
    Definition communication.hh:295
    \n+
    int allgather(const T *sbuf, int count, T *rbuf) const
    Gathers data from all tasks and distribute it to all.
    Definition communication.hh:433
    \n+
    int scatter(const T *sendData, T *recvData, int len, int root) const
    Scatter array from a root to all other task.
    Definition communication.hh:376
    \n+
    int gather(const T *in, T *out, int len, int root) const
    Gather arrays on root task.
    Definition communication.hh:313
    \n+
    PseudoFuture< T > iallreduce(T &&data)
    Compute something over all processes nonblocking and in-place.
    Definition communication.hh:506
    \n+
    Communication(const Communicator &)
    Constructor with a given communicator.
    Definition communication.hh:110
    \n+
    int max(T *inout, int len) const
    Compute the maximum over all processes for each component of an array and return the result in every ...
    Definition communication.hh:259
    \n+
    T prod(const T &in) const
    Compute the product of the argument over all processes and return the result in every process....
    Definition communication.hh:208
    \n+
    int broadcast(T *inout, int len, int root) const
    Distribute an array from the process with rank root to all other processes.
    Definition communication.hh:284
    \n+
    T rrecv(T &&data, int source_rank, int tag, void *status=0) const
    Definition communication.hh:177
    \n+
    PseudoFuture< TOUT > iscatter(TIN &&data_in, TOUT &&data_out, int root)
    Scatter array from a root to all other task nonblocking.
    Definition communication.hh:387
    \n+
    int min(T *inout, int len) const
    Compute the minimum over all processes for each component of an array and return the result in every ...
    Definition communication.hh:239
    \n+
    int barrier() const
    Wait until all processes have arrived at this point in the program.
    Definition communication.hh:267
    \n+
    PseudoFuture< TOUT > igather(TIN &&data_in, TOUT &&data_out, int root)
    Gather arrays on root task nonblocking.
    Definition communication.hh:324
    \n+
    PseudoFuture< TOUT > iallgather(TIN &&data_in, TOUT &&data_out)
    Gathers data from all tasks and distribute it to all nonblocking.
    Definition communication.hh:445
    \n+
    Communication()
    Construct default object.
    Definition communication.hh:103
    \n+
    A wrapper-class for a object which is ready immediately.
    Definition future.hh:124
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,368 +1,480 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-propertymap.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+communication.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_PROPERTYMAP_HH\n-6#define DUNE_PROPERTYMAP_HH\n-7\n-8#include \n-9#include \n-10#include \n-11\n-12namespace _\bD_\bu_\bn_\be\n-13{\n-14\n-15 template\n-_\b1_\b6 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs\n-17 {\n-_\b2_\b1 typedef typename PM::KeyType _\bK_\be_\by_\bT_\by_\bp_\be;\n-_\b2_\b5 typedef typename PM::ValueType _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n-_\b2_\b9 typedef typename PM::Reference _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-_\b3_\b3 typedef typename PM::Category _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-34 };\n-35\n-_\b3_\b7 struct _\bR_\be_\ba_\bd_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-38 {};\n-39\n-_\b4_\b1 struct _\bW_\br_\bi_\bt_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-42 {};\n-43\n-_\b4_\b8 struct _\bR_\be_\ba_\bd_\bW_\br_\bi_\bt_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-49 : public _\bR_\be_\ba_\bd_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg, public _\bW_\br_\bi_\bt_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-50 {};\n-51\n-_\b5_\b5 struct _\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-56 : public _\bR_\be_\ba_\bd_\bW_\br_\bi_\bt_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-57 {};\n-58\n-59 template\n-_\b6_\b0 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs\n-61 {\n-_\b6_\b2 typedef T _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n-_\b6_\b3 typedef _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be& _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-_\b6_\b4 typedef std::ptrdiff_t _\bK_\be_\by_\bT_\by_\bp_\be;\n-_\b6_\b5 typedef _\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-66 };\n-67\n-68\n-69 template\n-_\b7_\b0 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs\n-71 {\n-_\b7_\b2 typedef T _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n-_\b7_\b3 typedef const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be& _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-_\b7_\b4 typedef std::ptrdiff_t _\bK_\be_\by_\bT_\by_\bp_\be;\n-_\b7_\b5 typedef _\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-76 };\n-77\n-78 template\n-_\b7_\b9 struct _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br\n-80 {};\n-81\n-82 template\n-83 inline Reference\n-_\b8_\b4 _\bg_\be_\bt(const _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br_\b<_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b,_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b>& pmap,\n-85 const Key& key)\n-86 {\n-87 return static_cast(pmap)[key];\n-88 }\n-89\n-90 template\n-91 inline void\n-_\b9_\b2 _\bp_\bu_\bt(const _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br_\b<_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b,_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b>& pmap,\n-93 const Key& key, const Value& value)\n-94 {\n-95 static_assert(std::is_convertible::value,\n-96 \"WritablePropertyMapTag required!\");\n-97 static_cast(pmap)[key] = value;\n-98 }\n-99\n-103 template::value_type,\n-105 class R = typename std::iterator_traits::reference>\n-_\b1_\b0_\b6 class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-107 : public _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br >\n-108 {\n-109 public:\n-_\b1_\b1_\b3 typedef RAI _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-114\n-_\b1_\b2_\b0 typedef IM _\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp;\n-121\n-_\b1_\b2_\b5 typedef typename IndexMap::KeyType _\bK_\be_\by_\bT_\by_\bp_\be;\n-126\n-_\b1_\b3_\b0 typedef T _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n-131\n-_\b1_\b3_\b5 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-136\n-_\b1_\b4_\b0 typedef _\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n+5#ifndef DUNE_COMMON_PARALLEL_COMMUNICATION_HH\n+6#define DUNE_COMMON_PARALLEL_COMMUNICATION_HH\n+14#include \n+15#include \n+16#include \n+17#include \n+18\n+19#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bb_\bi_\bn_\ba_\br_\by_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+20#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n+21#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh>\n+22\n+42namespace _\bD_\bu_\bn_\be\n+43{\n+44\n+45 /* define some type that definitely differs from MPI_Comm */\n+_\b4_\b6 struct _\bN_\bo_\b__\bC_\bo_\bm_\bm {};\n+47\n+_\b5_\b2 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bN_\bo_\b__\bC_\bo_\bm_\bm&, const _\bN_\bo_\b__\bC_\bo_\bm_\bm&)\n+53 {\n+54 return true;\n+55 }\n+56\n+_\b6_\b1 inline bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bN_\bo_\b__\bC_\bo_\bm_\bm&, const _\bN_\bo_\b__\bC_\bo_\bm_\bm&)\n+62 {\n+63 return false;\n+64 }\n+65\n+98 template\n+_\b9_\b9 class _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+100 {\n+101 public:\n+_\b1_\b0_\b3 _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn()\n+104 {}\n+105\n+_\b1_\b1_\b0 _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (const Communicator&)\n+111 {}\n+112\n+_\b1_\b1_\b4 int _\br_\ba_\bn_\bk () const\n+115 {\n+116 return 0;\n+117 }\n+118\n+_\b1_\b2_\b0 operator _\bN_\bo_\b__\bC_\bo_\bm_\bm() const\n+121 {\n+122 return {};\n+123 }\n+124\n+_\b1_\b2_\b6 int _\bs_\bi_\bz_\be () const\n+127 {\n+128 return 1;\n+129 }\n+130\n+134 template\n+_\b1_\b3_\b5 int _\bs_\be_\bn_\bd([[maybe_unused]] const T& data,\n+136 [[maybe_unused]] int dest_rank,\n+137 [[maybe_unused]] int tag)\n+138 {\n+139 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br, \"This method is not supported in sequential\n+programs\");\n+140 }\n 141\n-_\b1_\b4_\b9 inline _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter,\n-150 const _\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp& im=_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp())\n-151 : iter_(iter), indexMap_(im)\n-152 {}\n-153\n-_\b1_\b5_\b5 inline _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n-156 : iter_(), indexMap_()\n-157 {}\n-158\n-_\b1_\b6_\b0 inline _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bK_\be_\by_\bT_\by_\bp_\be key) const\n+145 template\n+_\b1_\b4_\b6 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\b> _\bi_\bs_\be_\bn_\bd([[maybe_unused]] const T&& data,\n+147 [[maybe_unused]] int dest_rank,\n+148 [[maybe_unused]] int tag)\n+149 {\n+150 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br, \"This method is not supported in sequential\n+programs\");\n+151 }\n+152\n+156 template\n+_\b1_\b5_\b7 T _\br_\be_\bc_\bv([[maybe_unused]] T&& data,\n+158 [[maybe_unused]] int source_rank,\n+159 [[maybe_unused]] int tag,\n+160 [[maybe_unused]] void* status = 0)\n 161 {\n-162 return *(iter_ + _\bg_\be_\bt(indexMap_, key));\n+162 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br, \"This method is not supported in sequential\n+programs\");\n 163 }\n 164\n-165 private:\n-167 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter_;\n-169 _\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp indexMap_;\n-170 };\n-171\n-176 template\n-_\b1_\b7_\b7 class _\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-178 : _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br >\n-180 {\n-184 typedef T UniqueAssociativeContainer;\n-185\n-189 typedef typename UniqueAssociativeContainer::value_type::first_type\n-190 KeyType;\n-191\n-195 typedef typename UniqueAssociativeContainer::value_type::second_type\n-196 ValueType;\n-197\n-201 typedef ValueType& Reference;\n-202\n-206 typedef _\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-207\n-209 inline _\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n-210 : map_(0)\n-211 {}\n+168 template\n+_\b1_\b6_\b9 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\b> _\bi_\br_\be_\bc_\bv([[maybe_unused]] T&& data,\n+170 [[maybe_unused]] int source_rank,\n+171 [[maybe_unused]] int tag)\n+172 {\n+173 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br, \"This method is not supported in sequential\n+programs\");\n+174 }\n+175\n+176 template\n+_\b1_\b7_\b7 T _\br_\br_\be_\bc_\bv([[maybe_unused]] T&& data,\n+178 [[maybe_unused]] int source_rank,\n+179 [[maybe_unused]] int tag,\n+180 [[maybe_unused]] void* status = 0) const\n+181 {\n+182 _\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br, \"This method is not supported in sequential\n+programs\");\n+183 }\n+187 template\n+_\b1_\b8_\b8 T _\bs_\bu_\bm (const T& in) const\n+189 {\n+190 return in;\n+191 }\n+192\n+198 template\n+_\b1_\b9_\b9 int _\bs_\bu_\bm ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const\n+200 {\n+201 return 0;\n+202 }\n+203\n+207 template\n+_\b2_\b0_\b8 T _\bp_\br_\bo_\bd (const T& in) const\n+209 {\n+210 return in;\n+211 }\n 212\n-214 inline _\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(UniqueAssociativeContainer& map)\n-215 : map_(&map)\n-216 {}\n-217\n-222 inline Reference operator[](KeyType key) const\n-223 {\n-224 return map_->find(key)->second;\n-225 }\n-226 private:\n-227 UniqueAssociativeContainer* map_;\n-228 };\n-229\n-234 template\n-_\b2_\b3_\b5 class _\bC_\bo_\bn_\bs_\bt_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-236 : _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br >\n-238 {\n-242 typedef T UniqueAssociativeContainer;\n+218 template\n+_\b2_\b1_\b9 int _\bp_\br_\bo_\bd ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const\n+220 {\n+221 return 0;\n+222 }\n+223\n+227 template\n+_\b2_\b2_\b8 T _\bm_\bi_\bn (const T& in) const\n+229 {\n+230 return in;\n+231 }\n+232\n+238 template\n+_\b2_\b3_\b9 int _\bm_\bi_\bn ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const\n+240 {\n+241 return 0;\n+242 }\n 243\n-247 typedef typename UniqueAssociativeContainer::value_type::first_type\n-248 KeyType;\n-249\n-253 typedef typename UniqueAssociativeContainer::value_type::second_type\n-254 ValueType;\n-255\n-259 typedef const ValueType& Reference;\n-260\n-264 typedef _\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-265\n-267 inline _\bC_\bo_\bn_\bs_\bt_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n-268 : map_(0)\n-269 {}\n-270\n-272 inline _\bC_\bo_\bn_\bs_\bt_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(const UniqueAssociativeContainer& map)\n-273 : map_(&map)\n-274 {}\n-275\n-280 inline Reference operator[](KeyType key) const\n-281 {\n-282 return map_->find(key)->second;\n-283 }\n-284 private:\n-285 const UniqueAssociativeContainer* map_;\n-286 };\n-287\n-_\b2_\b9_\b1 struct _\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp\n-292 : public _\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br\n-293 {\n-_\b2_\b9_\b5 typedef std::size_t _\bK_\be_\by_\bT_\by_\bp_\be;\n-296\n-_\b2_\b9_\b8 typedef std::size_t _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n+247 template\n+_\b2_\b4_\b8 T _\bm_\ba_\bx (const T& in) const\n+249 {\n+250 return in;\n+251 }\n+252\n+258 template\n+_\b2_\b5_\b9 int _\bm_\ba_\bx ([[maybe_unused]] T* inout, [[maybe_unused]] int len) const\n+260 {\n+261 return 0;\n+262 }\n+263\n+_\b2_\b6_\b7 int _\bb_\ba_\br_\br_\bi_\be_\br () const\n+268 {\n+269 return 0;\n+270 }\n+271\n+_\b2_\b7_\b5 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bv_\bo_\bi_\bd_\b> _\bi_\bb_\ba_\br_\br_\bi_\be_\br () const\n+276 {\n+277 return {true}; // return a valid future\n+278 }\n+279\n+283 template\n+_\b2_\b8_\b4 int _\bb_\br_\bo_\ba_\bd_\bc_\ba_\bs_\bt ([[maybe_unused]] T* inout,\n+285 [[maybe_unused]] int len,\n+286 [[maybe_unused]] int root) const\n+287 {\n+288 return 0;\n+289 }\n+290\n+294 template\n+_\b2_\b9_\b5 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\b> _\bi_\bb_\br_\bo_\ba_\bd_\bc_\ba_\bs_\bt(T&& data, int root) const{\n+296 return {std::forward(data)};\n+297 }\n+298\n 299\n-_\b3_\b0_\b1 typedef std::size_t _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-302\n-_\b3_\b0_\b4 typedef _\bR_\be_\ba_\bd_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-305\n-_\b3_\b0_\b6 inline _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bK_\be_\by_\bT_\by_\bp_\be& key) const\n-307 {\n-308 return key;\n-309 }\n-310 };\n-311\n-312\n-318 template\n-_\b3_\b1_\b9 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-320 {\n-_\b3_\b2_\b4 typedef T _\bT_\ba_\bg;\n-_\b3_\b2_\b9 typedef C _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-330 };\n-331\n-332}\n-333\n-334#endif\n+312 template\n+_\b3_\b1_\b3 int _\bg_\ba_\bt_\bh_\be_\br (const T* in, T* out, int len, [[maybe_unused]] int root) const\n+// note out must have same size as in\n+314 {\n+315 for (int i=0; i>\n+_\b3_\b2_\b4 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\bO_\bU_\bT_\b> _\bi_\bg_\ba_\bt_\bh_\be_\br(TIN&& data_in, TOUT&& data_out, int root){\n+325 *(data_out.begin()) = std::forward(data_in);\n+326 return {std::forward(data_out)};\n+327 }\n+328\n+329\n+349 template\n+_\b3_\b5_\b0 int _\bg_\ba_\bt_\bh_\be_\br_\bv (const T* in,\n+351 int sendDataLen,\n+352 T* out,\n+353 [[maybe_unused]] int* recvDataLen,\n+354 int* displ,\n+355 [[maybe_unused]] int root) const\n+356 {\n+357 for (int i=*displ; i\n+_\b3_\b7_\b6 int _\bs_\bc_\ba_\bt_\bt_\be_\br (const T* sendData, T* recvData, int len, [[maybe_unused]] int\n+root) const // note out must have same size as in\n+377 {\n+378 for (int i=0; i\n+_\b3_\b8_\b7 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\bO_\bU_\bT_\b> _\bi_\bs_\bc_\ba_\bt_\bt_\be_\br(TIN&& data_in, TOUT&& data_out, int root){\n+388 data_out = *(std::forward(data_in).begin());\n+389 return {std::forward(data_out)};\n+390 }\n+391\n+410 template\n+_\b4_\b1_\b1 int _\bs_\bc_\ba_\bt_\bt_\be_\br_\bv (const T* sendData,int* sendDataLen, int* displ, T* recvData,\n+412 [[maybe_unused]] int recvDataLen, [[maybe_unused]] int root) const\n+413 {\n+414 for (int i=*displ; i<*sendDataLen; i++)\n+415 recvData[i] = sendData[i];\n+416 return 0;\n+417 }\n+418\n+432 template\n+_\b4_\b3_\b3 int _\ba_\bl_\bl_\bg_\ba_\bt_\bh_\be_\br(const T* sbuf, int count, T* rbuf) const\n+434 {\n+435 for(const T* end=sbuf+count; sbuf < end; ++sbuf, ++rbuf)\n+436 *rbuf=*sbuf;\n+437 return 0;\n+438 }\n+439\n+444 template\n+_\b4_\b4_\b5 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\bO_\bU_\bT_\b> _\bi_\ba_\bl_\bl_\bg_\ba_\bt_\bh_\be_\br(TIN&& data_in, TOUT&& data_out){\n+446 return {std::forward(data_out)};\n+447 }\n+448\n+465 template\n+_\b4_\b6_\b6 int _\ba_\bl_\bl_\bg_\ba_\bt_\bh_\be_\br_\bv (const T* in, int sendDataLen, T* out, [[maybe_unused]] int*\n+recvDataLen, int* displ) const\n+467 {\n+468 for (int i=*displ; i\n+_\b4_\b8_\b6 int _\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be([[maybe_unused]] Type* inout, [[maybe_unused]] int len) const\n+487 {\n+488 return 0;\n+489 }\n+490\n+495 template\n+_\b4_\b9_\b6 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\bO_\bU_\bT_\b> _\bi_\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be(TIN&& data_in, TOUT&& data_out){\n+497 data_out = std::forward(data_in);\n+498 return {std::forward(data_out)};\n+499 }\n+500\n+505 template\n+_\b5_\b0_\b6 _\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be_\b<_\bT_\b> _\bi_\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be(T&& data){\n+507 return {std::forward(data)};\n+508 }\n+509\n+510\n+524 template\n+_\b5_\b2_\b5 int _\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be(const Type* in, Type* out, int len) const\n+526 {\n+527 std::copy(in, in+len, out);\n+528 return 0;\n+529 }\n+530\n+531 };\n+532\n+538 template\n+_\b5_\b3_\b9 using _\bC_\bo_\bl_\bl_\be_\bc_\bt_\bi_\bv_\be_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+540 [[deprecated(\"CollectiveCommunication is deprecated. Use Communication\n+instead.\")]]\n+541 = _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b>;\n+542}\n+543\n+544#endif // DUNE_COMMON_PARALLEL_COMMUNICATION_HH\n+_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh\n+_\bb_\bi_\bn_\ba_\br_\by_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+helper classes to provide unique types for standard functions\n+_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+A few common exception classes.\n+_\bD_\bU_\bN_\bE_\b__\bT_\bH_\bR_\bO_\bW\n+#define DUNE_THROW(E, m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator==(const\n+ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2,\n+V2, R2, D > &rhs)\n+Checks for equality.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+EnableIfInterOperable< T1, T2, bool >::type operator!=(const\n+ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2,\n+V2, R2, D > &rhs)\n+Checks for inequality.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn iteratorfacades.hh:260\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\bu_\bt\n-void put(const RAPropertyMapHelper< Reference, PropertyMap > &pmap, const Key\n-&key, const Value &value)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:92\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant<\n-std::size_t, pos >={})\n-Return the entry at position pos of the given sequence.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn integersequence.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:17\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-PM::ValueType ValueType\n-The type of the values of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-PM::Category Category\n-The category the property map belongs to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-PM::Reference Reference\n-The type of the reference to the values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:29\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bK_\be_\by_\bT_\by_\bp_\be\n-PM::KeyType KeyType\n-The type of the key of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:21\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\ba_\bd_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-Tag for the category of readable property maps.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bW_\br_\bi_\bt_\ba_\bb_\bl_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-Tag for the category of writable property maps.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\ba_\bd_\bW_\br_\bi_\bt_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-Tag for the category of readable and writable property maps.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bv_\ba_\bl_\bu_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\ba_\bg\n-Tag for the category of lvalue property maps.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-ValueType & Reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bK_\be_\by_\bT_\by_\bp_\be\n-std::ptrdiff_t KeyType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-T ValueType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:62\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-LvaluePropertyMapTag Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bK_\be_\by_\bT_\by_\bp_\be\n-std::ptrdiff_t KeyType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const ValueType & Reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-T ValueType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bc_\bo_\bn_\bs_\bt_\b _\bT_\b _\b*_\b _\b>_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-LvaluePropertyMapTag Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bA_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-Adapter to turn a random access iterator into a property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bK_\be_\by_\bT_\by_\bp_\be\n-IndexMap::KeyType KeyType\n-The key type of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-R Reference\n-The reference type of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:135\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-T ValueType\n-The value type of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:130\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-Reference operator[](KeyType key) const\n-Access the a value by reference.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:160\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-IteratorPropertyMap(RandomAccessIterator iter, const IndexMap &im=IndexMap())\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-IteratorPropertyMap()\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-IM IndexMap\n-The type of the index map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RAI RandomAccessIterator\n-The type of the random access iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:113\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-LvaluePropertyMapTag Category\n-The category of this property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-An adapter to turn an unique associative container into a property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bA_\bs_\bs_\bo_\bc_\bi_\ba_\bt_\bi_\bv_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-An adaptor to turn an unique associative container into a property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp\n-A property map that applies the identity function to integers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-std::size_t ValueType\n-The value type of the map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:298\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bK_\be_\by_\bT_\by_\bp_\be\n-std::size_t KeyType\n-The key type of the map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:295\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-ValueType operator[](const KeyType &key) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:306\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-std::size_t Reference\n-The reference type of the map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-ReadablePropertyMapTag Category\n-The category of the map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:304\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-Selector for the property map type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:320\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bT_\ba_\bg\n-T Tag\n-the tag identifying the property.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:324\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-C Container\n-The container type to whose entries the properties are attached.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn propertymap.hh:329\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bE_\br_\br_\bo_\br\n+Default exception if an error in the parallel communication of the program\n+occurred.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn exceptions.hh:287\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\b__\bC_\bo_\bm_\bm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Collective communication interface and sequential default implementation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be\n+PseudoFuture< TOUT > iallreduce(TIN &&data_in, TOUT &&data_out)\n+Compute something over all processes nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:496\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bn_\bd\n+int send(const T &data, int dest_rank, int tag)\n+Sends the data to the dest_rank.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:135\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be\n+int allreduce(const Type *in, Type *out, int len) const\n+Compute something over all processes for each component of an array and return\n+the result in every pr...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:525\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bm_\ba_\bx\n+T max(const T &in) const\n+Compute the maximum of the argument over all processes and return the result in\n+every process....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\ba_\bn_\bk\n+int rank() const\n+Return rank, is between 0 and size()-1.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bu_\bm\n+T sum(const T &in) const\n+Compute the sum of the argument over all processes and return the result in\n+every process....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br_\bv\n+int scatterv(const T *sendData, int *sendDataLen, int *displ, T *recvData, int\n+recvDataLen, int root) const\n+Scatter arrays of variable length from a root to all other tasks.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:411\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bd\n+int prod(T *inout, int len) const\n+Compute the product over all processes for each component of an array and\n+return the result in every ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bc_\bv\n+T recv(T &&data, int source_rank, int tag, void *status=0)\n+Receives the data from the source_rank.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:157\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bs_\be_\bn_\bd\n+PseudoFuture< T > isend(const T &&data, int dest_rank, int tag)\n+Sends the data to the dest_rank nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bb_\ba_\br_\br_\bi_\be_\br\n+PseudoFuture< void > ibarrier() const\n+Nonblocking barrier.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:275\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be\n+int allreduce(Type *inout, int len) const\n+Compute something over all processes for each component of an array and return\n+the result in every pr...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:486\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bi_\bz_\be\n+int size() const\n+Number of processes in set, is greater than 0.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bu_\bm\n+int sum(T *inout, int len) const\n+Compute the sum over all processes for each component of an array and return\n+the result in every proc...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:199\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bl_\bl_\bg_\ba_\bt_\bh_\be_\br_\bv\n+int allgatherv(const T *in, int sendDataLen, T *out, int *recvDataLen, int\n+*displ) const\n+Gathers data of variable length from all tasks and distribute it to all.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bm_\bi_\bn\n+T min(const T &in) const\n+Compute the minimum of the argument over all processes and return the result in\n+every process....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:228\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\br_\be_\bc_\bv\n+PseudoFuture< T > irecv(T &&data, int source_rank, int tag)\n+Receives the data from the source_rank nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:169\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br_\bv\n+int gatherv(const T *in, int sendDataLen, T *out, int *recvDataLen, int *displ,\n+int root) const\n+Gather arrays of variable size on root task.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:350\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bb_\br_\bo_\ba_\bd_\bc_\ba_\bs_\bt\n+PseudoFuture< T > ibroadcast(T &&data, int root) const\n+Distribute an array from the process with rank root to all other processes\n+nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:295\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bl_\bl_\bg_\ba_\bt_\bh_\be_\br\n+int allgather(const T *sbuf, int count, T *rbuf) const\n+Gathers data from all tasks and distribute it to all.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:433\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+int scatter(const T *sendData, T *recvData, int len, int root) const\n+Scatter array from a root to all other task.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:376\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+int gather(const T *in, T *out, int len, int root) const\n+Gather arrays on root task.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:313\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\ba_\bl_\bl_\br_\be_\bd_\bu_\bc_\be\n+PseudoFuture< T > iallreduce(T &&data)\n+Compute something over all processes nonblocking and in-place.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Communication(const Communicator &)\n+Constructor with a given communicator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:110\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bm_\ba_\bx\n+int max(T *inout, int len) const\n+Compute the maximum over all processes for each component of an array and\n+return the result in every ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:259\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bd\n+T prod(const T &in) const\n+Compute the product of the argument over all processes and return the result in\n+every process....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:208\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\br_\bo_\ba_\bd_\bc_\ba_\bs_\bt\n+int broadcast(T *inout, int len, int root) const\n+Distribute an array from the process with rank root to all other processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\br_\be_\bc_\bv\n+T rrecv(T &&data, int source_rank, int tag, void *status=0) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:177\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bs_\bc_\ba_\bt_\bt_\be_\br\n+PseudoFuture< TOUT > iscatter(TIN &&data_in, TOUT &&data_out, int root)\n+Scatter array from a root to all other task nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:387\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bm_\bi_\bn\n+int min(T *inout, int len) const\n+Compute the minimum over all processes for each component of an array and\n+return the result in every ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:239\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\ba_\br_\br_\bi_\be_\br\n+int barrier() const\n+Wait until all processes have arrived at this point in the program.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:267\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bg_\ba_\bt_\bh_\be_\br\n+PseudoFuture< TOUT > igather(TIN &&data_in, TOUT &&data_out, int root)\n+Gather arrays on root task nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:324\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\ba_\bl_\bl_\bg_\ba_\bt_\bh_\be_\br\n+PseudoFuture< TOUT > iallgather(TIN &&data_in, TOUT &&data_out)\n+Gathers data from all tasks and distribute it to all nonblocking.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:445\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Communication()\n+Construct default object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn communication.hh:103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bs_\be_\bu_\bd_\bo_\bF_\bu_\bt_\bu_\br_\be\n+A wrapper-class for a object which is ready immediately.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn future.hh:124\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00077.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00077.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: indent.hh File Reference\n+dune-common: mpitraits.hh File Reference\n \n \n \n \n \n \n \n@@ -65,54 +65,51 @@\n
    \n \n \n \n \n \n \n
    \n \n-
    indent.hh File Reference
    \n+Namespaces
    \n+
    mpitraits.hh File Reference
    \n \n
    \n \n-

    Utility class for handling nested indentation in output. \n+

    Traits classes for mapping types onto MPI_Datatype. \n More...

    \n-
    #include <ostream>
    \n-#include <string>
    \n+
    #include <complex>
    \n+#include <cstddef>
    \n+#include <cstdint>
    \n+#include <type_traits>
    \n+#include <utility>
    \n+#include <mpi.h>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::Indent
     Utility class for handling nested indentation in output. More...
    struct  Dune::MPITraits< T >
     A traits class describing the mapping of types onto MPI_Datatypes. More...
     
    \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n-\n-\n-\n-\n

    \n-Functions

    std::ostream & Dune::operator<< (std::ostream &s, const Indent &indent)
     write indentation to a stream
     
    \n

    Detailed Description

    \n-

    Utility class for handling nested indentation in output.

    \n-
    Author
    J\u00f6 Fahlke
    \n+

    Traits classes for mapping types onto MPI_Datatype.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,31 +1,33 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-indent.hh File Reference\n-_\bC_\bo_\bm_\bm_\bo_\bn\n-Utility class for handling nested indentation in output. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+mpitraits.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Traits classes for mapping types onto MPI_Datatype. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt\n-\u00a0 Utility class for handling nested indentation in output. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0 A traits class describing the mapping of types onto MPI_Datatypes.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bI_\bn_\bd_\be_\bn_\bt &indent)\n-\u00a0 write indentation to a stream\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Utility class for handling nested indentation in output.\n+Traits classes for mapping types onto MPI_Datatype.\n Author\n- J\u00c3\u00b6 Fahlke\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00077_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00077_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: indent.hh Source File\n+dune-common: mpitraits.hh Source File\n \n \n \n \n \n \n \n@@ -70,111 +70,218 @@\n
    \n
    \n \n \n \n \n \n
    \n-
    indent.hh
    \n+
    mpitraits.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_INDENT_HH
    \n-
    6#define DUNE_COMMON_INDENT_HH
    \n+
    5#ifndef DUNE_COMMON_PARALLEL_MPITRAITS_HH
    \n+
    6#define DUNE_COMMON_PARALLEL_MPITRAITS_HH
    \n
    7
    \n-
    8#include <ostream>
    \n-
    9#include <string>
    \n-
    10
    \n-
    11namespace Dune {
    \n-
    22
    \n-
    \n-
    52 class Indent
    \n-
    53 {
    \n-
    54 const Indent* parent;
    \n-
    55 std::string basic_indent;
    \n-
    56 unsigned level;
    \n-
    57
    \n-
    58 public:
    \n-
    60
    \n-
    \n-
    63 inline Indent(const std::string& basic_indent_ = " ", unsigned level_ = 0)
    \n-
    64 : parent(0), basic_indent(basic_indent_), level(level_)
    \n-
    65 { }
    \n-
    \n-
    66
    \n-
    \n-
    68 inline Indent(unsigned level_)
    \n-
    69 : parent(0), basic_indent(" "), level(level_)
    \n-
    70 { }
    \n-
    \n-
    71
    \n-
    73
    \n-
    \n-
    76 inline Indent(const Indent* parent_,
    \n-
    77 const std::string& basic_indent_ = " ", unsigned level_ = 1)
    \n-
    78 : parent(parent_), basic_indent(basic_indent_), level(level_)
    \n-
    79 { }
    \n-
    \n-
    80
    \n-
    \n-
    82 inline Indent(const Indent* parent_, unsigned level_)
    \n-
    83 : parent(parent_), basic_indent(" "), level(level_)
    \n-
    84 { }
    \n-
    \n-
    85
    \n-
    \n-
    87 inline Indent operator+(const std::string& newindent) const {
    \n-
    88 return Indent(this, newindent);
    \n-
    89 }
    \n-
    \n-
    \n-
    91 inline Indent operator+(unsigned morelevel) const {
    \n-
    92 return Indent(parent, basic_indent, level+morelevel);
    \n-
    93 }
    \n+
    18#if HAVE_MPI
    \n+
    19
    \n+
    20#include <complex>
    \n+
    21#include <cstddef>
    \n+
    22#include <cstdint>
    \n+
    23#include <type_traits>
    \n+
    24#include <utility>
    \n+
    25
    \n+
    26#include <mpi.h>
    \n+
    27
    \n+
    28namespace Dune
    \n+
    29{
    \n+
    39 template<typename T>
    \n+
    \n+
    40 struct MPITraits
    \n+
    41 {
    \n+
    42 private:
    \n+
    43 MPITraits(){}
    \n+
    44 MPITraits(const MPITraits&){}
    \n+
    45 static MPI_Datatype datatype;
    \n+
    46 static MPI_Datatype vectortype;
    \n+
    47 public:
    \n+
    \n+
    48 static inline MPI_Datatype getType()
    \n+
    49 {
    \n+
    50 if(datatype==MPI_DATATYPE_NULL) {
    \n+
    51 MPI_Type_contiguous(sizeof(T),MPI_BYTE,&datatype);
    \n+
    52 MPI_Type_commit(&datatype);
    \n+
    53 }
    \n+
    54 return datatype;
    \n+
    55 }
    \n+
    \n+
    56 static constexpr bool is_intrinsic = false;
    \n+
    57 };
    \n
    \n-
    95 inline Indent& operator++() { ++level; return *this; }
    \n-
    97 inline Indent& operator--() { if ( level > 0 ) --level; return *this; }
    \n+
    58 template<class T>
    \n+
    59 MPI_Datatype MPITraits<T>::datatype = MPI_DATATYPE_NULL;
    \n+
    60
    \n+
    61#ifndef DOXYGEN
    \n+
    62
    \n+
    63 // A Macro for defining traits for the primitive data types
    \n+
    64#define ComposeMPITraits(p,m) \\
    \n+
    65 template<> \\
    \n+
    66 struct MPITraits<p>{ \\
    \n+
    67 static inline MPI_Datatype getType(){ \\
    \n+
    68 return m; \\
    \n+
    69 } \\
    \n+
    70 static constexpr bool is_intrinsic = true; \\
    \n+
    71 }
    \n+
    72
    \n+
    73 ComposeMPITraits(char, MPI_CHAR);
    \n+
    74 ComposeMPITraits(unsigned char,MPI_UNSIGNED_CHAR);
    \n+
    75 ComposeMPITraits(short,MPI_SHORT);
    \n+
    76 ComposeMPITraits(unsigned short,MPI_UNSIGNED_SHORT);
    \n+
    77 ComposeMPITraits(int,MPI_INT);
    \n+
    78 ComposeMPITraits(unsigned int,MPI_UNSIGNED);
    \n+
    79 ComposeMPITraits(long,MPI_LONG);
    \n+
    80 ComposeMPITraits(unsigned long,MPI_UNSIGNED_LONG);
    \n+
    81 ComposeMPITraits(float,MPI_FLOAT);
    \n+
    82 ComposeMPITraits(double,MPI_DOUBLE);
    \n+
    83 ComposeMPITraits(long double,MPI_LONG_DOUBLE);
    \n+
    84 ComposeMPITraits(std::complex<double>, MPI_CXX_DOUBLE_COMPLEX);
    \n+
    85 ComposeMPITraits(std::complex<long double>, MPI_CXX_LONG_DOUBLE_COMPLEX);
    \n+
    86 ComposeMPITraits(std::complex<float>, MPI_CXX_FLOAT_COMPLEX);
    \n+
    87
    \n+
    88
    \n+
    89#undef ComposeMPITraits
    \n+
    90
    \n+
    91 template<class K, int n> class FieldVector;
    \n+
    92
    \n+
    93 template<class K, int n>
    \n+
    94 struct MPITraits<FieldVector<K,n> >
    \n+
    95 {
    \n+
    96 static MPI_Datatype datatype;
    \n+
    97 static MPI_Datatype vectortype;
    \n
    98
    \n-
    100 friend inline std::ostream& operator<<(std::ostream& s,
    \n-
    101 const Indent& indent);
    \n-
    102 };
    \n-
    \n-
    103
    \n-
    \n-
    105 inline std::ostream& operator<<(std::ostream& s, const Indent& indent) {
    \n-
    106 if(indent.parent)
    \n-
    107 s << *indent.parent;
    \n-
    108 for(unsigned i = 0; i < indent.level; ++i)
    \n-
    109 s << indent.basic_indent;
    \n-
    110 return s;
    \n-
    111 }
    \n-
    \n-
    112
    \n-
    115} // namespace Dune
    \n-
    116
    \n-
    117#endif // DUNE_COMMON_INDENT_HH
    \n-
    Indent operator+(const std::string &newindent) const
    create new indentation object with this one as parent
    Definition indent.hh:87
    \n-
    Indent(unsigned level_)
    setup without parent and basic_indentation of two spaces
    Definition indent.hh:68
    \n-
    Indent operator+(unsigned morelevel) const
    create a copy of this indentation object with raised level
    Definition indent.hh:91
    \n-
    Indent(const Indent *parent_, unsigned level_)
    setup with parent
    Definition indent.hh:82
    \n-
    Indent & operator++()
    raise indentation level
    Definition indent.hh:95
    \n-
    Indent(const std::string &basic_indent_=" ", unsigned level_=0)
    setup without parent
    Definition indent.hh:63
    \n-
    Indent & operator--()
    lower indentation level
    Definition indent.hh:97
    \n-
    friend std::ostream & operator<<(std::ostream &s, const Indent &indent)
    write indentation to a stream
    Definition indent.hh:105
    \n-
    Indent(const Indent *parent_, const std::string &basic_indent_=" ", unsigned level_=1)
    setup with parent
    Definition indent.hh:76
    \n-
    std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
    Definition bigunsignedint.hh:278
    \n+
    99 static inline MPI_Datatype getType()
    \n+
    100 {
    \n+
    101 if(datatype==MPI_DATATYPE_NULL) {
    \n+
    102 MPI_Type_contiguous(n, MPITraits<K>::getType(), &vectortype);
    \n+
    103 MPI_Type_commit(&vectortype);
    \n+
    104 FieldVector<K,n> fvector;
    \n+
    105 MPI_Aint base;
    \n+
    106 MPI_Aint displ;
    \n+
    107 MPI_Get_address(&fvector, &base);
    \n+
    108 MPI_Get_address(&(fvector[0]), &displ);
    \n+
    109 displ -= base;
    \n+
    110 int length[1]={1};
    \n+
    111
    \n+
    112 MPI_Type_create_struct(1, length, &displ, &vectortype, &datatype);
    \n+
    113 MPI_Type_commit(&datatype);
    \n+
    114 }
    \n+
    115 return datatype;
    \n+
    116 }
    \n+
    117
    \n+
    118 };
    \n+
    119
    \n+
    120 template<class K, int n>
    \n+
    121 MPI_Datatype MPITraits<FieldVector<K,n> >::datatype = MPI_DATATYPE_NULL;
    \n+
    122 template<class K, int n>
    \n+
    123 MPI_Datatype MPITraits<FieldVector<K,n> >::vectortype = {MPI_DATATYPE_NULL};
    \n+
    124
    \n+
    125
    \n+
    126 template<int k>
    \n+
    127 class bigunsignedint;
    \n+
    128
    \n+
    129 template<int k>
    \n+
    130 struct MPITraits<bigunsignedint<k> >
    \n+
    131 {
    \n+
    132 static MPI_Datatype datatype;
    \n+
    133 static MPI_Datatype vectortype;
    \n+
    134
    \n+
    135 static inline MPI_Datatype getType()
    \n+
    136 {
    \n+
    137 if(datatype==MPI_DATATYPE_NULL) {
    \n+\n+
    139 &vectortype);
    \n+
    140 //MPI_Type_commit(&vectortype);
    \n+
    141 bigunsignedint<k> data;
    \n+
    142 MPI_Aint base;
    \n+
    143 MPI_Aint displ;
    \n+
    144 MPI_Get_address(&data, &base);
    \n+
    145 MPI_Get_address(&(data.digit), &displ);
    \n+
    146 displ -= base;
    \n+
    147 int length[1]={1};
    \n+
    148 MPI_Type_create_struct(1, length, &displ, &vectortype, &datatype);
    \n+
    149 MPI_Type_commit(&datatype);
    \n+
    150 }
    \n+
    151 return datatype;
    \n+
    152 }
    \n+
    153 };
    \n+
    154}
    \n+
    155
    \n+
    156namespace Dune
    \n+
    157{
    \n+
    158 template<int k>
    \n+
    159 MPI_Datatype MPITraits<bigunsignedint<k> >::datatype = MPI_DATATYPE_NULL;
    \n+
    160 template<int k>
    \n+
    161 MPI_Datatype MPITraits<bigunsignedint<k> >::vectortype = MPI_DATATYPE_NULL;
    \n+
    162
    \n+
    163 template<typename T1, typename T2>
    \n+
    164 struct MPITraits<std::pair<T1,T2 > >
    \n+
    165 {
    \n+
    166 public:
    \n+
    167 inline static MPI_Datatype getType();
    \n+
    168 private:
    \n+
    169 static MPI_Datatype type;
    \n+
    170 };
    \n+
    171 template<typename T1, typename T2>
    \n+
    172 MPI_Datatype MPITraits<std::pair<T1,T2> >::getType()
    \n+
    173 {
    \n+
    174 if(type==MPI_DATATYPE_NULL) {
    \n+
    175 int length[2] = {1, 1};
    \n+
    176 MPI_Aint disp[2];
    \n+
    177 MPI_Datatype types[2] = {MPITraits<T1>::getType(),
    \n+\n+
    179
    \n+
    180 using Pair = std::pair<T1, T2>;
    \n+
    181 static_assert(std::is_standard_layout<Pair>::value, "offsetof() is only defined for standard layout types");
    \n+
    182 disp[0] = offsetof(Pair, first);
    \n+
    183 disp[1] = offsetof(Pair, second);
    \n+
    184
    \n+
    185 MPI_Datatype tmp;
    \n+
    186 MPI_Type_create_struct(2, length, disp, types, &tmp);
    \n+
    187
    \n+
    188 MPI_Type_create_resized(tmp, 0, sizeof(Pair), &type);
    \n+
    189 MPI_Type_commit(&type);
    \n+
    190
    \n+
    191 MPI_Type_free(&tmp);
    \n+
    192 }
    \n+
    193 return type;
    \n+
    194 }
    \n+
    195
    \n+
    196 template<typename T1, typename T2>
    \n+
    197 MPI_Datatype MPITraits<std::pair<T1,T2> >::type=MPI_DATATYPE_NULL;
    \n+
    198
    \n+
    199#endif // !DOXYGEN
    \n+
    200
    \n+
    201} // namespace Dune
    \n+
    202
    \n+
    203#endif // HAVE_MPI
    \n+
    204
    \n+
    207#endif // DUNE_COMMON_PARALLEL_MPITRAITS_HH
    \n+
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    Utility class for handling nested indentation in output.
    Definition indent.hh:53
    \n+
    A traits class describing the mapping of types onto MPI_Datatypes.
    Definition mpitraits.hh:41
    \n+
    static MPI_Datatype getType()
    Definition mpitraits.hh:48
    \n+
    static constexpr bool is_intrinsic
    Definition mpitraits.hh:56
    \n+
    static constexpr int n
    Definition bigunsignedint.hh:78
    \n+
    vector space out of a tensor product of fields.
    Definition fvector.hh:91
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,119 +1,221 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-indent.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpitraits.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_INDENT_HH\n-6#define DUNE_COMMON_INDENT_HH\n+5#ifndef DUNE_COMMON_PARALLEL_MPITRAITS_HH\n+6#define DUNE_COMMON_PARALLEL_MPITRAITS_HH\n 7\n-8#include \n-9#include \n-10\n-11namespace _\bD_\bu_\bn_\be {\n-22\n-_\b5_\b2 class _\bI_\bn_\bd_\be_\bn_\bt\n-53 {\n-54 const _\bI_\bn_\bd_\be_\bn_\bt* parent;\n-55 std::string basic_indent;\n-56 unsigned level;\n-57\n-58 public:\n+18#if HAVE_MPI\n+19\n+20#include \n+21#include \n+22#include \n+23#include \n+24#include \n+25\n+26#include \n+27\n+28namespace _\bD_\bu_\bn_\be\n+29{\n+39 template\n+_\b4_\b0 struct _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs\n+41 {\n+42 private:\n+43 _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs(){}\n+44 _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs(const _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs&){}\n+45 static MPI_Datatype datatype;\n+46 static MPI_Datatype vectortype;\n+47 public:\n+_\b4_\b8 static inline MPI_Datatype _\bg_\be_\bt_\bT_\by_\bp_\be()\n+49 {\n+50 if(datatype==MPI_DATATYPE_NULL) {\n+51 MPI_Type_contiguous(sizeof(T),MPI_BYTE,&datatype);\n+52 MPI_Type_commit(&datatype);\n+53 }\n+54 return datatype;\n+55 }\n+_\b5_\b6 static constexpr bool _\bi_\bs_\b__\bi_\bn_\bt_\br_\bi_\bn_\bs_\bi_\bc = false;\n+57 };\n+58 template\n+59 MPI_Datatype _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bd_\ba_\bt_\ba_\bt_\by_\bp_\be = MPI_DATATYPE_NULL;\n 60\n-_\b6_\b3 inline _\bI_\bn_\bd_\be_\bn_\bt(const std::string& basic_indent_ = \" \", unsigned level_ = 0)\n-64 : parent(0), basic_indent(basic_indent_), level(level_)\n-65 { }\n-66\n-_\b6_\b8 inline _\bI_\bn_\bd_\be_\bn_\bt(unsigned level_)\n-69 : parent(0), basic_indent(\" \"), level(level_)\n-70 { }\n-71\n-73\n-_\b7_\b6 inline _\bI_\bn_\bd_\be_\bn_\bt(const _\bI_\bn_\bd_\be_\bn_\bt* parent_,\n-77 const std::string& basic_indent_ = \" \", unsigned level_ = 1)\n-78 : parent(parent_), basic_indent(basic_indent_), level(level_)\n-79 { }\n-80\n-_\b8_\b2 inline _\bI_\bn_\bd_\be_\bn_\bt(const _\bI_\bn_\bd_\be_\bn_\bt* parent_, unsigned level_)\n-83 : parent(parent_), basic_indent(\" \"), level(level_)\n-84 { }\n-85\n-_\b8_\b7 inline _\bI_\bn_\bd_\be_\bn_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+(const std::string& newindent) const {\n-88 return _\bI_\bn_\bd_\be_\bn_\bt(this, newindent);\n-89 }\n-_\b9_\b1 inline _\bI_\bn_\bd_\be_\bn_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+(unsigned morelevel) const {\n-92 return _\bI_\bn_\bd_\be_\bn_\bt(parent, basic_indent, level+morelevel);\n-93 }\n-_\b9_\b5 inline _\bI_\bn_\bd_\be_\bn_\bt& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+() { ++level; return *this; }\n-_\b9_\b7 inline _\bI_\bn_\bd_\be_\bn_\bt& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-() { if ( level > 0 ) --level; return *this; }\n+61#ifndef DOXYGEN\n+62\n+63 // A Macro for defining traits for the primitive data types\n+64#define ComposeMPITraits(p,m) \\\n+65 template<> \\\n+66 struct MPITraits

    { \\\n+67 static inline MPI_Datatype getType(){ \\\n+68 return m; \\\n+69 } \\\n+70 static constexpr bool is_intrinsic = true; \\\n+71 }\n+72\n+73 ComposeMPITraits(char, MPI_CHAR);\n+74 ComposeMPITraits(unsigned char,MPI_UNSIGNED_CHAR);\n+75 ComposeMPITraits(short,MPI_SHORT);\n+76 ComposeMPITraits(unsigned short,MPI_UNSIGNED_SHORT);\n+77 ComposeMPITraits(int,MPI_INT);\n+78 ComposeMPITraits(unsigned int,MPI_UNSIGNED);\n+79 ComposeMPITraits(long,MPI_LONG);\n+80 ComposeMPITraits(unsigned long,MPI_UNSIGNED_LONG);\n+81 ComposeMPITraits(float,MPI_FLOAT);\n+82 ComposeMPITraits(double,MPI_DOUBLE);\n+83 ComposeMPITraits(long double,MPI_LONG_DOUBLE);\n+84 ComposeMPITraits(std::complex, MPI_CXX_DOUBLE_COMPLEX);\n+85 ComposeMPITraits(std::complex, MPI_CXX_LONG_DOUBLE_COMPLEX);\n+86 ComposeMPITraits(std::complex, MPI_CXX_FLOAT_COMPLEX);\n+87\n+88\n+89#undef ComposeMPITraits\n+90\n+91 template class _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br;\n+92\n+93 template\n+94 struct _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br >\n+95 {\n+96 static MPI_Datatype datatype;\n+97 static MPI_Datatype vectortype;\n 98\n-100 friend inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& s,\n-101 const _\bI_\bn_\bd_\be_\bn_\bt& indent);\n-102 };\n-103\n-_\b1_\b0_\b5 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& s, const _\bI_\bn_\bd_\be_\bn_\bt& indent) {\n-106 if(indent.parent)\n-107 s << *indent.parent;\n-108 for(unsigned i = 0; i < indent.level; ++i)\n-109 s << indent.basic_indent;\n-110 return s;\n-111 }\n-112\n-115} // namespace Dune\n-116\n-117#endif // DUNE_COMMON_INDENT_HH\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+\n-Indent operator+(const std::string &newindent) const\n-create new indentation object with this one as parent\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt\n-Indent(unsigned level_)\n-setup without parent and basic_indentation of two spaces\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:68\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+\n-Indent operator+(unsigned morelevel) const\n-create a copy of this indentation object with raised level\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt\n-Indent(const Indent *parent_, unsigned level_)\n-setup with parent\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-Indent & operator++()\n-raise indentation level\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt\n-Indent(const std::string &basic_indent_=\" \", unsigned level_=0)\n-setup without parent\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n-Indent & operator--()\n-lower indentation level\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:97\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-friend std::ostream & operator<<(std::ostream &s, const Indent &indent)\n-write indentation to a stream\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt\n-Indent(const Indent *parent_, const std::string &basic_indent_=\" \", unsigned\n-level_=1)\n-setup with parent\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:278\n+99 static inline MPI_Datatype _\bg_\be_\bt_\bT_\by_\bp_\be()\n+100 {\n+101 if(datatype==MPI_DATATYPE_NULL) {\n+102 MPI_Type_contiguous(n, _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bK_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be(), &vectortype);\n+103 MPI_Type_commit(&vectortype);\n+104 _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\bn_\b> fvector;\n+105 MPI_Aint base;\n+106 MPI_Aint displ;\n+107 MPI_Get_address(&fvector, &base);\n+108 MPI_Get_address(&(fvector[0]), &displ);\n+109 displ -= base;\n+110 int length[1]={1};\n+111\n+112 MPI_Type_create_struct(1, length, &displ, &vectortype, &datatype);\n+113 MPI_Type_commit(&datatype);\n+114 }\n+115 return datatype;\n+116 }\n+117\n+118 };\n+119\n+120 template\n+121 MPI_Datatype MPITraits >::datatype = MPI_DATATYPE_NULL;\n+122 template\n+123 MPI_Datatype MPITraits >::vectortype =\n+{MPI_DATATYPE_NULL};\n+124\n+125\n+126 template\n+127 class bigunsignedint;\n+128\n+129 template\n+130 struct MPITraits >\n+131 {\n+132 static MPI_Datatype datatype;\n+133 static MPI_Datatype vectortype;\n+134\n+135 static inline MPI_Datatype _\bg_\be_\bt_\bT_\by_\bp_\be()\n+136 {\n+137 if(datatype==MPI_DATATYPE_NULL) {\n+138 MPI_Type_contiguous(_\bb_\bi_\bg_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\bi_\bn_\bt_\b<_\bk_\b>_\b:_\b:_\bn, _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bs_\bt_\bd_\b:_\b:_\bu_\bi_\bn_\bt_\b1_\b6_\b__\bt_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be\n+(),\n+139 &vectortype);\n+140 //MPI_Type_commit(&vectortype);\n+141 bigunsignedint data;\n+142 MPI_Aint base;\n+143 MPI_Aint displ;\n+144 MPI_Get_address(&data, &base);\n+145 MPI_Get_address(&(data.digit), &displ);\n+146 displ -= base;\n+147 int length[1]={1};\n+148 MPI_Type_create_struct(1, length, &displ, &vectortype, &datatype);\n+149 MPI_Type_commit(&datatype);\n+150 }\n+151 return datatype;\n+152 }\n+153 };\n+154}\n+155\n+156namespace _\bD_\bu_\bn_\be\n+157{\n+158 template\n+159 MPI_Datatype MPITraits >::datatype = MPI_DATATYPE_NULL;\n+160 template\n+161 MPI_Datatype MPITraits >::vectortype = MPI_DATATYPE_NULL;\n+162\n+163 template\n+164 struct MPITraits<_\bs_\bt_\bd::pair >\n+165 {\n+166 public:\n+167 inline static MPI_Datatype _\bg_\be_\bt_\bT_\by_\bp_\be();\n+168 private:\n+169 static MPI_Datatype type;\n+170 };\n+171 template\n+172 MPI_Datatype MPITraits >::getType()\n+173 {\n+174 if(type==MPI_DATATYPE_NULL) {\n+175 int length[2] = {1, 1};\n+176 MPI_Aint disp[2];\n+177 MPI_Datatype types[2] = {_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b1_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be(),\n+178 _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b2_\b>_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be()};\n+179\n+180 using Pair = std::pair;\n+181 static_assert(std::is_standard_layout::value, \"offsetof() is only\n+defined for standard layout types\");\n+182 disp[0] = offsetof(Pair, first);\n+183 disp[1] = offsetof(Pair, second);\n+184\n+185 MPI_Datatype tmp;\n+186 MPI_Type_create_struct(2, length, disp, types, &tmp);\n+187\n+188 MPI_Type_create_resized(tmp, 0, sizeof(Pair), &type);\n+189 MPI_Type_commit(&type);\n+190\n+191 MPI_Type_free(&tmp);\n+192 }\n+193 return type;\n+194 }\n+195\n+196 template\n+197 MPI_Datatype MPITraits >::type=MPI_DATATYPE_NULL;\n+198\n+199#endif // !DOXYGEN\n+200\n+201} // namespace Dune\n+202\n+203#endif // HAVE_MPI\n+204\n+207#endif // DUNE_COMMON_PARALLEL_MPITRAITS_HH\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n Dune namespace.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn alignedallocator.hh:13\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bn_\bt\n-Utility class for handling nested indentation in output.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indent.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs\n+A traits class describing the mapping of types onto MPI_Datatypes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bg_\be_\bt_\bT_\by_\bp_\be\n+static MPI_Datatype getType()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bi_\bs_\b__\bi_\bn_\bt_\br_\bi_\bn_\bs_\bi_\bc\n+static constexpr bool is_intrinsic\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn mpitraits.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bg_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\bi_\bn_\bt_\b:_\b:_\bn\n+static constexpr int n\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bigunsignedint.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br\n+vector space out of a tensor product of fields.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fvector.hh:91\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00080.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00080.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: boundschecking.hh File Reference\n+dune-common: mpi_collective_benchmark.cc File Reference\n \n \n \n \n \n \n \n@@ -65,38 +65,336 @@\n

    \n \n \n \n \n \n \n
    \n
    \n-Macros
    \n-
    boundschecking.hh File Reference
    \n+Functions |\n+Variables
    \n+
    mpi_collective_benchmark.cc File Reference
    \n \n
    \n-\n-

    Macro for wrapping boundary checks. \n-More...

    \n-\n-

    Go to the source code of this file.

    \n-\n-\n-\n-\n-\n+
    #include <chrono>
    \n+#include <functional>
    \n+#include <iostream>
    \n+#include <iomanip>
    \n+#include <string>
    \n+#include <thread>
    \n+#include <tuple>
    \n+#include <vector>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/timer.hh>
    \n+#include <dune/common/parametertree.hh>
    \n+#include <dune/common/parametertreeparser.hh>
    \n+#include <dune/common/parallel/future.hh>
    \n+#include <dune/common/parallel/mpihelper.hh>
    \n+

    \n-Macros

    #define DUNE_ASSERT_BOUNDS(cond)
     If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do nothing.
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Functions

    template<class CC >
    void communicate (CC &cc)
     
    template<class CC >
    Dune::Future< void > startCommunication (CC &cc)
     
    template<class CC >
    double runBlocking (CC &cc)
     
    template<class CC >
    double runNonblockingWait (CC &cc)
     
    std::tuple< double, double > runNonblockingSleep (decltype(Dune::MPIHelper::getCommunication())&cc, std::chrono::duration< double > wait_time)
     
    std::tuple< double, double > runNonblockingActive (decltype(Dune::MPIHelper::getCommunication())&cc, std::chrono::duration< double > wait_time)
     
    std::tuple< double, double > determineOverlap (std::function< std::tuple< double, double >(std::chrono::duration< double >)> fun)
     
    void printHeader ()
     
    void run (int s)
     
    int main (int argc, char **argv)
     
    \n+\n+\n+\n+\n+\n+\n

    \n+Variables

    Dune::ParameterTree options
     Benchmark for measure the possible overlap of computation and communication at MPI collective communications.
     
    std::vector< std::string > all_methods
     
    \n-

    Detailed Description

    \n-

    Macro for wrapping boundary checks.

    \n-
    \n+

    Function Documentation

    \n+\n+

    ◆ communicate()

    \n+\n+
    \n+
    \n+
    \n+template<class CC >
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    void communicate (CC & cc)
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ determineOverlap()

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    std::tuple< double, double > determineOverlap (std::function< std::tuple< double, double >(std::chrono::duration< double >)> fun)
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ main()

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    int main (int argc,
    char ** argv 
    )
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ printHeader()

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    void printHeader ()
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ run()

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    void run (int s)
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ runBlocking()

    \n+\n+
    \n+
    \n+
    \n+template<class CC >
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    double runBlocking (CC & cc)
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ runNonblockingActive()

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    std::tuple< double, double > runNonblockingActive (decltype(Dune::MPIHelper::getCommunication())& cc,
    std::chrono::duration< double > wait_time 
    )
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ runNonblockingSleep()

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    std::tuple< double, double > runNonblockingSleep (decltype(Dune::MPIHelper::getCommunication())& cc,
    std::chrono::duration< double > wait_time 
    )
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ runNonblockingWait()

    \n+\n+
    \n+
    \n+
    \n+template<class CC >
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    double runNonblockingWait (CC & cc)
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ startCommunication()

    \n+\n+
    \n+
    \n+
    \n+template<class CC >
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    Dune::Future< void > startCommunication (CC & cc)
    \n+
    \n+\n+
    \n+
    \n+

    Variable Documentation

    \n+\n+

    ◆ all_methods

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+
    std::vector<std::string> all_methods
    \n+
    \n+Initial value:
    = {"allreduce",
    \n+
    "barrier",
    \n+
    "broadcast",
    \n+
    "gather",
    \n+
    "allgather",
    \n+
    "scatter"}
    \n+
    \n+
    \n+
    \n+\n+

    ◆ options

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+
    Dune::ParameterTree options
    \n+
    \n+\n+

    Benchmark for measure the possible overlap of computation and communication at MPI collective communications.

    \n+

    This benchmark is inspired by the sandia micro benchmark: W. Lawry, C. Wilson, A. Maccabe, R. Brightwell. COMB: A Portable Benchmark Suite for Assessing MPI Overlap. In Proceedings of the IEEE International Conference on Cluster Computing (CLUSTER 2002), p. 472, 2002. http://www.cs.sandia.gov/smb/overhead.html

    \n+

    The following communication times are measured: Blocking: Blocking call. E.g. MPI_Allreduce Nonblocking_wait (NB_Wait): Nonblocking (e.g. MPI_Iallreduce) call directly followed by MPI_Wait. Nonblocking_sleep (NB_Sleep): Nonblocking call followed by a busy wait until the work time has passed. Then MPI_Wait. Nonblocking_active (NB_active): Nonblocking call followed by a basy wait where in every iteration MPI_Test is called until the work time has passed. The MPI_wait.

    \n+

    The overhead is computed as the time for the Nonblocking call plus the time for MPI_Wait. The iteration time is the time for the whole communication. The available part of the communication time(avail(%)) is computed as 1-(overhead/base_t), where base_t is the time for calling the method with wait time = 0. The overhead is determined by increasing the work time successive until it is the dominant factor in the iteration time. Then the overhead is computed as iter_t-work_t.

    \n+

    Usage: mpirun ./mpi_collective_benchmark [options]

    \n+

    options: -method: default: allreduce. possible methods: allreduce, barrier, broadcast, gather, allgather, scatter -iterations: default: 10000. Number of iterations for measure the time for one communication -allMethods: default:0. If 1 iterates over all available methods -startSize: default: n, where n is the size of MPI_COMM_WORLD. runs the benchmark for different communicator sizes, starting with startSize. After every run the size is doubled. Finally one run is made for the whole communicator. -verbose: default: 0. If 1 prints intermediate information while determining the overhead. -threshold: default: 2. The threshold when the work time is the dominant factor in the iteration time. (Similar to the threshold in the sandia benchmark) -nohdr: default: 0. Suppress output of the header.

    \n+

    options can be set either in the options.ini file or can be pass at the command-line (-key value).

    \n+

    To get a good 'available' value for the NB_sleep communication, some MPI implementation need to spawn an extra thread. With MPICH you can activate this by setting the environment variable MPI_ASYNC_PROGRESS to 1, with IntelMPI the variable is called I_MPI_ASYNC_PROGRESS. (https://software.intel.com/en-us/mpi-developer-reference-linux-asynchronous-progress-control)

    \n+\n+
    \n+
    \n+\n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,20 +1,151 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bM_\ba_\bc_\br_\bo_\bs\n-boundschecking.hh File Reference\n-Macro for wrapping boundary checks. _\bM_\bo_\br_\be_\b._\b._\b.\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+ * _\bb_\be_\bn_\bc_\bh_\bm_\ba_\br_\bk\n+_\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n+mpi_collective_benchmark.cc File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n #include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh>\n-_\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bA_\bS_\bS_\bE_\bR_\bT_\b__\bB_\bO_\bU_\bN_\bD_\bS(cond)\n-\u00a0 If DUNE_CHECK_BOUNDS is defined: check if condition c\bco\bon\bnd\bd holds;\n- otherwise, do nothing.\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\bi_\bm_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bt_\br_\be_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bt_\br_\be_\be_\bp_\ba_\br_\bs_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bf_\bu_\bt_\bu_\br_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bh_\be_\bl_\bp_\be_\br_\b._\bh_\bh>\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+ void\u00a0 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\be (CC &cc)\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Macro for wrapping boundary checks.\n+template\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be< void >\u00a0 _\bs_\bt_\ba_\br_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (CC &cc)\n+\u00a0\n+template\n+ double\u00a0 _\br_\bu_\bn_\bB_\bl_\bo_\bc_\bk_\bi_\bn_\bg (CC &cc)\n+\u00a0\n+template\n+ double\u00a0 _\br_\bu_\bn_\bN_\bo_\bn_\bb_\bl_\bo_\bc_\bk_\bi_\bn_\bg_\bW_\ba_\bi_\bt (CC &cc)\n+\u00a0\n+std::tuple< double, double >\u00a0 _\br_\bu_\bn_\bN_\bo_\bn_\bb_\bl_\bo_\bc_\bk_\bi_\bn_\bg_\bS_\bl_\be_\be_\bp (decltype(_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:\n+ _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn())&cc, std::chrono::duration<\n+ double > wait_time)\n+\u00a0\n+std::tuple< double, double >\u00a0 _\br_\bu_\bn_\bN_\bo_\bn_\bb_\bl_\bo_\bc_\bk_\bi_\bn_\bg_\bA_\bc_\bt_\bi_\bv_\be (decltype(_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b:\n+ _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn())&cc, std::chrono::duration<\n+ double > wait_time)\n+\u00a0\n+std::tuple< double, double >\u00a0 _\bd_\be_\bt_\be_\br_\bm_\bi_\bn_\be_\bO_\bv_\be_\br_\bl_\ba_\bp (std::function< std::tuple<\n+ double, double >(std::chrono::duration< double\n+ >)> fun)\n+\u00a0\n+ void\u00a0 _\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br ()\n+\u00a0\n+ void\u00a0 _\br_\bu_\bn (int s)\n+\u00a0\n+ int\u00a0 _\bm_\ba_\bi_\bn (int argc, char **argv)\n+\u00a0\n+V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bT_\br_\be_\be\u00a0 _\bo_\bp_\bt_\bi_\bo_\bn_\bs\n+ Benchmark for measure the possible overlap of\n+\u00a0 computation and communication at MPI collective\n+ communications.\n+\u00a0\n+std::vector< std::string >\u00a0 _\ba_\bl_\bl_\b__\bm_\be_\bt_\bh_\bo_\bd_\bs\n+\u00a0\n+*\b**\b**\b**\b**\b* F\bFu\bun\bnc\bct\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0c\bco\bom\bmm\bmu\bun\bni\bic\bca\bat\bte\be(\b()\b) *\b**\b**\b**\b**\b*\n+template\n+void communicate ( CC &\u00a0 c\bcc\bc )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0d\bde\bet\bte\ber\brm\bmi\bin\bne\beO\bOv\bve\ber\brl\bla\bap\bp(\b()\b) *\b**\b**\b**\b**\b*\n+std::tuple< double, double > ( std::function< std::tuple< double, double f\bfu\bun\bn )\n+determineOverlap >(std::chrono::duration< double >)>\u00a0\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0m\bma\bai\bin\bn(\b()\b) *\b**\b**\b**\b**\b*\n+int main ( int\u00a0 a\bar\brg\bgc\bc,\n+ char **\u00a0 a\bar\brg\bgv\bv\u00a0\n+ )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0p\bpr\bri\bin\bnt\btH\bHe\bea\bad\bde\ber\br(\b()\b) *\b**\b**\b**\b**\b*\n+void printHeader ( )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0r\bru\bun\bn(\b()\b) *\b**\b**\b**\b**\b*\n+void run ( int\u00a0 s\bs )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0r\bru\bun\bnB\bBl\blo\boc\bck\bki\bin\bng\bg(\b()\b) *\b**\b**\b**\b**\b*\n+template\n+double runBlocking ( CC &\u00a0 c\bcc\bc )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0r\bru\bun\bnN\bNo\bon\bnb\bbl\blo\boc\bck\bki\bin\bng\bgA\bAc\bct\bti\biv\bve\be(\b()\b) *\b**\b**\b**\b**\b*\n+std::tuple< double, double > ( decltype(_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b: c\bcc\bc,\n+runNonblockingActive _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn())&\u00a0\n+ std::chrono::duration< double >\u00a0 w\bwa\bai\bit\bt_\b_t\bti\bim\bme\be\u00a0\n+ )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0r\bru\bun\bnN\bNo\bon\bnb\bbl\blo\boc\bck\bki\bin\bng\bgS\bSl\ble\bee\bep\bp(\b()\b) *\b**\b**\b**\b**\b*\n+std::tuple< double, double > ( decltype(_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bH_\be_\bl_\bp_\be_\br_\b:_\b: c\bcc\bc,\n+runNonblockingSleep _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn())&\u00a0\n+ std::chrono::duration< double >\u00a0 w\bwa\bai\bit\bt_\b_t\bti\bim\bme\be\u00a0\n+ )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0r\bru\bun\bnN\bNo\bon\bnb\bbl\blo\boc\bck\bki\bin\bng\bgW\bWa\bai\bit\bt(\b()\b) *\b**\b**\b**\b**\b*\n+template\n+double runNonblockingWait ( CC &\u00a0 c\bcc\bc )\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0s\bst\bta\bar\brt\btC\bCo\bom\bmm\bmu\bun\bni\bic\bca\bat\bti\bio\bon\bn(\b()\b) *\b**\b**\b**\b**\b*\n+template\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bu_\bt_\bu_\br_\be< void > startCommunication ( CC &\u00a0 c\bcc\bc )\n+*\b**\b**\b**\b**\b* V\bVa\bar\bri\bia\bab\bbl\ble\be D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0a\bal\bll\bl_\b_m\bme\bet\bth\bho\bod\bds\bs *\b**\b**\b**\b**\b*\n+std::vector all_methods\n+I\bIn\bni\bit\bti\bia\bal\bl v\bva\bal\blu\bue\be:\b:\n+= {\"allreduce\",\n+\"barrier\",\n+\"broadcast\",\n+\"gather\",\n+\"allgather\",\n+\"scatter\"}\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0o\bop\bpt\bti\bio\bon\bns\bs *\b**\b**\b**\b**\b*\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bT_\br_\be_\be options\n+Benchmark for measure the possible overlap of computation and communication at\n+MPI collective communications.\n+This benchmark is inspired by the sandia micro benchmark: W. Lawry, C. Wilson,\n+A. Maccabe, R. Brightwell. COMB: A Portable Benchmark Suite for Assessing MPI\n+Overlap. In Proceedings of the IEEE International Conference on Cluster\n+Computing (CLUSTER 2002), p. 472, 2002. _\bh_\bt_\bt_\bp_\b:_\b/_\b/_\bw_\bw_\bw_\b._\bc_\bs_\b._\bs_\ba_\bn_\bd_\bi_\ba_\b._\bg_\bo_\bv_\b/_\bs_\bm_\bb_\b/\n+_\bo_\bv_\be_\br_\bh_\be_\ba_\bd_\b._\bh_\bt_\bm_\bl\n+The following communication times are measured: Blocking: Blocking call. E.g.\n+MPI_Allreduce Nonblocking_wait (NB_Wait): Nonblocking (e.g. MPI_Iallreduce)\n+call directly followed by MPI_Wait. Nonblocking_sleep (NB_Sleep): Nonblocking\n+call followed by a busy wait until the work time has passed. Then MPI_Wait.\n+Nonblocking_active (NB_active): Nonblocking call followed by a basy wait where\n+in every iteration MPI_Test is called until the work time has passed. The\n+MPI_wait.\n+The overhead is computed as the time for the Nonblocking call plus the time for\n+MPI_Wait. The iteration time is the time for the whole communication. The\n+available part of the communication time(avail(%)) is computed as 1-(overhead/\n+base_t), where base_t is the time for calling the method with wait time = 0.\n+The overhead is determined by increasing the work time successive until it is\n+the dominant factor in the iteration time. Then the overhead is computed as\n+iter_t-work_t.\n+Usage: mpirun ./mpi_collective_benchmark [options]\n+options: -method: default: allreduce. possible methods: allreduce, barrier,\n+broadcast, gather, allgather, scatter -iterations: default: 10000. Number of\n+iterations for measure the time for one communication -allMethods: default:0.\n+If 1 iterates over all available methods -startSize: default: n, where n is the\n+size of MPI_COMM_WORLD. runs the benchmark for different communicator sizes,\n+starting with startSize. After every run the size is doubled. Finally one run\n+is made for the whole communicator. -verbose: default: 0. If 1 prints\n+intermediate information while determining the overhead. -threshold: default:\n+2. The threshold when the work time is the dominant factor in the iteration\n+time. (Similar to the threshold in the sandia benchmark) -nohdr: default: 0.\n+Suppress output of the header.\n+options can be set either in the options.ini file or can be pass at the\n+command-line (-key value).\n+To get a good 'available' value for the NB_sleep communication, some MPI\n+implementation need to spawn an extra thread. With MPICH you can activate this\n+by setting the environment variable MPI_ASYNC_PROGRESS to 1, with IntelMPI the\n+variable is called I_MPI_ASYNC_PROGRESS. (_\bh_\bt_\bt_\bp_\bs_\b:_\b/_\b/_\bs_\bo_\bf_\bt_\bw_\ba_\br_\be_\b._\bi_\bn_\bt_\be_\bl_\b._\bc_\bo_\bm_\b/_\be_\bn_\b-_\bu_\bs_\b/_\bm_\bp_\bi_\b-\n+_\bd_\be_\bv_\be_\bl_\bo_\bp_\be_\br_\b-_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be_\b-_\bl_\bi_\bn_\bu_\bx_\b-_\ba_\bs_\by_\bn_\bc_\bh_\br_\bo_\bn_\bo_\bu_\bs_\b-_\bp_\br_\bo_\bg_\br_\be_\bs_\bs_\b-_\bc_\bo_\bn_\bt_\br_\bo_\bl)\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00083.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00083.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: integersequence.hh File Reference\n+dune-common: mpidata.hh File Reference\n \n \n \n \n \n \n \n@@ -65,123 +65,62 @@\n \n \n \n \n \n \n \n
    \n \n-
    integersequence.hh File Reference
    \n+
    mpidata.hh File Reference
    \n
    \n
    \n-
    #include <algorithm>
    \n-#include <array>
    \n-#include <cassert>
    \n-#include <functional>
    \n+\n+

    Interface class to translate objects to a MPI_Datatype, void* and size used for MPI calls. \n+More...

    \n+
    #include <vector>
    \n+#include <string>
    \n #include <type_traits>
    \n-#include <utility>
    \n-#include <dune/common/indices.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/std/type_traits.hh>
    \n+#include <dune/common/parallel/mpitraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::MPIData< T, Enable >
     
    struct  Dune::MPIData< void >
     
    struct  Dune::MPIData< T, std::void_t< std::tuple< decltype(std::declval< T >().data()), decltype(std::declval< T >().size()), typename std::decay_t< T >::value_type > > >
     
    \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     Dune namespace.
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n

    \n Functions

    template<std::size_t pos, class T , T... II, std::enable_if_t<(!(pos >=sizeof...(II))), int > = 0>
    constexpr auto Dune::get (std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
     Return the entry at position pos of the given sequence.
     
    template<class T , T... II>
    constexpr T Dune::get (std::integer_sequence< T, II... >, std::size_t pos)
     Return the entry at position pos of the given sequence.
     
    template<class T , T I0, T... II>
    constexpr std::integral_constant< T, I0 > Dune::front (std::integer_sequence< T, I0, II... >)
     Return the first entry of the sequence.
     
    template<class T , T... II, std::enable_if_t<(sizeof...(II) > 0), int > = 0>
    constexpr auto Dune::back (std::integer_sequence< T, II... > seq)
     Return the last entry of the sequence.
     
    template<class T , T I0, T... II>
    constexpr std::integral_constant< T, I0 > Dune::head (std::integer_sequence< T, I0, II... >)
     For a sequence [head,tail...) return the single head element.
     
    template<class T , T I0, T... II>
    constexpr std::integer_sequence< T, II... > Dune::tail (std::integer_sequence< T, I0, II... >)
     For a sequence [head,tail...) return the tail sequence.
     
    template<auto I0, class T , T... II>
    constexpr std::integer_sequence< T, T(I0), II... > Dune::push_front (std::integer_sequence< T, II... >, std::integral_constant< T, I0 >={})
     Append an index I0 to the front of the sequence.
     
    template<auto IN, class T , T... II>
    constexpr std::integer_sequence< T, II..., T(IN)> Dune::push_back (std::integer_sequence< T, II... >, std::integral_constant< T, IN >={})
     Append an index IN to the back of the sequence.
     
    template<class T , T... II>
    constexpr std::integral_constant< std::size_t, sizeof...(II)> Dune::size (std::integer_sequence< T, II... >)
     Return the size of the sequence.
     
    template<class T , T... II>
    constexpr std::bool_constant<(sizeof...(II)==0)> Dune::empty (std::integer_sequence< T, II... >)
     Checks whether the sequence is empty.
     
    template<class T , T... II, class Compare >
    constexpr auto Dune::sorted (std::integer_sequence< T, II... > seq, Compare comp)
     Sort a given sequence by the comparator comp.
     
    template<class T , T... II>
    constexpr auto Dune::sorted (std::integer_sequence< T, II... > seq)
     Sort a given sequence by less-than comparison.
     
    template<class T , T... II, T value>
    constexpr std::bool_constant<((II==value)||...)> Dune::contains (std::integer_sequence< T, II... >, std::integral_constant< T, value >)
     Checks whether or not a given sequence contains a value.
     
    template<class T , T... II, T... JJ>
    constexpr auto Dune::difference (std::integer_sequence< T, II... > iSeq, std::integer_sequence< T, JJ... > jSeq)
     Return the elements from the sequence [II...) which are not found in the sequence [JJ...).
     
    template<std::size_t N, class T , T... JJ, std::enable_if_t<(N >=sizeof...(JJ)), int > = 0>
    constexpr auto Dune::difference (std::integer_sequence< T, JJ... > jSeq)
     Return the elements from the sequence [0,1,...N) which are not found in the sequence [JJ...).
     
    template<class S , S... II, class T , T... JJ, std::enable_if_t<(sizeof...(II)==sizeof...(JJ)), int > = 0, class ST = std::common_type_t<S,T>>
    constexpr std::is_same< std::integer_sequence< bool, true,(ST(II)==ST(JJ))... >, std::integer_sequence< bool,(ST(II)==ST(JJ))..., true > > Dune::equal (std::integer_sequence< S, II... >, std::integer_sequence< T, JJ... >)
     Checks whether two sequences are identical.
     
    template<class S , S... II, class T , T... JJ, std::enable_if_t<(sizeof...(II) !=sizeof...(JJ)), int > = 0>
    constexpr std::bool_constant< false > Dune::equal (std::integer_sequence< S, II... >, std::integer_sequence< T, JJ... >)
     Sequences are unequal if not of the same length.
     
    template<template< auto > class Filter, class T >
    constexpr auto Dune::filter (std::integer_sequence< T > jSeq)
     
    template<template< auto > class Filter, class T , T J0, T... JJ>
    constexpr auto Dune::filter (std::integer_sequence< T, J0, JJ... > jSeq)
     
    template<class Filter , class T >
    constexpr auto Dune::filter (Filter, std::integer_sequence< T > jSeq)
     
    template<class Filter , class T , T J0, T... JJ>
    constexpr auto Dune::filter (Filter f, std::integer_sequence< T, J0, JJ... > jSeq)
     
    template<class T >
    auto Dune::getMPIData (T &t)
     
    \n-
    \n+

    Detailed Description

    \n+

    Interface class to translate objects to a MPI_Datatype, void* and size used for MPI calls.

    \n+

    Furthermore it can be used to resize the object if possible. This makes it possible to receive a message with variable size. See Communication::rrecv.

    \n+

    To 'register' a new dynamic type for MPI communication specialize MPIData or overload getMPIData.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,152 +1,45 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-integersequence.hh File Reference\n-#include \n-#include \n-#include \n-#include \n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+mpidata.hh File Reference\n+_\bC_\bo_\bm_\bm_\bo_\bn \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+Interface class to translate objects to a MPI_Datatype, void* and size used for\n+MPI calls. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n #include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\b/_\bt_\by_\bp_\be_\b__\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bT_\b,_\b _\bE_\bn_\ba_\bb_\bl_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bv_\bo_\bi_\bd_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\b _\bT_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b<_\b _\bd_\be_\bc_\bl_\bt_\by_\bp_\be_\b(_\bs_\bt_\bd_\b:_\b:_\bd_\be_\bc_\bl_\bv_\ba_\bl_\b<_\b _\bT_\b _\b>\n+ _\b(_\b)_\b._\bd_\ba_\bt_\ba_\b(_\b)_\b)_\b,_\b _\bd_\be_\bc_\bl_\bt_\by_\bp_\be_\b(_\bs_\bt_\bd_\b:_\b:_\bd_\be_\bc_\bl_\bv_\ba_\bl_\b<_\b _\bT_\b _\b>_\b(_\b)_\b._\bs_\bi_\bz_\be_\b(_\b)_\b)_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bs_\bt_\bd_\b:_\b:\n+ _\bd_\be_\bc_\ba_\by_\b__\bt_\b<_\b _\bT_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0 _\bD_\bu_\bn_\be namespace.\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template=sizeof...(II))), int > = 0>\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt (std::integer_sequence< T,\n- II... >, std::integral_constant< std::\n- size_t, pos >={})\n-\u00a0 Return the entry at position pos of the\n- given sequence.\n-\u00a0\n-template\n- constexpr T\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt (std::integer_sequence< T,\n- II... >, std::size_t pos)\n-\u00a0 Return the entry at position pos of the\n- given sequence.\n-\u00a0\n-template\n-constexpr std::integral_constant< T, I0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\br_\bo_\bn_\bt (std::integer_sequence< T,\n- >\u00a0 I0, II... >)\n-\u00a0 Return the first entry of the sequence.\n-\u00a0\n-template 0), int > = 0>\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\ba_\bc_\bk (std::integer_sequence< T,\n- II... > seq)\n-\u00a0 Return the last entry of the sequence.\n-\u00a0\n-template\n-constexpr std::integral_constant< T, I0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\be_\ba_\bd (std::integer_sequence< T,\n- >\u00a0 I0, II... >)\n-\u00a0 For a sequence [head,tail...) return\n- the single head element.\n-\u00a0\n-template\n- constexpr std::integer_sequence< T, _\bD_\bu_\bn_\be_\b:_\b:_\bt_\ba_\bi_\bl (std::integer_sequence< T,\n- II... >\u00a0 I0, II... >)\n-\u00a0 For a sequence [head,tail...) return\n- the tail sequence.\n-\u00a0\n-template\n- constexpr std::integer_sequence< T, T _\bD_\bu_\bn_\be_\b:_\b:_\bp_\bu_\bs_\bh_\b__\bf_\br_\bo_\bn_\bt (std::\n- (I0), II... >\u00a0 integer_sequence< T, II... >, std::\n- integral_constant< T, I0 >={})\n-\u00a0 Append an index I0 to the front of the\n- sequence.\n-\u00a0\n-template\n- constexpr std::integer_sequence< T, _\bD_\bu_\bn_\be_\b:_\b:_\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk (std::integer_sequence<\n- II..., T(IN)>\u00a0 T, II... >, std::integral_constant< T,\n- IN >={})\n-\u00a0 Append an index IN to the back of the\n- sequence.\n-\u00a0\n-template\n-constexpr std::integral_constant< std:: _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bi_\bz_\be (std::integer_sequence< T,\n- size_t, sizeof...(II)>\u00a0 II... >)\n-\u00a0 Return the size of the sequence.\n-\u00a0\n-template\n-constexpr std::bool_constant<(sizeof... _\bD_\bu_\bn_\be_\b:_\b:_\be_\bm_\bp_\bt_\by (std::integer_sequence< T,\n- (II)==0)>\u00a0 II... >)\n-\u00a0 Checks whether the sequence is empty.\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bo_\br_\bt_\be_\bd (std::integer_sequence< T,\n- II... > seq, Compare comp)\n-\u00a0 Sort a given sequence by the comparator\n- comp.\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bo_\br_\bt_\be_\bd (std::integer_sequence< T,\n- II... > seq)\n-\u00a0 Sort a given sequence by less-than\n- comparison.\n-\u00a0\n-template\n- constexpr std::bool_constant<( _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs (std::integer_sequence<\n- (II==value)||...)>\u00a0 T, II... >, std::integral_constant< T,\n- value >)\n-\u00a0 Checks whether or not a given sequence\n- contains a value.\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be (std::\n- integer_sequence< T, II... > iSeq,\n- std::integer_sequence< T, JJ... > jSeq)\n- Return the elements from the sequence\n-\u00a0 [II...) which are not found in the\n- sequence [JJ...).\n-\u00a0\n-template=sizeof...\n-(JJ)), int > = 0>\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be (std::\n- integer_sequence< T, JJ... > jSeq)\n- Return the elements from the sequence\n-\u00a0 [0,1,...N) which are not found in the\n- sequence [JJ...).\n-\u00a0\n-template = 0, class ST = std::common_type_t>\n- constexpr std::is_same< std::\n- integer_sequence< bool, true,(ST\n- (II)==ST(JJ))... >, std:: _\bD_\bu_\bn_\be_\b:_\b:_\be_\bq_\bu_\ba_\bl (std::integer_sequence< S,\n- integer_sequence< bool,(ST(II)==ST II... >, std::integer_sequence< T,\n- (JJ))..., true > >\u00a0 JJ... >)\n-\u00a0 Checks whether two sequences are\n- identical.\n-\u00a0\n-template = 0>\n- constexpr std::bool_constant< false >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\be_\bq_\bu_\ba_\bl (std::integer_sequence< S,\n- II... >, std::integer_sequence< T,\n- JJ... >)\n-\u00a0 Sequences are unequal if not of the\n- same length.\n-\u00a0\n-template class Filter, class T >\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bt_\be_\br (std::integer_sequence< T\n- > jSeq)\n-\u00a0\n-template class Filter, class T , T J0, T... JJ>\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bt_\be_\br (std::integer_sequence< T,\n- J0, JJ... > jSeq)\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bt_\be_\br (Filter, std::\n- integer_sequence< T > jSeq)\n-\u00a0\n-template\n- constexpr auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bt_\be_\br (Filter f, std::\n- integer_sequence< T, J0, JJ... > jSeq)\n+template\n+auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba (T &t)\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Interface class to translate objects to a MPI_Datatype, void* and size used for\n+MPI calls.\n+Furthermore it can be used to resize the object if possible. This makes it\n+possible to receive a message with variable size. See Communication::rrecv.\n+To 'register' a new dynamic type for MPI communication specialize MPIData or\n+overload getMPIData.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-common-doc/doxygen/a00083_source.html", "source2": "./usr/share/doc/libdune-common-doc/doxygen/a00083_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-common: integersequence.hh Source File\n+dune-common: mpidata.hh Source File\n \n \n \n \n \n \n \n@@ -70,245 +70,197 @@\n \n \n \n \n \n \n \n
    \n-
    integersequence.hh
    \n+
    mpidata.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    2// vi: set et ts=4 sw=2 sts=2:
    \n
    3// SPDX-FileCopyrightInfo: Copyright \u00a9 DUNE Project contributors, see file LICENSE.md in module root
    \n
    4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    5#ifndef DUNE_COMMON_INTEGERSEQUENCE_HH
    \n-
    6#define DUNE_COMMON_INTEGERSEQUENCE_HH
    \n-
    7
    \n-
    8#include <algorithm>
    \n-
    9#include <array>
    \n-
    10#include <cassert>
    \n-
    11#include <functional>
    \n-
    12#include <type_traits>
    \n-
    13#include <utility>
    \n+
    5
    \n+
    6#ifndef DUNE_COMMON_PARALLEL_MPIDATA_HH
    \n+
    7#define DUNE_COMMON_PARALLEL_MPIDATA_HH
    \n+
    8
    \n+
    9#if HAVE_MPI
    \n+
    10
    \n+
    11#include <vector>
    \n+
    12#include <string>
    \n+
    13#include <type_traits>
    \n
    14
    \n-\n-
    16
    \n-
    17namespace Dune {
    \n+\n+\n+\n
    18
    \n-
    20template <std::size_t pos, class T, T... II,
    \n-
    21 std::enable_if_t<(!(pos >= sizeof...(II))), int> = 0>
    \n-
    \n-
    22constexpr auto get (std::integer_sequence<T,II...>, std::integral_constant<std::size_t,pos> = {})
    \n-
    23{
    \n-
    24 constexpr T entry = std::array<T,sizeof...(II)>{II...}[pos];
    \n-
    25 return std::integral_constant<T,entry>{};
    \n-
    26}
    \n-
    \n-
    27
    \n-
    29template <class T, T... II>
    \n-
    \n-
    30constexpr T get (std::integer_sequence<T,II...>, std::size_t pos)
    \n-
    31{
    \n-
    32 assert(pos < sizeof...(II));
    \n-
    33 return std::array<T,sizeof...(II)>{II...}[pos];
    \n-
    34}
    \n-
    \n-
    35
    \n-
    37template <class T, T I0, T... II>
    \n-
    38constexpr std::integral_constant<T,I0>
    \n-
    39front (std::integer_sequence<T,I0,II...>) { return {}; }
    \n-
    40
    \n-
    42template <class T, T... II,
    \n-
    43 std::enable_if_t<(sizeof...(II) > 0), int> = 0>
    \n-
    \n-
    44constexpr auto back (std::integer_sequence<T,II...> seq)
    \n-
    45{
    \n-
    46 return get<sizeof...(II)-1>(seq);
    \n-
    47}
    \n-
    \n-
    48
    \n-
    49
    \n-
    51template <class T, T I0, T... II>
    \n-
    52constexpr std::integral_constant<T,I0>
    \n-
    53head (std::integer_sequence<T,I0,II...>) { return {}; }
    \n-
    54
    \n-
    56template <class T, T I0, T... II>
    \n-
    57constexpr std::integer_sequence<T,II...>
    \n-
    58tail (std::integer_sequence<T,I0,II...>) { return {}; }
    \n+
    38namespace Dune{
    \n+
    39
    \n+
    40 template<class, class = void>
    \n+
    41 struct MPIData;
    \n+
    42
    \n+
    43 template<class T>
    \n+
    \n+
    44 auto getMPIData(T& t){
    \n+
    45 return MPIData<T>(t);
    \n+
    46 }
    \n+
    \n+
    47
    \n+
    48 // Default implementation for static datatypes
    \n+
    49 template<class T, class Enable>
    \n+
    \n+
    50 struct MPIData
    \n+
    51 {
    \n+
    52 friend auto getMPIData<T>(T&);
    \n+
    53 protected:
    \n+\n+
    55
    \n+
    \n+
    56 MPIData(T& t)
    \n+
    57 : data_(t)
    \n+
    58 {}
    \n+
    \n
    59
    \n-
    60
    \n-
    62template <auto I0, class T, T... II>
    \n-
    63constexpr std::integer_sequence<T,T(I0),II...>
    \n-
    64push_front (std::integer_sequence<T,II...>, std::integral_constant<T,I0> = {}) { return {}; }
    \n-
    65
    \n-
    67template <auto IN, class T, T... II>
    \n-
    68constexpr std::integer_sequence<T,II...,T(IN)>
    \n-
    69push_back (std::integer_sequence<T,II...>, std::integral_constant<T,IN> = {}) { return {}; }
    \n-
    70
    \n+
    60 public:
    \n+
    \n+
    61 void* ptr() const {
    \n+
    62 return (void*)&data_;
    \n+
    63 }
    \n+
    \n+
    64
    \n+
    65 // indicates whether the datatype can be resized
    \n+
    66 static constexpr bool static_size = true;
    \n+
    67
    \n+
    \n+
    68 int size() const{
    \n+
    69 return 1;
    \n+
    70 }
    \n+
    \n
    71
    \n-
    73template <class T, T... II>
    \n-
    74constexpr std::integral_constant<std::size_t,sizeof...(II)>
    \n-
    75size (std::integer_sequence<T,II...>) { return {}; }
    \n+
    \n+
    72 MPI_Datatype type() const {
    \n+
    73 return MPITraits<std::decay_t<T>>::getType();
    \n+
    74 }
    \n+
    \n+
    75 };
    \n+
    \n
    76
    \n-
    78template <class T, T... II>
    \n-
    79constexpr std::bool_constant<(sizeof...(II) == 0)>
    \n-
    80empty (std::integer_sequence<T,II...>) { return {}; }
    \n-
    81
    \n-
    82namespace Impl {
    \n-
    83
    \n-
    84// constexpr version of swap for older compilers
    \n-
    85template <class T>
    \n-
    86constexpr void swapImpl (T& a, T& b)
    \n-
    87{
    \n-
    88 T c = a; a = b; b = c;
    \n-
    89}
    \n-
    90
    \n-
    91// constexpr quick sort implementation
    \n-
    92template <class T, std::size_t N, class Compare>
    \n-
    93constexpr void sortImpl (std::array<T, N>& array, Compare comp, std::size_t left = 0, std::size_t right = N)
    \n-
    94{
    \n-
    95 // based on https://stackoverflow.com/a/40030044
    \n-
    96 if (left < right) {
    \n-
    97 std::size_t m = left;
    \n-
    98 for (std::size_t i = left + 1; i < right; ++i)
    \n-
    99 if (comp(array[i], array[left]))
    \n-
    100 swapImpl(array[++m], array[i]);
    \n-
    101 swapImpl(array[left], array[m]);
    \n-
    102 sortImpl(array, comp, left, m);
    \n-
    103 sortImpl(array, comp, m + 1, right);
    \n-
    104 }
    \n-
    105}
    \n-
    106
    \n-
    107// return the sorted array
    \n-
    108template <class T, std::size_t N, class Compare>
    \n-
    109constexpr std::array<T, N> sortedImpl (std::array<T, N> array, Compare comp)
    \n-
    110{
    \n-
    111 sortImpl(array, comp);
    \n-
    112 return array;
    \n-
    113}
    \n-
    114
    \n-
    115} // end namespace Impl
    \n-
    116
    \n-
    118template <class T, T... II, class Compare>
    \n+
    77 // dummy implementation for void
    \n+
    78 template<>
    \n+
    \n+
    79 struct MPIData<void>{
    \n+
    80 protected:
    \n+\n+
    82
    \n+
    83 public:
    \n+
    \n+
    84 void* ptr(){
    \n+
    85 return nullptr;
    \n+
    86 }
    \n+
    \n+
    \n+
    87 int size(){
    \n+
    88 return 0;
    \n+
    89 }
    \n+
    \n+
    90 void get(){}
    \n+
    \n+
    91 MPI_Datatype type() const{
    \n+
    92 return MPI_INT;
    \n+
    93 }
    \n+
    \n+
    94 };
    \n+
    \n+
    95
    \n+
    96 // specializations:
    \n+
    97 // std::vector of static sized elements or std::string
    \n+
    98 template<class T>
    \n+
    \n+
    99 struct MPIData<T, std::void_t<std::tuple<decltype(std::declval<T>().data()),
    \n+
    100 decltype(std::declval<T>().size()),
    \n+
    101 typename std::decay_t<T>::value_type>>>{
    \n+
    102 private:
    \n+
    103 template<class U>
    \n+
    104 using hasResizeOp = decltype(std::declval<U>().resize(0));
    \n+
    105
    \n+
    106 protected:
    \n+
    107 friend auto getMPIData<T>(T&);
    \n+
    \n+\n+
    109 : data_(t)
    \n+
    110 {}
    \n+
    \n+
    111 public:
    \n+
    112 static constexpr bool static_size = std::is_const<T>::value || !Std::is_detected_v<hasResizeOp, T>;
    \n+
    \n+
    113 void* ptr() {
    \n+
    114 return (void*) data_.data();
    \n+
    115 }
    \n+
    \n+
    \n+
    116 int size() {
    \n+
    117 return data_.size();
    \n+
    118 }
    \n+
    \n
    \n-
    119constexpr auto sorted (std::integer_sequence<T,II...> seq, Compare comp)
    \n-
    120{
    \n-
    121 constexpr auto sorted = Impl::sortedImpl(std::array<T,sizeof...(II)>{II...}, comp);
    \n-
    122 return unpackIntegerSequence([&](auto... i) {
    \n-
    123 return std::integer_sequence<T,sorted[i]...>{};
    \n-
    124 }, std::make_index_sequence<sizeof...(II)>{});
    \n-
    125}
    \n-
    \n-
    126
    \n-
    128template <class T, T... II>
    \n-
    \n-
    129constexpr auto sorted (std::integer_sequence<T,II...> seq)
    \n-
    130{
    \n-
    131 return sorted(seq, std::less<T>{});
    \n-
    132}
    \n+
    119 MPI_Datatype type() const{
    \n+\n+
    121 }
    \n+
    \n+
    122
    \n+
    123 template<class S = T>
    \n+
    \n+
    124 auto /*void*/ resize(int size)
    \n+
    125 -> std::enable_if_t<!std::is_const<S>::value || !Std::is_detected_v<hasResizeOp, S>>
    \n+
    126 {
    \n+
    127 data_.resize(size);
    \n+
    128 }
    \n+
    \n+
    129
    \n+
    130 protected:
    \n+\n+
    132 };
    \n
    \n
    133
    \n-
    135template <class T, T... II, T value>
    \n-
    136constexpr std::bool_constant<((II == value) || ...)>
    \n-
    137contains (std::integer_sequence<T,II...>, std::integral_constant<T,value>) { return {}; }
    \n-
    138
    \n-
    139
    \n-
    141template <class T, T... II, T... JJ>
    \n-
    \n-
    142constexpr auto difference (std::integer_sequence<T,II...> iSeq, std::integer_sequence<T,JJ...> jSeq)
    \n-
    143{
    \n-
    144 if constexpr(iSeq.size() == 0 || jSeq.size() == 0)
    \n-
    145 return iSeq;
    \n-
    146 else {
    \n-
    147 constexpr auto I0 = head(iSeq);
    \n-
    148 if constexpr(!contains(jSeq,I0))
    \n-
    149 return push_front<I0.value>(difference(tail(iSeq),jSeq));
    \n-
    150 else
    \n-
    151 return difference(tail(iSeq),jSeq);
    \n-
    152 }
    \n-
    153}
    \n-
    \n-
    154
    \n-
    156template <std::size_t N, class T, T... JJ,
    \n-
    157 std::enable_if_t<(N >= sizeof...(JJ)), int> = 0>
    \n-
    \n-
    158constexpr auto difference (std::integer_sequence<T,JJ...> jSeq)
    \n-
    159{
    \n-
    160 return difference(std::make_integer_sequence<T,N>{}, jSeq);
    \n-
    161}
    \n-
    \n-
    162
    \n-
    163
    \n-
    165template <class S, S... II, class T, T... JJ,
    \n-
    166 std::enable_if_t<(sizeof...(II) == sizeof...(JJ)), int> = 0,
    \n-
    167 class ST = std::common_type_t<S,T>>
    \n-
    168constexpr std::is_same<std::integer_sequence<bool,true,(ST(II) == ST(JJ))...>,
    \n-
    169 std::integer_sequence<bool,(ST(II) == ST(JJ))...,true>>
    \n-
    170equal (std::integer_sequence<S,II...>, std::integer_sequence<T,JJ...>) { return {}; }
    \n-
    171
    \n-
    173template <class S, S... II, class T, T... JJ,
    \n-
    174 std::enable_if_t<(sizeof...(II) != sizeof...(JJ)), int> = 0>
    \n-
    175constexpr std::bool_constant<false>
    \n-
    176equal (std::integer_sequence<S,II...>, std::integer_sequence<T,JJ...>) { return {}; }
    \n-
    177
    \n-
    178
    \n-
    179template <template <auto> class Filter, class T>
    \n-
    180constexpr auto filter (std::integer_sequence<T> jSeq) { return jSeq; }
    \n-
    181
    \n-
    184template <template <auto> class Filter, class T, T J0, T... JJ>
    \n-
    \n-
    185constexpr auto filter (std::integer_sequence<T,J0,JJ...> jSeq)
    \n-
    186{
    \n-
    187 if constexpr(Filter<J0>::value)
    \n-
    188 return push_front(filter<Filter>(tail(jSeq)), head(jSeq));
    \n-
    189 else
    \n-
    190 return filter<Filter>(tail(jSeq));
    \n-
    191}
    \n-
    \n-
    192
    \n-
    193template <class Filter, class T>
    \n-
    194constexpr auto filter (Filter, std::integer_sequence<T> jSeq) { return jSeq; }
    \n-
    195
    \n-
    198template <class Filter, class T, T J0, T... JJ>
    \n-
    \n-
    199constexpr auto filter (Filter f, std::integer_sequence<T,J0,JJ...> jSeq)
    \n-
    200{
    \n-
    201 constexpr auto jHead = head(jSeq);
    \n-
    202 if constexpr(f(jHead))
    \n-
    203 return push_front(filter(f, tail(jSeq)), jHead);
    \n-
    204 else
    \n-
    205 return filter(f, tail(jSeq));
    \n-
    206}
    \n-
    \n-
    207
    \n-
    208} // end namespace Dune
    \n-
    209
    \n-
    210#endif // DUNE_COMMON_INTEGERSEQUENCE_HH
    \n-\n-
    decltype(auto) constexpr unpackIntegerSequence(F &&f, std::integer_sequence< I, i... > sequence)
    Unpack an std::integer_sequence<I,i...> to std::integral_constant<I,i>...
    Definition indices.hh:124
    \n+
    134}
    \n+
    135
    \n+
    140#endif // HAVE_MPI
    \n+
    141#endif // DUNE_COMMON_PARALLEL_MPIDATA_HH
    \n+
    Traits for type conversions and type information.
    \n+
    Traits classes for mapping types onto MPI_Datatype.
    \n+\n+
    typename Impl::voider< Types... >::type void_t
    Is void for all valid input types. The workhorse for C++11 SFINAE-techniques.
    Definition typetraits.hh:40
    \n+
    STL namespace.
    \n
    Dune namespace.
    Definition alignedallocator.hh:13
    \n-
    constexpr auto sorted(std::integer_sequence< T, II... > seq, Compare comp)
    Sort a given sequence by the comparator comp.
    Definition integersequence.hh:119
    \n-
    constexpr std::integer_sequence< T, II..., T(IN)> push_back(std::integer_sequence< T, II... >, std::integral_constant< T, IN >={})
    Append an index IN to the back of the sequence.
    Definition integersequence.hh:69
    \n-
    constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
    Return the size of the sequence.
    Definition integersequence.hh:75
    \n-
    constexpr std::integer_sequence< T, T(I0), II... > push_front(std::integer_sequence< T, II... >, std::integral_constant< T, I0 >={})
    Append an index I0 to the front of the sequence.
    Definition integersequence.hh:64
    \n-
    constexpr std::bool_constant<(sizeof...(II)==0)> empty(std::integer_sequence< T, II... >)
    Checks whether the sequence is empty.
    Definition integersequence.hh:80
    \n-
    constexpr std::integral_constant< T, I0 > front(std::integer_sequence< T, I0, II... >)
    Return the first entry of the sequence.
    Definition integersequence.hh:39
    \n-
    constexpr std::integer_sequence< T, II... > tail(std::integer_sequence< T, I0, II... >)
    For a sequence [head,tail...) return the tail sequence.
    Definition integersequence.hh:58
    \n-
    constexpr auto filter(std::integer_sequence< T > jSeq)
    Definition integersequence.hh:180
    \n-
    constexpr std::bool_constant<((II==value)||...)> contains(std::integer_sequence< T, II... >, std::integral_constant< T, value >)
    Checks whether or not a given sequence contains a value.
    Definition integersequence.hh:137
    \n-
    constexpr std::is_same< std::integer_sequence< bool, true,(ST(II)==ST(JJ))... >, std::integer_sequence< bool,(ST(II)==ST(JJ))..., true > > equal(std::integer_sequence< S, II... >, std::integer_sequence< T, JJ... >)
    Checks whether two sequences are identical.
    Definition integersequence.hh:170
    \n-
    constexpr auto back(std::integer_sequence< T, II... > seq)
    Return the last entry of the sequence.
    Definition integersequence.hh:44
    \n-
    constexpr std::integral_constant< T, I0 > head(std::integer_sequence< T, I0, II... >)
    For a sequence [head,tail...) return the single head element.
    Definition integersequence.hh:53
    \n-
    constexpr auto difference(std::integer_sequence< T, II... > iSeq, std::integer_sequence< T, JJ... > jSeq)
    Return the elements from the sequence [II...) which are not found in the sequence [JJ....
    Definition integersequence.hh:142
    \n-
    constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
    Return the entry at position pos of the given sequence.
    Definition integersequence.hh:22
    \n+
    auto getMPIData(T &t)
    Definition mpidata.hh:44
    \n+
    A traits class describing the mapping of types onto MPI_Datatypes.
    Definition mpitraits.hh:41
    \n+
    Definition mpidata.hh:51
    \n+
    T & data_
    Definition mpidata.hh:54
    \n+
    MPI_Datatype type() const
    Definition mpidata.hh:72
    \n+
    void * ptr() const
    Definition mpidata.hh:61
    \n+
    int size() const
    Definition mpidata.hh:68
    \n+
    static constexpr bool static_size
    Definition mpidata.hh:66
    \n+
    MPIData(T &t)
    Definition mpidata.hh:56
    \n+
    void get()
    Definition mpidata.hh:90
    \n+
    MPIData()
    Definition mpidata.hh:81
    \n+
    int size()
    Definition mpidata.hh:87
    \n+
    void * ptr()
    Definition mpidata.hh:84
    \n+
    MPI_Datatype type() const
    Definition mpidata.hh:91
    \n+\n+\n+\n+\n+
    auto resize(int size) -> std::enable_if_t<!std::is_const< S >::value||!Std::is_detected_v< hasResizeOp, S > >
    Definition mpidata.hh:124
    \n+\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,288 +1,218 @@\n dune-common\u00a02.10\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bc_\bo_\bm_\bm_\bo_\bn\n-integersequence.hh\n+ * _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl\n+mpidata.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 2// vi: set et ts=4 sw=2 sts=2:\n 3// SPDX-FileCopyrightInfo: Copyright \u00c2\u00a9 DUNE Project contributors, see file\n LICENSE.md in module root\n 4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-5#ifndef DUNE_COMMON_INTEGERSEQUENCE_HH\n-6#define DUNE_COMMON_INTEGERSEQUENCE_HH\n-7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n+5\n+6#ifndef DUNE_COMMON_PARALLEL_MPIDATA_HH\n+7#define DUNE_COMMON_PARALLEL_MPIDATA_HH\n+8\n+9#if HAVE_MPI\n+10\n+11#include \n+12#include \n+13#include \n 14\n-15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\b._\bh_\bh>\n-16\n-17namespace _\bD_\bu_\bn_\be {\n+15#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bt_\by_\bp_\be_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+16#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bs_\bt_\bd_\b/_\bt_\by_\bp_\be_\b__\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n+17#include <_\bd_\bu_\bn_\be_\b/_\bc_\bo_\bm_\bm_\bo_\bn_\b/_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\b/_\bm_\bp_\bi_\bt_\br_\ba_\bi_\bt_\bs_\b._\bh_\bh>\n 18\n-20template = sizeof...(II))), int> = 0>\n-_\b2_\b2constexpr auto _\bg_\be_\bt (std::integer_sequence, std::\n-integral_constant = {})\n-23{\n-24 constexpr T entry = std::array{II...}[pos];\n-25 return std::integral_constant{};\n-26}\n-27\n-29template \n-_\b3_\b0constexpr T _\bg_\be_\bt (std::integer_sequence, std::size_t pos)\n-31{\n-32 assert(pos < sizeof...(II));\n-33 return std::array{II...}[pos];\n-34}\n-35\n-37template \n-38constexpr std::integral_constant\n-_\b3_\b9_\bf_\br_\bo_\bn_\bt (std::integer_sequence) { return {}; }\n-40\n-42template 0), int> = 0>\n-_\b4_\b4constexpr auto _\bb_\ba_\bc_\bk (std::integer_sequence seq)\n-45{\n-46 return _\bg_\be_\bt(seq);\n-47}\n-48\n-49\n-51template \n-52constexpr std::integral_constant\n-_\b5_\b3_\bh_\be_\ba_\bd (std::integer_sequence) { return {}; }\n-54\n-56template \n-57constexpr std::integer_sequence\n-_\b5_\b8_\bt_\ba_\bi_\bl (std::integer_sequence) { return {}; }\n+38namespace _\bD_\bu_\bn_\be{\n+39\n+40 template\n+41 struct MPIData;\n+42\n+43 template\n+_\b4_\b4 auto _\bg_\be_\bt_\bM_\bP_\bI_\bD_\ba_\bt_\ba(T& t){\n+45 return _\bM_\bP_\bI_\bD_\ba_\bt_\ba_\b<_\bT_\b>(t);\n+46 }\n+47\n+48 // Default implementation for static datatypes\n+49 template\n+_\b5_\b0 struct _\bM_\bP_\bI_\bD_\ba_\bt_\ba\n+51 {\n+52 friend auto getMPIData(T&);\n+53 protected:\n+_\b5_\b4 T& _\bd_\ba_\bt_\ba_\b_;\n+55\n+_\b5_\b6 _\bM_\bP_\bI_\bD_\ba_\bt_\ba(T& t)\n+57 : _\bd_\ba_\bt_\ba_\b_(t)\n+58 {}\n 59\n-60\n-62template \n-63constexpr std::integer_sequence\n-_\b6_\b4_\bp_\bu_\bs_\bh_\b__\bf_\br_\bo_\bn_\bt (std::integer_sequence, std::integral_constant =\n-{}) { return {}; }\n-65\n-67template \n-68constexpr std::integer_sequence\n-_\b6_\b9_\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk (std::integer_sequence, std::integral_constant = {})\n-{ return {}; }\n-70\n+60 public:\n+_\b6_\b1 void* _\bp_\bt_\br() const {\n+62 return (void*)&_\bd_\ba_\bt_\ba_\b_;\n+63 }\n+64\n+65 // indicates whether the datatype can be resized\n+_\b6_\b6 static constexpr bool _\bs_\bt_\ba_\bt_\bi_\bc_\b__\bs_\bi_\bz_\be = true;\n+67\n+_\b6_\b8 int _\bs_\bi_\bz_\be() const{\n+69 return 1;\n+70 }\n 71\n-73template \n-74constexpr std::integral_constant\n-_\b7_\b5_\bs_\bi_\bz_\be (std::integer_sequence) { return {}; }\n+_\b7_\b2 MPI_Datatype _\bt_\by_\bp_\be() const {\n+73 return _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bs_\bt_\bd_\b:_\b:_\bd_\be_\bc_\ba_\by_\b__\bt_\b<_\bT_\b>>::getType();\n+74 }\n+75 };\n 76\n-78template \n-79constexpr std::bool_constant<(sizeof...(II) == 0)>\n-_\b8_\b0_\be_\bm_\bp_\bt_\by (std::integer_sequence) { return {}; }\n-81\n-82namespace Impl {\n-83\n-84// constexpr version of swap for older compilers\n-85template \n-86constexpr void swapImpl (T& a, T& b)\n-87{\n-88 T c = a; a = b; b = c;\n-89}\n-90\n-91// constexpr quick sort implementation\n-92template \n-93constexpr void sortImpl (std::array& array, Compare comp, std::size_t\n-left = 0, std::size_t right = N)\n-94{\n-95 // based on https://stackoverflow.com/a/40030044\n-96 if (left < right) {\n-97 std::size_t m = left;\n-98 for (std::size_t i = left + 1; i < right; ++i)\n-99 if (comp(array[i], array[left]))\n-100 swapImpl(array[++m], array[i]);\n-101 swapImpl(array[left], array[m]);\n-102 sortImpl(array, comp, left, m);\n-103 sortImpl(array, comp, m + 1, right);\n-104 }\n-105}\n-106\n-107// return the sorted array\n-108template \n-109constexpr std::array sortedImpl (std::array array, Compare comp)\n-110{\n-111 sortImpl(array, comp);\n-112 return array;\n-113}\n-114\n-115} // end namespace Impl\n-116\n-118template \n-_\b1_\b1_\b9constexpr auto _\bs_\bo_\br_\bt_\be_\bd (std::integer_sequence seq, Compare comp)\n-120{\n-121 constexpr auto _\bs_\bo_\br_\bt_\be_\bd = Impl::sortedImpl(std::array\n-{II...}, comp);\n-122 return _\bu_\bn_\bp_\ba_\bc_\bk_\bI_\bn_\bt_\be_\bg_\be_\br_\bS_\be_\bq_\bu_\be_\bn_\bc_\be([&](auto... i) {\n-123 return std::integer_sequence{};\n-124 }, std::make_index_sequence{});\n-125}\n-126\n-128template \n-_\b1_\b2_\b9constexpr auto _\bs_\bo_\br_\bt_\be_\bd (std::integer_sequence seq)\n-130{\n-131 return _\bs_\bo_\br_\bt_\be_\bd(seq, std::less{});\n-132}\n+77 // dummy implementation for void\n+78 template<>\n+_\b7_\b9 struct _\bM_\bP_\bI_\bD_\ba_\bt_\ba{\n+80 protected:\n+_\b8_\b1 _\bM_\bP_\bI_\bD_\ba_\bt_\ba() {}\n+82\n+83 public:\n+_\b8_\b4 void* _\bp_\bt_\br(){\n+85 return nullptr;\n+86 }\n+_\b8_\b7 int _\bs_\bi_\bz_\be(){\n+88 return 0;\n+89 }\n+_\b9_\b0 void _\bg_\be_\bt(){}\n+_\b9_\b1 MPI_Datatype _\bt_\by_\bp_\be() const{\n+92 return MPI_INT;\n+93 }\n+94 };\n+95\n+96 // specializations:\n+97 // std::vector of static sized elements or std::string\n+98 template\n+_\b9_\b9 struct _\bM_\bP_\bI_\bD_\ba_\bt_\ba().data()),\n+100 decltype(std::declval().size()),\n+101 typename std::decay_t::value_type>>>{\n+102 private:\n+103 template\n+104 using hasResizeOp = decltype(std::declval().resize(0));\n+105\n+106 protected:\n+107 friend auto getMPIData(T&);\n+_\b1_\b0_\b8 _\bM_\bP_\bI_\bD_\ba_\bt_\ba(T& t)\n+109 : _\bd_\ba_\bt_\ba_\b_(t)\n+110 {}\n+111 public:\n+_\b1_\b1_\b2 static constexpr bool _\bs_\bt_\ba_\bt_\bi_\bc_\b__\bs_\bi_\bz_\be = std::is_const::value || !Std::\n+is_detected_v;\n+_\b1_\b1_\b3 void* _\bp_\bt_\br() {\n+114 return (void*) _\bd_\ba_\bt_\ba_\b_.data();\n+115 }\n+_\b1_\b1_\b6 int _\bs_\bi_\bz_\be() {\n+117 return _\bd_\ba_\bt_\ba_\b_.size();\n+118 }\n+_\b1_\b1_\b9 MPI_Datatype _\bt_\by_\bp_\be() const{\n+120 return _\bM_\bP_\bI_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bs_\bt_\bd_\b:_\b:_\bd_\be_\bc_\ba_\by_\b__\bt_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be>::getType();\n+121 }\n+122\n+123 template\n+_\b1_\b2_\b4 auto /*void*/ _\br_\be_\bs_\bi_\bz_\be(int _\bs_\bi_\bz_\be)\n+125 -> std::enable_if_t::value || !Std::\n+is_detected_v>\n+126 {\n+127 _\bd_\ba_\bt_\ba_\b_.resize(_\bs_\bi_\bz_\be);\n+128 }\n+129\n+130 protected:\n+_\b1_\b3_\b1 T& _\bd_\ba_\bt_\ba_\b_;\n+132 };\n 133\n-135template \n-136constexpr std::bool_constant<((II == value) || ...)>\n-_\b1_\b3_\b7_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs (std::integer_sequence, std::integral_constant)\n-{ return {}; }\n-138\n-139\n-141template \n-_\b1_\b4_\b2constexpr auto _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be (std::integer_sequence iSeq, std::\n-integer_sequence jSeq)\n-143{\n-144 if constexpr(iSeq.size() == 0 || jSeq.size() == 0)\n-145 return iSeq;\n-146 else {\n-147 constexpr auto I0 = _\bh_\be_\ba_\bd(iSeq);\n-148 if constexpr(!_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs(jSeq,I0))\n-149 return push_front(_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be(_\bt_\ba_\bi_\bl(iSeq),jSeq));\n-150 else\n-151 return _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be(_\bt_\ba_\bi_\bl(iSeq),jSeq);\n-152 }\n-153}\n-154\n-156template = sizeof...(JJ)), int> = 0>\n-_\b1_\b5_\b8constexpr auto _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be (std::integer_sequence jSeq)\n-159{\n-160 return _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be(std::make_integer_sequence{}, jSeq);\n-161}\n-162\n-163\n-165template = 0,\n-167 class ST = std::common_type_t>\n-168constexpr std::is_same,\n-169 std::integer_sequence>\n-_\b1_\b7_\b0_\be_\bq_\bu_\ba_\bl (std::integer_sequence, std::integer_sequence)\n-{ return {}; }\n-171\n-173template = 0>\n-175constexpr std::bool_constant\n-_\b1_\b7_\b6_\be_\bq_\bu_\ba_\bl (std::integer_sequence, std::integer_sequence)\n-{ return {}; }\n-177\n-178\n-179template