]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make const the functions open_* and create_*
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Thu, 15 Nov 2018 15:40:55 +0000 (16:40 +0100)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Jan 2019 18:29:15 +0000 (19:29 +0100)
include/deal.II/base/hdf5.h
source/base/hdf5.cc

index 89d78979050a579c5233cb656183de03bbdeaf62..5215324273743576c38e3a708042d3f3b7236602 100644 (file)
@@ -967,19 +967,19 @@ namespace HDF5
      * Opens a sub-group of the current Group or File.
      */
     Group
-    open_group(const std::string &name);
+    open_group(const std::string &name) const;
 
     /**
      * Creates a sub-group in the current Group or File.
      */
     Group
-    create_group(const std::string &name);
+    create_group(const std::string &name) const;
 
     /**
      * Opens a dataset.
      */
     DataSet
-    open_dataset(const std::string &name);
+    open_dataset(const std::string &name) const;
 
     /**
      * Creates a dataset. @p number can be `float`, `double`,
index 5d6dd6cd4106287a61bf24614e5454ef65cb82b5..0191383254075bcfa6349063700fb663010a3d00 100644 (file)
@@ -1413,7 +1413,7 @@ namespace HDF5
 
 
   Group
-  Group::open_group(const std::string &name)
+  Group::open_group(const std::string &name) const
   {
     return Group(name, *this, mpi, GroupAccessMode::open);
   }
@@ -1421,7 +1421,7 @@ namespace HDF5
 
 
   Group
-  Group::create_group(const std::string &name)
+  Group::create_group(const std::string &name) const
   {
     return Group(name, *this, mpi, GroupAccessMode::create);
   }
@@ -1429,7 +1429,7 @@ namespace HDF5
 
 
   DataSet
-  Group::open_dataset(const std::string &name)
+  Group::open_dataset(const std::string &name) const
   {
     return DataSet(name, *hdf5_reference, mpi);
   }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.