]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added getters to Patterns::Map
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 18 Jul 2017 19:03:13 +0000 (21:03 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sun, 23 Jul 2017 14:57:13 +0000 (16:57 +0200)
include/deal.II/base/parameter_handler.h
source/base/parameter_handler.cc

index 6d9219ff997e1b3d8e17ca5234582b8b8e42c667..d0806054dc20c77ce63f8d60e3f8807d9eed025c 100644 (file)
@@ -578,6 +578,26 @@ namespace Patterns
      */
     std::size_t memory_consumption () const;
 
+    /**
+     * Return a reference to the key pattern.
+     */
+    const PatternBase &get_key_pattern() const;
+
+    /**
+     * Return a reference to the value pattern.
+     */
+    const PatternBase &get_value_pattern() const;
+
+    /**
+     * Return the separator of the map entries.
+     */
+    const std::string &get_separator() const;
+
+    /**
+     * Return the key-value separator.
+     */
+    const std::string &get_key_value_separator() const;
+
     /**
      * @addtogroup Exceptions
      * @{
index e5194e785c943f4f0e03b0821dd28fff577f55bb..5aab9be8f768dff9a4b61ae9fa15a8a80fb4713e 100644 (file)
@@ -924,6 +924,32 @@ namespace Patterns
 
 
 
+  const PatternBase &Map::get_key_pattern() const
+  {
+    return *key_pattern;
+  }
+
+
+
+  const PatternBase &Map::get_value_pattern() const
+  {
+    return *value_pattern;
+  }
+
+
+
+  const std::string &Map::get_separator() const
+  {
+    return separator;
+  }
+
+
+  const std::string &Map::get_key_value_separator() const
+  {
+    return key_value_separator;
+  }
+
+
   const char *MultipleSelection::description_init = "[MultipleSelection";
 
 

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.