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

index f80fa5bbf64dd6a5dadaaa8a4d97ff4b9d056e51..6d9219ff997e1b3d8e17ca5234582b8b8e42c667 100644 (file)
@@ -37,7 +37,6 @@ DEAL_II_NAMESPACE_OPEN
 class LogStream;
 class MultipleParameterLoop;
 
-
 /**
  * Namespace for a few classes that act as patterns for the ParameterHandler
  * class. These classes implement an interface that checks whether a parameter
@@ -414,6 +413,17 @@ namespace Patterns
           const unsigned int  max_elements = max_int_value,
           const std::string  &separator = ",");
 
+
+    /**
+     * Return the internally stored separator.
+     */
+    const std::string &get_separator() const;
+
+    /**
+     * Return the internally stored base pattern.
+     */
+    const PatternBase &get_base_pattern() const;
+
     /**
      * Copy constructor.
      */
index 1b27be4699dab1288dbecd72651a70a51c554dcc..e5194e785c943f4f0e03b0821dd28fff577f55bb 100644 (file)
@@ -599,6 +599,19 @@ namespace Patterns
   {}
 
 
+  const std::string &List::get_separator() const
+  {
+    return separator;
+  }
+
+
+
+  const PatternBase &List::get_base_pattern() const
+  {
+    return *pattern;
+  }
+
+
 
   bool List::match (const std::string &test_string_list) const
   {

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.