From fb8def107dc42d9c18377a0441ec5b44f77e0653 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Tue, 18 Jul 2017 19:05:45 +0200 Subject: [PATCH] Added getters for Patterns::List --- include/deal.II/base/parameter_handler.h | 12 +++++++++++- source/base/parameter_handler.cc | 13 +++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) 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 { -- 2.39.5