From: Luca Heltai Date: Tue, 18 Jul 2017 17:05:45 +0000 (+0200) Subject: Added getters for Patterns::List X-Git-Tag: v9.0.0-rc1~1391^2~21 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb8def107dc42d9c18377a0441ec5b44f77e0653;p=dealii.git Added getters for Patterns::List --- diff --git a/include/deal.II/base/parameter_handler.h b/include/deal.II/base/parameter_handler.h index f80fa5bbf6..6d9219ff99 100644 --- a/include/deal.II/base/parameter_handler.h +++ b/include/deal.II/base/parameter_handler.h @@ -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. */ diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index 1b27be4699..e5194e785c 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -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 {